main/task_tft.c

branch
novnc
changeset 39
e5900c9b9a7b
parent 25
79ee940410de
child 40
71e06f6d80fd
equal deleted inserted replaced
38:537ffe280775 39:e5900c9b9a7b
28 extern uint16_t Steady; 28 extern uint16_t Steady;
29 esp_timer_handle_t timerHandle; ///< Timer handler 29 esp_timer_handle_t timerHandle; ///< Timer handler
30 extern bool _NewMinute; 30 extern bool _NewMinute;
31 extern bool _UseHLT; 31 extern bool _UseHLT;
32 extern bool System_TimeOk; 32 extern bool System_TimeOk;
33 extern const esp_app_desc_t *app_desc;
33 34
34 static const char *TAG = "task_tft"; 35 static const char *TAG = "task_tft";
35 36
36 #define SPI_BUS TFT_HSPI_HOST ///< SPI bus for the TFT, TFT_VSPI_HOST or TFT_HSPI_HOST 37 #define SPI_BUS TFT_HSPI_HOST ///< SPI bus for the TFT, TFT_VSPI_HOST or TFT_HSPI_HOST
37 38
555 case MAIN_MODE_CALIBRATION: 556 case MAIN_MODE_CALIBRATION:
556 Calibration_Init(); 557 Calibration_Init();
557 break; 558 break;
558 559
559 case MAIN_INFO: 560 case MAIN_INFO:
560 sprintf(temp_buf, "BrewBoard %s", VERSION); 561 sprintf(temp_buf, "BrewBoard %s", app_desc->version);
561 TopMessage(temp_buf); 562 TopMessage(temp_buf);
562 _fg = TFT_YELLOW; 563 _fg = TFT_YELLOW;
563 TFT_setFont(UBUNTU16_FONT, NULL); 564 TFT_setFont(UBUNTU16_FONT, NULL);
564 TFT_print("Written by Michiel Broek (C) 2018\r\n\n", 0, 50); 565 TFT_print("Written by Michiel Broek (C) 2018\r\n\n", 0, 50);
565 // ------------------------------------- 566 // -------------------------------------
566 _fg = TFT_ORANGE; 567 _fg = TFT_ORANGE;
567 TFT_print("Parts are written by Chris Morgan,\r\n", 0, LASTY); 568 TFT_print("Parts are written by Chris Morgan,\r\n", 0, LASTY);
568 TFT_print("Brett Beauregard, Chris Garry, LoBo,\r\n", 0, LASTY); 569 TFT_print("Brett Beauregard, Blake Felt, LoBo,\r\n", 0, LASTY);
569 TFT_print("and David Antliff.\r\n", 0, LASTY); 570 TFT_print("and David Antliff.\r\n", 0, LASTY);
570 ShowInteger(1,140, "Free memory", " bytes", esp_get_free_heap_size()); 571 ShowInteger(1,140, "Free memory", " bytes", esp_get_free_heap_size());
571 ShowText(1,158, "IDF version", (char *)esp_get_idf_version()); 572 ShowText(1,158, "IDF version", (char *)esp_get_idf_version());
572 Buttons_Add(130, 200, 60, 40, "Ok", 0); 573 Buttons_Add(130, 200, 60, 40, "Ok", 0);
573 Buttons[0].dark = true; 574 Buttons[0].dark = true;

mercurial