DreamForce 2013 Hands-On Demo
Dependencies: C12832_lcd EthernetInterface-ansond-patched HTTPClient-thermostat-remotes LM75B MMA7660 SocketIO WebSocketClient-ThermostatDemo mbed-rtos mbed picojson
Fork of ThermostatHandsOn by
Diff: Thermostat.cpp
- Revision:
- 5:20cca9368622
- Parent:
- 4:048550d178c5
- Child:
- 6:510193bc7f26
--- a/Thermostat.cpp Fri Nov 01 18:16:21 2013 +0000 +++ b/Thermostat.cpp Tue Nov 05 21:23:25 2013 +0000 @@ -26,7 +26,6 @@ * "led3" --> "on" or "off" * "led4" --> "on" or "off" * "blink" --> <dont care> should blink all 4 LEDs a few times - * "text" --> <string> should be displayed to the LCD screen as well as the serial console * "reset" --> <dont care> will reset the simulated error state for the device * 3. simulated error state: depress and hold the joystick until the RGB LED turns red * 4. rotate the potentiometer closest to the LCD panel to manipulate the battery level (0 - 100%) @@ -194,7 +193,6 @@ if ((*iter).get("led3") != NULL) led3.write(this->translateLEDStatus((*iter).get("led3").get<string>().c_str(),(int)led3)); if ((*iter).get("led4") != NULL) led4.write(this->translateLEDStatus((*iter).get("led4").get<string>().c_str(),(int)led4)); if ((*iter).get("reset") != NULL) this->resetDeviceStatus(); - if ((*iter).get("text") != NULL) this->display((*iter).get("text").get<string>().c_str()); if ((*iter).get("blink") != NULL) this->blinkAllLEDs(); } }