emma controller code in production board v1
Dependencies: ADE7758_v1 Crypto DHT11 MQTT MbedJSONValueEmma SDFileSystem TFT_ILI9341 SWSPI SetRTC TFT_fonts Touch W5500Interface mbed-rtos mbed-src SoftSerial
Fork of emma_controller_energy by
Diff: main.cpp
- Revision:
- 12:96f637ed37f9
- Parent:
- 11:2311b2d5157d
- Child:
- 32:78633fb9b2a1
--- a/main.cpp Mon Jul 13 13:29:25 2015 +0000 +++ b/main.cpp Tue Jul 14 03:03:22 2015 +0000 @@ -1,11 +1,13 @@ #include "emmaCode.h" -int mode = MODE_OPERATION; +int mode; + int main() { //init touchscreen and read input - + //mode = MODE_OPERATION; + mode = emmaModeSelection(); - emmaInit(); + emmaInit(mode); //switch mode switch(mode) { case MODE_SETTINGS: