updated version with parameters loaded from sdcard
Dependencies: F7_Ethernet mbed MbedJSONValue LCD_DISCO_F746NG mbed-rtos BSP_DISCO_F746NG CANMsg NetworkAPI SDFileSystem_Warning_Fixed GroveStreamsmodified LcdDiscoF746NgTracer JSON
Diff: GuiJPA.cpp
- Branch:
- jpa
- Revision:
- 11:b198b2f2676f
- Parent:
- 10:41aff2b7acc6
- Child:
- 12:15ae35cfb03f
diff -r 41aff2b7acc6 -r b198b2f2676f GuiJPA.cpp --- a/GuiJPA.cpp Tue Sep 15 19:11:11 2020 +0000 +++ b/GuiJPA.cpp Wed Sep 16 05:47:02 2020 +0000 @@ -104,7 +104,9 @@ //Sending Samples (and returning current command stream values) int sendResult=1; printf("InitDataGuiJPA - Ethernet actif %i \n", ethernet_actif); - if (ethernet_actif == 0) // ethernet inactif + + + if (ethernet_actif == 0) // ethernet inactif ------------------------------------- { // on n'utilise pas ethernet. lecture valeurs from sdcard printf("Use local graphic datas\n"); // display temp1 window @@ -115,9 +117,12 @@ { // si wifi actif launch tasmota request // reteive tasmota results to display - } - displayOn = (0x01 | displayOn);// display temp1 & temp2 box - + } + backColorTemp1 = (uint32_t)strtoul("0xFF808080", NULL,16); //gray + txtColorTemp1 = (uint32_t)strtoul("0xFFFFFF00", NULL,16) ; + backColorTemp2 = (uint32_t)strtoul("0xFF808080", NULL,16); + txtColorTemp2 = (uint32_t)strtoul("0xFFFFFF00", NULL,16) ; + displayOn = (0x01 | displayOn);// display temp1 & temp2 box } else {