Skip to content

abhaysjuneja/hmc5883l_RaspberryPi_C

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

hmc5883l_RaspberryPi_C

Here's the code for HMC5883l in C for Raspberry Pi.

Before you start using this code, make sure you have already setup I2c on your Pi. If not please visit the following link and do it right away.: http://www.raspberrypi-spy.co.uk/2014/11/enabling-the-i2c-interface-on-the-raspberry-pi/

Also install WiringPiI2C library if not yet instlled. Get it here: https://projects.drogon.net/raspberry-pi/wiringpi/i2c-library/


Using this code.

Refer the example code. It isn't rocket science.