Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HMC5883-RK356x-driver

driver for HMC5883 3-Axis Digital Compass IC on RK356x

hmc5883.h

driver file with notes.

Also, it's where you can modify the parameters of hmc5883.

UPDATE 20240816: Added a selftest function.

hmc5883.c

The demo program which can print the raw data from the hmc5883's register.

usage:

gcc hmc5883.c -o hmc5883
./hmc5883 /dev/i2c-5

you can change the i2c device from 5 to what you want.

readGs.c

The demo program which can print the mag data processed from the hmc5883's register. Using 15Hz, 001(1090Lsb/Gs)config.

usage:

gcc readGs.c -o readGs
./readGs /dev/i2c-5

About

Driver for HMC5883 3-Axis Digital Compass lC on RK356x

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages