portable version of the cumulocity demo
Dependencies: C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed
Fork of MbedSmartRestMain by
Diff: DeviceIO.h
- Revision:
- 47:89ae46d5c466
- Parent:
- 46:f6976fd64387
- Child:
- 55:ed3a2751a2b5
diff -r f6976fd64387 -r 89ae46d5c466 DeviceIO.h --- a/DeviceIO.h Thu Jul 24 16:02:47 2014 +0000 +++ b/DeviceIO.h Thu Jul 24 23:32:53 2014 +0000 @@ -2,6 +2,8 @@ #define DEVICEIO_H #include "mbed.h" +#include "GPSTracker.h" +#include "GPS.h" #include "LM75B.h" #include "MMA7660.h" #include "C12832.h" @@ -35,15 +37,21 @@ class DeviceIO { public: - DeviceIO(); + DeviceIO(GPSI2C&); bool resetButtonPressed(); + GPSTracker& gpsTracker(); + AnalogIn& analog1(); + AnalogIn& analog2(); LM75B& temperatureSensor(); MMA7660& accelerometer(); void lcdPrint(const char*, const char* = NULL, const char* = NULL); private: + GPSTracker _gpsTracker; DigitalIn _resetButton; + AnalogIn _analog1; + AnalogIn _analog2; LM75B _temperatureSensor; MMA7660 _accelerometer; C12832 _lcd;