add lcd driver for xidatong

This commit is contained in:
Wang_Weigen
2022-05-06 17:53:48 +08:00
parent afc4b58b74
commit 5338598158
14 changed files with 1728 additions and 10 deletions

View File

@@ -22,11 +22,11 @@ extern void lv_example_aoteman(void);
void* lvgl_thread(void *parameter)
{
/* display demo; you may replace with your LVGL application at here */
// lv_demo_calendar();
lv_demo_calendar();
// lv_example_img_1();
// lv_example_chart_2();
// lv_example_line_1();
lv_example_aoteman();
// lv_example_aoteman();
/* handle the tasks of LVGL */
while(1)
{

View File

@@ -18,7 +18,7 @@ static void event_handler(lv_event_t * e)
void lv_demo_calendar(void)
{
lv_obj_t * calendar = lv_calendar_create(lv_scr_act());
lv_obj_set_size(calendar, 320, 240);
lv_obj_set_size(calendar, 480, 272);
lv_obj_align(calendar, LV_ALIGN_CENTER, 0, 0);
lv_obj_add_event_cb(calendar, event_handler, LV_EVENT_ALL, NULL);