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_animimg_1.c (596B)

      1 #include "../../lv_examples.h"
      2 #if LV_USE_ANIMIMG && LV_BUILD_EXAMPLES
      3 LV_IMG_DECLARE(animimg001)
      4 LV_IMG_DECLARE(animimg002)
      5 LV_IMG_DECLARE(animimg003)
      6 
      7 static const lv_img_dsc_t * anim_imgs[3] = {
      8     &animimg001,
      9     &animimg002,
     10     &animimg003,
     11 };
     12 
     13 void lv_example_animimg_1(void)
     14 {
     15     lv_obj_t * animimg0 = lv_animimg_create(lv_scr_act());
     16     lv_obj_center(animimg0);
     17     lv_animimg_set_src(animimg0, (lv_img_dsc_t **) anim_imgs, 3);
     18     lv_animimg_set_duration(animimg0, 1000);
     19     lv_animimg_set_repeat_count(animimg0, LV_ANIM_REPEAT_INFINITE);
     20     lv_animimg_start(animimg0);
     21 }
     22 
     23 #endif