test

Dependencies:   ad5422_arduino mbed LT1446 ADS1248-1 LM35-1 Flash FT813 PGA280_ADS1259

Revision:
6:cfe7cb0bdb1a
Parent:
5:21240fa1ee4c
Child:
7:c364201bc3ed
--- a/TFT/display.PidScreen.cpp	Thu Aug 13 14:37:39 2020 +0000
+++ b/TFT/display.PidScreen.cpp	Fri Aug 14 14:16:03 2020 +0000
@@ -143,6 +143,27 @@
     else
     (*_TFT).Button(200, 325, 120, 36, 27, 0, "Apply");
     
+    (*_TFT).DL(TAG(SAVE_PRESS));
+    (*_TFT).DL(COLOR_RGB(255, 255, 255));
+    if(key==SAVE_PRESS)        
+    (*_TFT).Button(200, 365, 120, 36, 27, OPT_FLAT, "Save");    
+    else
+    (*_TFT).Button(200, 365, 120, 36, 27, 0, "Save");
+    
+    //переключатели ПИДов
+    (*_TFT).DL(TAG(PID1SW_PRESS));    
+    (*_TFT).Toggle(260, 420,50,27,0,0,"OFF""\xff""ON");
+    if(key==PID1SW_PRESS)
+    {PID1->enabled=~PID1->enabled;}
+    if(PID1->enabled)
+    (*_TFT).Toggle(260, 420,50,27,0,0xFFFF,"OFF""\xff""ON");//ПИД1 вкл
+    
+    (*_TFT).DL(TAG(PID2SW_PRESS));    
+    (*_TFT).Toggle(385, 420,50,27,0,0,"OFF""\xff""ON");
+    if(key==PID2SW_PRESS)    
+    {PID2->enabled=~PID2->enabled;}
+    if(PID2->enabled)
+    (*_TFT).Toggle(385, 420,50,27,0,0xFFFF,"OFF""\xff""ON");//ПИД2 вкл
     (*_TFT).DL(TAG_MASK(0));