int main(int argc, char *argv[])
{
App_Init();
lcd_lvgl_init_lib();
lcd_open_lib();
memset(&TsPoint, 0, sizeof(TS_POINT_T));
touchpad_init();
indev_touchpad = lv_indev_create();
lv_indev_set_type(indev_touchpad, LV_INDEV_TYPE_POINTER);
lv_indev_set_read_cb(indev_touchpad, touchpad_read);
indev_keypad = lv_indev_create();
lv_indev_set_type(indev_keypad, LV_INDEV_TYPE_KEYPAD);
lv_indev_set_read_cb(indev_keypad, keypad_read);
// group = lv_group_create();
// lv_indev_set_group(indev_keypad, group); //将组绑定到输入设备
//lcd_test();
lv_example_get_started_1();
/*Handle LVGL tasks*/
while(1) {
lv_timer_handler();
lv_tick_inc(5);//防止5毫秒过去 ,LVGL会失去时钟,触摸函数无响应
}
}