|
upm
0.1.8
Sensor/Actuator repository for libmraa (v0.4.5)
|
C++ API for HMC5883l (3-axis digital compass) More...
This file defines the HMC5883l C++ interface for libhmc5883l
Public Member Functions | |
| Hmc5883l (int bus) | |
| float | direction () |
| float | heading () |
| int * | coordinates () |
| int | update () |
| Hmc5883l | ( | int | bus | ) |
Creates a Hmc5883l object
| bus | number of used i2c bus |

| int * coordinates | ( | void | ) |
Returns a pointer to an int[3] that contains the coordinates as ints
| int update | ( | void | ) |
Updates the values by reading from i2c

1.8.7