mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-24 11:46:34 +00:00
Add guiTftInit
This commit is contained in:
parent
2a6c7d509d
commit
4ab180be26
@ -101,14 +101,19 @@ void guiCalibrate(void)
|
||||
#endif
|
||||
}
|
||||
|
||||
void guiTftInit(void)
|
||||
{
|
||||
haspTft.init(tft_width, tft_height);
|
||||
haspTft.set_rotation(gui_settings.rotation);
|
||||
haspTft.set_invert(gui_settings.invert_display);
|
||||
}
|
||||
|
||||
void guiSetup()
|
||||
{
|
||||
LOG_TRACE(TAG_TFT, F(D_SERVICE_STARTING));
|
||||
|
||||
// Initialize the TFT
|
||||
haspTft.init(tft_width, tft_height);
|
||||
haspTft.set_rotation(gui_settings.rotation);
|
||||
haspTft.set_invert(gui_settings.invert_display);
|
||||
guiTftInit();
|
||||
haspTft.show_info();
|
||||
|
||||
LOG_INFO(TAG_TFT, F(D_SERVICE_STARTED));
|
||||
|
@ -16,6 +16,7 @@ struct gui_conf_t
|
||||
};
|
||||
|
||||
/* ===== Default Event Processors ===== */
|
||||
void guiTftInit(void);
|
||||
void guiSetup(void);
|
||||
IRAM_ATTR void guiLoop(void);
|
||||
void guiEverySecond(void);
|
||||
|
Loading…
x
Reference in New Issue
Block a user