Dreamforce Heroku Sample mbed application for the FRDM-K64F. This application uses SocketIO to connect and communicate with Heroku.

Dependencies:   BufferedSerial C12832 EthernetInterface HTTPClient-SSL LM75B MMA7660 SocketIO-k64f WebSocketClient-ThermostatDemo mbed-rtos mbed picojson

Fork of df-2013-minihack-thermostat-complete by MBED_DEMOS

Revision:
6:74c1e9c8c90e
Parent:
0:26c48388f725
--- a/Thermostat-LEDUtils.h	Mon Nov 11 20:35:49 2013 +0000
+++ b/Thermostat-LEDUtils.h	Thu Oct 09 16:14:18 2014 +0000
@@ -23,23 +23,23 @@
 // LEDs to toggle with control messages
 DigitalOut led1(LED1);
 DigitalOut led2(LED2);
-DigitalOut led3(LED3);
-DigitalOut led4(LED4);
+DigitalOut led3(LED1);
+DigitalOut led4(LED2);
 
 // Joystick button (to create an error condition)
-DigitalIn joystick_pressed(p14);
-DigitalIn joystick(p15);        
+DigitalIn joystick_pressed(A2);
+DigitalIn joystick(A3);        
 
 // Pot 1 for dialing up and down the temperature
-AnalogIn Pot1(p19);
+AnalogIn Pot1(A0);
 
 // Pot 2 for dialing up and down the battery level
-AnalogIn Pot2(p20);
+AnalogIn Pot2(A1);
 
 // the led's are connected to vcc, so a PwmOut of 100% will shut off the led and 0% will let it shine
-PwmOut r (p23);
-PwmOut g (p24);
-PwmOut b (p25);
+PwmOut r (D5);
+PwmOut g (D8);
+PwmOut b (D9);
 
 // get the int value of the joystick state
 int Thermostat::getErrorState() {