first commit
This commit is contained in:
commit
e6a42e28e9
4355 changed files with 4626605 additions and 0 deletions
18
libraries/lvgl/examples/others/monkey/lv_example_monkey_1.c
Normal file
18
libraries/lvgl/examples/others/monkey/lv_example_monkey_1.c
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#include "../../lv_examples.h"
|
||||
#if LV_USE_MONKEY && LV_BUILD_EXAMPLES
|
||||
|
||||
void lv_example_monkey_1(void)
|
||||
{
|
||||
/*Create pointer monkey test*/
|
||||
lv_monkey_config_t config;
|
||||
lv_monkey_config_init(&config);
|
||||
config.type = LV_INDEV_TYPE_POINTER;
|
||||
config.period_range.min = 10;
|
||||
config.period_range.max = 100;
|
||||
lv_monkey_t * monkey = lv_monkey_create(&config);
|
||||
|
||||
/*Start monkey test*/
|
||||
lv_monkey_set_enable(monkey, true);
|
||||
}
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue