voidlv_indev_get_point(constlv_indev_t*indev,lv_point_t*point) uint32_tlv_indev_get_key(constlv_indev_t*indev) boollv_indev_is_dragging(constlv_indev_t*indev) voidlv_indev_get_vect(constlv_indev_t*indev,lv_point_t*point) voidlv_indev_wait_release(lv_indev_t*indev) ...
lv_init_lv_group_initlv_indev_drv_registerlv_timer_create(lv_indev_read_timer_cb, LV_INDEV_DEF_READ_PERIOD,indev);lv_indev_read_timer_cb_lv_indev_read(indev_act, &data);// 读取按键数据indev->driver->read_cb(indev->driver,data);indev_keypad_proclv_group_send_data(g, LV_KEY_...)...
Embedded graphics library to create beautiful UIs for any MCU, MPU and display type. - lvgl/src/core/lv_indev_scroll.c at d67dd943cadb3d21a3d9488b6354f669e2e58c65 · lvgl/lvgl
TFT and touch pad drivers for LVGL embedded GUI library - lv_drivers/indev/evdev.c at af07f57390ec50fb8cd2a52590141c2ab3ce6bee · lvgl/lv_drivers
创建的组必须分配给输入设备:lv_indev_set_group(my_indev, g)(my_indev 是 lv_indev_drv_register 的返回值)。 复制 voidencoder_read(lv_indev_drv_t*drv,lv_indev_data_t*data){data->enc_diff=enc_get_new_moves();if(enc_pressed())data->state=LV_INDEV_STATE_PRESSED;elsedata->state=LV_IN...
void * param = lv_event_get_param(e); invalidate_button_area(obj, btnm->btn_id_sel); lv_indev_type_t indev_type = lv_indev_get_type(lv_indev_get_act()); if(indev_type == LV_INDEV_TYPE_POINTER || indev_type == LV_INDEV_TYPE_BUTTON) { uint16_t btn_pr; ...
#目前esp32 s3+lv_micropython v1.91无法使用lvgl的一些宏定义,一使用就会程序出错,只能根据文档把宏定义改为对应的数字,如LV_KEY_NEXT等定义(对应的是数字9)都不能用,或者它改了名字我用不了。这里记录一下吧。我使用gpio的p0来做实验。 from machine import Pin, SoftSPI,SPI ...
static void mouse_get_xy(lv_coord_t * x, lv_coord_t * y); static void keypad_init(void); static bool keypad_read(lv_indev_drv_t * indev_drv, lv_indev_data_t * data); static uint32_t keypad_get_key(void); static void encoder_init(void); ...
for btn, name in [(self.btn1, 'Play'), (self.btn2, 'Pause')]: btn.set_event_cb(lambda obj=None, event=-1, name=name: self.label.set_text('%s %s' % (name, get_member_name(lv.EVENT, event))) Using callback with user_data argument: def cb(user_data): print(user_data...
Not called if dragged. LV_SIGNAL_LONG_PRESS_REP Called after LV_INDEV_LONG_PRESS_TIME in every LV_INDEV_LONG_PRESS_REP_TIME ms. Not called if dragged. LV_SIGNAL_DRAG_BEGIN LV_SIGNAL_DRAG_END LV_SIGNAL_FOCUS LV_SIGNAL_DEFOCUS LV_SIGNAL_CONTROL LV_SIGNAL_GET_EDITABLE ...