MAG3110 Virgo robot adaptation
Fork of MAG3110 by
Diff: MAG3110.h
- Revision:
- 12:2680e94139bb
- Parent:
- 11:31b140f32906
- Child:
- 13:b293e595ea95
diff -r 31b140f32906 -r 2680e94139bb MAG3110.h --- a/MAG3110.h Thu Aug 18 07:44:56 2016 +0000 +++ b/MAG3110.h Fri Aug 19 01:14:36 2016 +0000 @@ -93,9 +93,12 @@ MAG3110(PinName sda, PinName scl); /** * Setup the Magnetometer + * @param off_x magnetometer offset for X-Axis + * @param off_y magnetometer offset for Y-Axis + * @param off_z magnetometer offset for Z-Axis * */ - void begin(); + void begin(int16_t off_x, int16_t off_y, int16_t off_z); /** * Read a register, return its value as int * @param regAddr The address to read