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.
Dependents: serialSENS magsensor_46_v2 fibbo_test_v1
Fork of MAG3110 by
Diff: MAG3110.h
- Revision:
- 2:fb8024297377
- Parent:
- 1:5a0e7a58d980
- Child:
- 3:bc784c24f3b2
--- a/MAG3110.h Fri May 24 20:04:48 2013 +0000
+++ b/MAG3110.h Fri May 24 20:08:12 2013 +0000
@@ -75,14 +75,6 @@
class MAG3110
{
-private:
- int _i2c_address;
- I2C _i2c;
- Serial *_pc;
- bool _debug;
- int _avgX, _avgY;
-
-
public:
/**
* MAG3110 constructor
@@ -136,5 +128,13 @@
* @param maxY maximum value for Y range
*/
void setCalibration(int minX, int maxX, int minY, int maxY);
+
+private:
+ int _i2c_address;
+ I2C _i2c;
+ Serial *_pc;
+ bool _debug;
+ int _avgX, _avgY;
+
};
#endif
