![](/media/cache/group/u-blox_logo_trans.png.50x50_q85.png)
portable version of the cumulocity demo
Dependencies: C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed
Fork of MbedSmartRestMain by
DeviceIO.h@55:ed3a2751a2b5, 2014-10-01 (annotated)
- Committer:
- mazgch
- Date:
- Wed Oct 01 09:36:19 2014 +0000
- Revision:
- 55:ed3a2751a2b5
- Parent:
- 47:89ae46d5c466
update dependency, remove special pin names in this project as they are part of the target sdk
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Cumulocity | 41:804f6a0bda26 | 1 | #ifndef DEVICEIO_H |
Cumulocity | 41:804f6a0bda26 | 2 | #define DEVICEIO_H |
Cumulocity | 41:804f6a0bda26 | 3 | |
Cumulocity | 41:804f6a0bda26 | 4 | #include "mbed.h" |
Cumulocity | 47:89ae46d5c466 | 5 | #include "GPSTracker.h" |
Cumulocity | 47:89ae46d5c466 | 6 | #include "GPS.h" |
Cumulocity | 41:804f6a0bda26 | 7 | #include "LM75B.h" |
Cumulocity | 41:804f6a0bda26 | 8 | #include "MMA7660.h" |
Cumulocity | 41:804f6a0bda26 | 9 | #include "C12832.h" |
Cumulocity | 41:804f6a0bda26 | 10 | |
Cumulocity | 41:804f6a0bda26 | 11 | class DeviceIO |
Cumulocity | 41:804f6a0bda26 | 12 | { |
Cumulocity | 41:804f6a0bda26 | 13 | public: |
Cumulocity | 47:89ae46d5c466 | 14 | DeviceIO(GPSI2C&); |
Cumulocity | 41:804f6a0bda26 | 15 | |
Cumulocity | 46:f6976fd64387 | 16 | bool resetButtonPressed(); |
Cumulocity | 47:89ae46d5c466 | 17 | GPSTracker& gpsTracker(); |
Cumulocity | 47:89ae46d5c466 | 18 | AnalogIn& analog1(); |
Cumulocity | 47:89ae46d5c466 | 19 | AnalogIn& analog2(); |
Cumulocity | 41:804f6a0bda26 | 20 | LM75B& temperatureSensor(); |
Cumulocity | 41:804f6a0bda26 | 21 | MMA7660& accelerometer(); |
Cumulocity | 41:804f6a0bda26 | 22 | void lcdPrint(const char*, const char* = NULL, const char* = NULL); |
Cumulocity | 41:804f6a0bda26 | 23 | |
Cumulocity | 41:804f6a0bda26 | 24 | private: |
Cumulocity | 47:89ae46d5c466 | 25 | GPSTracker _gpsTracker; |
Cumulocity | 46:f6976fd64387 | 26 | DigitalIn _resetButton; |
Cumulocity | 47:89ae46d5c466 | 27 | AnalogIn _analog1; |
Cumulocity | 47:89ae46d5c466 | 28 | AnalogIn _analog2; |
Cumulocity | 41:804f6a0bda26 | 29 | LM75B _temperatureSensor; |
Cumulocity | 41:804f6a0bda26 | 30 | MMA7660 _accelerometer; |
Cumulocity | 41:804f6a0bda26 | 31 | C12832 _lcd; |
Cumulocity | 41:804f6a0bda26 | 32 | }; |
Cumulocity | 41:804f6a0bda26 | 33 | |
Cumulocity | 41:804f6a0bda26 | 34 | #endif |