portable version of the cumulocity demo
Dependencies: C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed
Fork of MbedSmartRestMain by
Diff: DeviceIO.cpp
- Revision:
- 47:89ae46d5c466
- Parent:
- 46:f6976fd64387
- Child:
- 52:8f1370084268
--- a/DeviceIO.cpp Thu Jul 24 16:02:47 2014 +0000 +++ b/DeviceIO.cpp Thu Jul 24 23:32:53 2014 +0000 @@ -1,7 +1,10 @@ #include "DeviceIO.h" -DeviceIO::DeviceIO() : +DeviceIO::DeviceIO(GPSI2C& gps) : + _gpsTracker(gps), _resetButton(D4), // fire button on arduino app shield + _analog1(A0), + _analog2(A1), _temperatureSensor(SDA,SCL), _accelerometer(SDA,SCL), _lcd(D11, D13, D12, D7, D10) @@ -13,6 +16,20 @@ return _resetButton; } +GPSTracker& DeviceIO::gpsTracker() +{ + return _gpsTracker; +} + +AnalogIn& DeviceIO::analog1() +{ + return _analog1; +} + +AnalogIn& DeviceIO::analog2() +{ + return _analog2; +} LM75B& DeviceIO::temperatureSensor() { return _temperatureSensor;