
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
Revision 11:b198b2f2676f, committed 2020-09-16
- Comitter:
- 38domo
- Date:
- Wed Sep 16 05:47:02 2020 +0000
- Branch:
- jpa
- Parent:
- 10:41aff2b7acc6
- Child:
- 12:15ae35cfb03f
- Commit message:
- display temp ok
Changed in this revision
GuiJPA.cpp | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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 {
--- a/main.cpp Tue Sep 15 19:11:11 2020 +0000 +++ b/main.cpp Wed Sep 16 05:47:02 2020 +0000 @@ -272,6 +272,13 @@ BSP_LCD_SetTextColor(LCD_COLOR_WHITE); BSP_LCD_SetBackColor(LCD_COLOR_RED); BSP_LCD_SetTextColor(LCD_COLOR_WHITE); + // backColorTemp1 = (uint32_t)strtoul("0xFF808080", NULL,16); //gray + // txtColorTemp1 = (uint32_t)strtoul("0xFFFFFF00", NULL,16) ; + // //sprintf(textTempTitle[1],s.c_str()); + //printf("Temp1 text : %s\n",s.c_str()); + // backColorTemp2 = (uint32_t)strtoul("0xFF808080", NULL,16); + // txtColorTemp2 = (uint32_t)strtoul("0xFFFFFF00", NULL,16) ; + int pp = setTemp1("temp1"); // display temp1 on lcd BSP_LCD_DisplayStringAt(0, LINE(7), (uint8_t *)"displ temp1", CENTER_MODE);