|
1 #ifndef _TASK_TFT_H |
|
2 #define _TASK_TFT_H |
|
3 |
|
4 /** |
|
5 * @file task_tft.h |
|
6 * @brief The interface to the TFT with touch module. |
|
7 */ |
|
8 |
|
9 /** |
|
10 * @brief Update the JSON structure with the logdata. |
|
11 */ |
|
12 void update_json(void); |
|
13 |
|
14 /** |
|
15 * @brief Initialize the TFT display |
|
16 */ |
|
17 int init_tft_display(void); |
|
18 |
|
19 /** |
|
20 * @brief Write a big message at the center top of the screen. |
|
21 * @param text The text to display |
|
22 */ |
|
23 void TopMessage(char *text); |
|
24 |
|
25 /** |
|
26 * @brief Draw Mash Lauter Tun info |
|
27 * @param x X startpoint |
|
28 * @param y Y startpoint |
|
29 * @param update If update or initial draw. |
|
30 */ |
|
31 void MLT_info(int x, int y, bool update); |
|
32 |
|
33 /** |
|
34 * @brief Draw Hot Liquer Tank info |
|
35 * @param x X startpoint |
|
36 * @param y Y startpoint |
|
37 * @param update If update or initial draw. |
|
38 * @param small To display a smaller box. |
|
39 */ |
|
40 void HLT_info(int x, int y, bool update, bool small); |
|
41 |
|
42 /** |
|
43 * @brief Set the timer. |
|
44 * @param seconds The number of seconds in the timer. |
|
45 */ |
|
46 void TimerSet(uint32_t seconds); |
|
47 |
|
48 /** |
|
49 * @brief Show the timer. |
|
50 * @param Time the time to display. |
|
51 * @param X the X position to display the time |
|
52 * @param Y the Y position to display the time |
|
53 */ |
|
54 void TimerShow(uint32_t Time, int X, int Y); |
|
55 |
|
56 /** |
|
57 * @brief Initialize all values for the webui. |
|
58 */ |
|
59 void TFTstartWS(int client); |
|
60 |
|
61 /** |
|
62 * @brief FreeRTOS TFT/Touch task. |
|
63 */ |
|
64 void task_tft(void *); |
|
65 |
|
66 #endif |