acid-drop

- Hacking the planet from a LilyGo T-Deck using custom firmware
git clone git://git.acid.vegas/acid-drop.git
Log | Files | Refs | Archive | README | LICENSE

lv_example_monkey_2.c (680B)

      1 #include "../../lv_examples.h"
      2 #if LV_USE_MONKEY && LV_BUILD_EXAMPLES
      3 
      4 void lv_example_monkey_2(void)
      5 {
      6     /*Create encoder monkey test*/
      7     lv_monkey_config_t config;
      8     lv_monkey_config_init(&config);
      9     config.type = LV_INDEV_TYPE_ENCODER;
     10     config.period_range.min = 50;
     11     config.period_range.max = 500;
     12     config.input_range.min = -5;
     13     config.input_range.max = 5;
     14     lv_monkey_t * monkey = lv_monkey_create(&config);
     15 
     16     /*Set the default group*/
     17     lv_group_t * group = lv_group_create();
     18     lv_indev_set_group(lv_monkey_get_indev(monkey), group);
     19     lv_group_set_default(group);
     20 
     21     /*Start monkey test*/
     22     lv_monkey_set_enable(monkey, true);
     23 }
     24 
     25 #endif