mirror of
https://github.com/Xinyuan-LilyGO/T-Display-S3.git
synced 2024-09-21 09:57:26 +00:00
23 lines
1.4 KiB
C
23 lines
1.4 KiB
C
#pragma once
|
|
|
|
#define UI_BG_COLOR lv_color_black()
|
|
#define UI_FRAME_COLOR lv_color_hex(0x282828)
|
|
#define UI_FONT_COLOR lv_color_white()
|
|
#define UI_PAGE_COUNT 3
|
|
|
|
#define MSG_NEW_HOUR 1
|
|
#define MSG_NEW_MIN 2
|
|
#define MSG_NEW_VOLT 3
|
|
#define MSG_NEW_TOUCH_POINT 4
|
|
|
|
#define LV_DELAY(x) \
|
|
do { \
|
|
uint32_t t = x; \
|
|
while (t--) { \
|
|
lv_timer_handler(); \
|
|
delay(1); \
|
|
} \
|
|
} while (0);
|
|
|
|
void ui_begin();
|
|
void ui_switch_page(void); |