main/task_tft.c

changeset 1
ad2c8b13eb88
parent 0
b74b0e4902c3
child 2
7a03d81c0e0d
equal deleted inserted replaced
0:b74b0e4902c3 1:ad2c8b13eb88
8 * 8 *
9 */ 9 */
10 10
11 #include "config.h" 11 #include "config.h"
12 12
13 spi_lobo_device_handle_t spi; 13 spi_lobo_device_handle_t spi; ///< TFT screen SPI handler
14 spi_lobo_device_handle_t tsspi = NULL; 14 spi_lobo_device_handle_t tsspi = NULL; ///< Touchscreen SPI handler
15 extern sButton Buttons[MAXBUTTONS]; // 40 buttons on a screen. 15 extern sButton Buttons[MAXBUTTONS]; ///< 40 buttons on a screen.
16 time_t now; 16 time_t now; ///< Current time
17 struct tm timeinfo; 17 struct tm timeinfo; ///< Current time structure
18 char s_timer[10]; 18 char s_timer[10]; ///< Timer sctring buffer
19 char s_top_msg[64]; 19 char s_top_msg[64]; ///< Top message string buffer
20 20
21 extern float stageTemp; 21 extern float stageTemp;
22 extern uint16_t stageTime; 22 extern uint16_t stageTime;
23 extern uint16_t TimeWhirlPool; 23 extern uint16_t TimeWhirlPool;
24 extern uint32_t TimeLeft; 24 extern uint32_t TimeLeft;
25 extern uint32_t TimeSpent; 25 extern uint32_t TimeSpent;
26 extern uint32_t SecsCount; 26 extern uint32_t SecsCount;
27 extern uint32_t pumpTime; 27 extern uint32_t pumpTime;
28 extern uint32_t TimeBrewing; 28 extern uint32_t TimeBrewing;
29 extern uint16_t Steady; 29 extern uint16_t Steady;
30 esp_timer_handle_t timerHandle; 30 esp_timer_handle_t timerHandle; ///< Timer handler
31 extern bool _NewMinute; 31 extern bool _NewMinute;
32 extern bool _UseHLT; 32 extern bool _UseHLT;
33 extern bool System_TimeOk; 33 extern bool System_TimeOk;
34 34
35 static const char *TAG = "task_tft"; 35 static const char *TAG = "task_tft";
36 36
37 // Define which spi bus to use 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
38 #define SPI_BUS TFT_HSPI_HOST
39 38
40 extern int Main_Screen; 39 extern int Main_Screen;
41 extern int Old_Screen; 40 extern int Old_Screen;
42 extern int MLT_pin; 41 extern int MLT_pin;
43 extern int HLT_pin; 42 extern int HLT_pin;

mercurial