portable version of the cumulocity demo

Dependencies:   C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed

Fork of MbedSmartRestMain by Cumulocity Official

Revision:
46:f6976fd64387
Parent:
41:804f6a0bda26
Child:
47:89ae46d5c466
diff -r 5d8feae26fe3 -r f6976fd64387 DeviceIO.cpp
--- a/DeviceIO.cpp	Thu Jul 24 14:52:44 2014 +0000
+++ b/DeviceIO.cpp	Thu Jul 24 16:02:47 2014 +0000
@@ -1,12 +1,18 @@
 #include "DeviceIO.h"
 
 DeviceIO::DeviceIO() :
+    _resetButton(D4), // fire button on arduino app shield
     _temperatureSensor(SDA,SCL),
     _accelerometer(SDA,SCL),
     _lcd(D11, D13, D12, D7, D10)
 {
 }
 
+bool DeviceIO::resetButtonPressed()
+{
+    return _resetButton;
+}
+
 LM75B& DeviceIO::temperatureSensor()
 {
     return _temperatureSensor;