- Timestamp:
- Apr 30, 2016, 11:29:25 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
rtos_arduino/trunk/arduino_lib/libraries/LuckyShield/src/lib/MAG3110.h
r175 r224 25 25 { 26 26 public: 27 MAG3110(); 27 //constructor 28 //MAG3110(); 29 30 //public methods 28 31 void begin(); 29 int readx(); 30 int ready(); 31 int readz(); 32 33 int x(){return readx();}; 34 int y(){return ready();}; 35 int z(){return readz();}; 32 void read(); 33 int x(){return mag_x;}; 34 int y(){return mag_y;}; 35 int z(){return mag_z;}; 36 36 37 private: 38 //class-only methods: 39 int read16Data(byte MSB, byte LSB); 40 41 //global variables 42 int mag_x; 43 int mag_y; 44 int mag_z; 45 37 46 }; 38 47
Note:
See TracChangeset
for help on using the changeset viewer.