diff -r b74b0e4902c3 -r ad2c8b13eb88 main/task_tft.c --- a/main/task_tft.c Sat Oct 20 13:23:15 2018 +0200 +++ b/main/task_tft.c Sat Oct 20 17:09:48 2018 +0200 @@ -10,13 +10,13 @@ #include "config.h" -spi_lobo_device_handle_t spi; -spi_lobo_device_handle_t tsspi = NULL; -extern sButton Buttons[MAXBUTTONS]; // 40 buttons on a screen. -time_t now; -struct tm timeinfo; -char s_timer[10]; -char s_top_msg[64]; +spi_lobo_device_handle_t spi; ///< TFT screen SPI handler +spi_lobo_device_handle_t tsspi = NULL; ///< Touchscreen SPI handler +extern sButton Buttons[MAXBUTTONS]; ///< 40 buttons on a screen. +time_t now; ///< Current time +struct tm timeinfo; ///< Current time structure +char s_timer[10]; ///< Timer sctring buffer +char s_top_msg[64]; ///< Top message string buffer extern float stageTemp; extern uint16_t stageTime; @@ -27,15 +27,14 @@ extern uint32_t pumpTime; extern uint32_t TimeBrewing; extern uint16_t Steady; -esp_timer_handle_t timerHandle; +esp_timer_handle_t timerHandle; ///< Timer handler extern bool _NewMinute; extern bool _UseHLT; extern bool System_TimeOk; static const char *TAG = "task_tft"; -// Define which spi bus to use TFT_VSPI_HOST or TFT_HSPI_HOST -#define SPI_BUS TFT_HSPI_HOST +#define SPI_BUS TFT_HSPI_HOST ///< SPI bus for the TFT, TFT_VSPI_HOST or TFT_HSPI_HOST extern int Main_Screen; extern int Old_Screen;