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_img_1.c (497B)
1 #include "../../lv_examples.h" 2 #if LV_USE_IMG && LV_BUILD_EXAMPLES 3 4 5 void lv_example_img_1(void) 6 { 7 LV_IMG_DECLARE(img_cogwheel_argb); 8 lv_obj_t * img1 = lv_img_create(lv_scr_act()); 9 lv_img_set_src(img1, &img_cogwheel_argb); 10 lv_obj_align(img1, LV_ALIGN_CENTER, 0, -20); 11 lv_obj_set_size(img1, 200, 200); 12 13 lv_obj_t * img2 = lv_img_create(lv_scr_act()); 14 lv_img_set_src(img2, LV_SYMBOL_OK "Accept"); 15 lv_obj_align_to(img2, img1, LV_ALIGN_OUT_BOTTOM_MID, 0, 20); 16 } 17 18 #endif