first commit
This commit is contained in:
commit
e6a42e28e9
4355 changed files with 4626605 additions and 0 deletions
27
libraries/lvgl/examples/libs/rlottie/lv_example_rlottie_1.c
Normal file
27
libraries/lvgl/examples/libs/rlottie/lv_example_rlottie_1.c
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
#include "../../lv_examples.h"
|
||||
#if LV_BUILD_EXAMPLES
|
||||
#if LV_USE_RLOTTIE
|
||||
|
||||
/**
|
||||
* Load an lottie animation from flash
|
||||
*/
|
||||
void lv_example_rlottie_1(void)
|
||||
{
|
||||
extern const uint8_t lv_example_rlottie_approve[];
|
||||
lv_obj_t * lottie = lv_rlottie_create_from_raw(lv_scr_act(), 100, 100, (const void *)lv_example_rlottie_approve);
|
||||
lv_obj_center(lottie);
|
||||
}
|
||||
|
||||
#else
|
||||
void lv_example_rlottie_1(void)
|
||||
{
|
||||
/*TODO
|
||||
*fallback for online examples*/
|
||||
|
||||
lv_obj_t * label = lv_label_create(lv_scr_act());
|
||||
lv_label_set_text(label, "Rlottie is not installed");
|
||||
lv_obj_center(label);
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue