Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of QMC5883L by
Revision 2:bbc9ad18fd3e, committed 2015-08-05
- Comitter:
- BaserK
- Date:
- Wed Aug 05 13:16:12 2015 +0000
- Parent:
- 1:4c295f793d46
- Child:
- 3:6aac221b613d
- Commit message:
- i2c object is static now
Changed in this revision
| HMC5883L.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/HMC5883L.cpp Wed Aug 05 13:08:19 2015 +0000 +++ b/HMC5883L.cpp Wed Aug 05 13:16:12 2015 +0000 @@ -31,7 +31,7 @@ #include "HMC5883L.h" /* NUCLEO F411RE board */ -I2C i2c(D14, D15); // setup i2c (SDA,SCL) +static I2C i2c(D14, D15); // setup i2c (SDA,SCL) static float Gauss_LSB_XY = 1100.0F; // Varies with gain static float Gauss_LSB_Z = 980.0F; // Varies with gain
