mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
fix docs exemple (#7436)
Co-authored-by: Pierre-Noel Bouteville <pnb990@gmail.com>
This commit is contained in:
parent
7f07a129e8
commit
c903c1dc0f
@ -204,7 +204,7 @@ simulating a button press (although there are simpler ways to do this):
|
||||
|
||||
/*Simulate the press of the first button (indexes start from zero)*/
|
||||
uint32_t btn_id = 0;
|
||||
lv_event_send(mbox, LV_EVENT_VALUE_CHANGED, &btn_id);
|
||||
lv_obj_send_event(mbox, LV_EVENT_VALUE_CHANGED, &btn_id);
|
||||
|
||||
The same works for display and input devices with
|
||||
:cpp:expr:`lv_display_send_event(obj, <EVENT_CODE>, &some_data)` and
|
||||
|
Loading…
x
Reference in New Issue
Block a user