1 #include "../../lv_examples.h" 2 #if LV_USE_MONKEY && LV_BUILD_EXAMPLES 3 lv_example_monkey_1(void)4void lv_example_monkey_1(void) 5 { 6 /*Create pointer monkey test*/ 7 lv_monkey_config_t config; 8 lv_monkey_config_init(&config); 9 config.type = LV_INDEV_TYPE_POINTER; 10 config.period_range.min = 10; 11 config.period_range.max = 100; 12 lv_monkey_t * monkey = lv_monkey_create(&config); 13 14 /*Start monkey test*/ 15 lv_monkey_set_enable(monkey, true); 16 } 17 18 #endif 19