Very simple library for the FXOS8700 combined magnetometer and accelerometer
FXOS8700 Class Reference
Library for the FXOS8700 magnetometer. More...
#include <FXOS8700.h>
Public Member Functions | |
| FXOS8700 (PinName sda, PinName scl, int chip_address) | |
| Creates an instance of the class. | |
| ~FXOS8700 () | |
Data Fields | |
| int | i2c_address |
| Reads the current registers. | |
Detailed Description
Library for the FXOS8700 magnetometer.
Definition at line 32 of file FXOS8700.h.
Constructor & Destructor Documentation
| FXOS8700 | ( | PinName | sda, |
| PinName | scl, | ||
| int | chip_address | ||
| ) |
Creates an instance of the class.
Connect module at I2C address addr using I2C port pins sda and scl.
Definition at line 3 of file FXOS8700.cpp.
| ~FXOS8700 | ( | ) |
Destroys instance.
Definition at line 28 of file FXOS8700.cpp.
Field Documentation
| int i2c_address |
Reads the current registers.
Definition at line 47 of file FXOS8700.h.
Generated on Sun Jul 17 2022 20:10:51 by
1.7.2