![](/media/cache/profiles/8ad6635f33710af6a535e8fb8486975e.50x50_q85.jpg)
NOT FINISHED YET!!! My first try to get a self built fully working Quadrocopter based on an mbed, a self built frame and some other more or less cheap parts.
Diff: Sensors/I2C_Sensor.h
- Revision:
- 36:128c55793728
- Parent:
- 34:3aa1cbcde59d
- Child:
- 40:2ca410923691
--- a/Sensors/I2C_Sensor.h Mon Jun 10 20:47:01 2013 +0000 +++ b/Sensors/I2C_Sensor.h Wed Jun 12 10:26:18 2013 +0000 @@ -4,6 +4,7 @@ #define I2C_Sensor_H #include "mbed.h" +#include "MODI2C.h" class I2C_Sensor { @@ -29,7 +30,8 @@ virtual void readraw() = 0; private: - I2C i2c; // I2C-Bus + I2C i2c_init; // original mbed I2C-library just to initialise the control registers + MODI2C i2c; // I2C-Bus char i2c_address; // address LocalFileSystem local; // file access to save calibration values