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: emmaCode.h
- Revision:
- 58:5f953f303551
- Parent:
- 55:63a616a99c9a
- Child:
- 61:4eda981730ae
--- a/emmaCode.h Thu Sep 17 03:50:47 2015 +0000 +++ b/emmaCode.h Mon Sep 21 12:34:10 2015 +0000 @@ -17,6 +17,11 @@ #include "SPI_TFT_ILI9341.h" //lcd #include "Touch.h" //touch #include "Arial12x12.h" //font +#include "Lato19x19.h" //good +#include "Lato24x23.h" //good +#include "Lato27x27.h" //good +#include "LatoBlack34x32.h" //good +#include "LatoBlack39x38.h" //good #include "SetRTC.h" //rtc #include "DHT11.h" //dht11 #include <string> @@ -69,12 +74,16 @@ #define BVRMSOFFSET 0x2 #define CVRMSOFFSET 0xFFF -//threshold +//threshold //need to be deleted #define _vrmsTHL 175 #define _vrmsTHH 200//265 #define _wattTHL 26400 #define _wattTHH 39600 +//modeCircle +#define leftCircle 0 +#define rightCircle 1 + /*start lcd and touch*/ int emmaModeSelection(void); /*end lcd and touch*/ @@ -143,6 +152,12 @@ string wifiGetNodeTemp(string macAddr); /*end emma nodes*/ +/*start emma lcd*/ +void lcdDrawSmile(void); +void lcdDrawFrown(void); +//void lcdPrintRestart(void); +/*end emma lcd*/ + /*start emma private function*/ void isEthAvailable(void); void isEthConnected(void);