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_rlottie_1.c (601B)

      1 #include "../../lv_examples.h"
      2 #if LV_BUILD_EXAMPLES
      3 #if LV_USE_RLOTTIE
      4 
      5 /**
      6  * Load an lottie animation from flash
      7  */
      8 void lv_example_rlottie_1(void)
      9 {
     10     extern const uint8_t lv_example_rlottie_approve[];
     11     lv_obj_t * lottie = lv_rlottie_create_from_raw(lv_scr_act(), 100, 100, (const void *)lv_example_rlottie_approve);
     12     lv_obj_center(lottie);
     13 }
     14 
     15 #else
     16 void lv_example_rlottie_1(void)
     17 {
     18     /*TODO
     19      *fallback for online examples*/
     20 
     21     lv_obj_t * label = lv_label_create(lv_scr_act());
     22     lv_label_set_text(label, "Rlottie is not installed");
     23     lv_obj_center(label);
     24 }
     25 
     26 #endif
     27 #endif