Very simple library for the FXOS8700 combined magnetometer and accelerometer

Files at this revision

API Documentation at this revision

Comitter:
jhd25
Date:
Tue Jan 29 13:00:39 2019 +0000
Parent:
1:c0795224b157
Commit message:
Added reading calibration from USB drive

Changed in this revision

FXOS8700.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r c0795224b157 -r 24e7cbc80327 FXOS8700.cpp
--- a/FXOS8700.cpp	Tue Jan 29 12:56:36 2019 +0000
+++ b/FXOS8700.cpp	Tue Jan 29 13:00:39 2019 +0000
@@ -4,7 +4,7 @@
 {
    this->i2c_address=chip_address;
    char write_data[2];
-   bool err;
+   bool err=false;
    write_data[0]=FXOS8700CQ_CTRL_REG1;
    write_data[1]=0x00;
    err=err || i2c.write( i2c_address <<1,write_data,2);