Sun, 24 Nov 2019 16:44:00 +0100
Version 0.3.7. The WiFi task uses the new event handlers. Cooling temperature top is now 45 instead of 30 degreees for pitching Kveik. One extra cosmetic message during OTA update.
0 | 1 | #ifndef _TASK_TFT_H |
2 | #define _TASK_TFT_H | |
3 | ||
4 | /** | |
5 | * @file task_tft.h | |
4 | 6 | * @brief BrewBoard TFT and Touch screen driver for a 320x240 ILI9341 based display. |
7 | * But because the application is controlled using the touch screen, all the | |
8 | * processing of menus is also found here. | |
9 | * It's the first started task, but it does nothing until the Main_Screen | |
10 | * variable is set. | |
0 | 11 | */ |
12 | ||
13 | /** | |
14 | * @brief Update the JSON structure with the logdata. | |
15 | */ | |
16 | void update_json(void); | |
17 | ||
18 | /** | |
19 | * @brief Initialize the TFT display | |
20 | */ | |
21 | int init_tft_display(void); | |
22 | ||
23 | /** | |
24 | * @brief Write a big message at the center top of the screen. | |
25 | * @param text The text to display | |
26 | */ | |
27 | void TopMessage(char *text); | |
28 | ||
29 | /** | |
30 | * @brief Draw Mash Lauter Tun info | |
31 | * @param x X startpoint | |
32 | * @param y Y startpoint | |
33 | * @param update If update or initial draw. | |
34 | */ | |
35 | void MLT_info(int x, int y, bool update); | |
36 | ||
37 | /** | |
38 | * @brief Draw Hot Liquer Tank info | |
39 | * @param x X startpoint | |
40 | * @param y Y startpoint | |
41 | * @param update If update or initial draw. | |
42 | * @param small To display a smaller box. | |
43 | */ | |
44 | void HLT_info(int x, int y, bool update, bool small); | |
45 | ||
46 | /** | |
47 | * @brief Set the timer. | |
48 | * @param seconds The number of seconds in the timer. | |
49 | */ | |
50 | void TimerSet(uint32_t seconds); | |
51 | ||
52 | /** | |
53 | * @brief Show the timer. | |
54 | * @param Time the time to display. | |
55 | * @param X the X position to display the time | |
56 | * @param Y the Y position to display the time | |
57 | */ | |
58 | void TimerShow(uint32_t Time, int X, int Y); | |
59 | ||
60 | /** | |
61 | * @brief Initialize all values for the webui. | |
62 | */ | |
63 | void TFTstartWS(int client); | |
64 | ||
65 | /** | |
66 | * @brief FreeRTOS TFT/Touch task. | |
67 | */ | |
68 | void task_tft(void *); | |
69 | ||
70 | #endif |