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 Emma

Revision:
47:97eadcb478b2
Parent:
44:c1d11c491237
Child:
48:053e92b6dc1e
--- a/emmaCode.h	Wed Aug 26 12:30:52 2015 +0000
+++ b/emmaCode.h	Fri Aug 28 04:17:31 2015 +0000
@@ -69,8 +69,10 @@
 #define CVRMSOFFSET     0xFFF
 
 //threshold
-#define VRMSTHRESHOLD   250
-#define WATTTHRESHOLD   10000
+#define vrmsTHL         175
+#define vrmsTHH         200//265
+#define wattTHL         26400
+#define wattTHH         39600
 
 /*start lcd and touch*/
 int emmaModeSelection(void);