4/30/2023 0 Comments How to use eclipse style needles![]() ![]() ![]() Static inline void lv_gauge_set_range ( lv_obj_t * gauge, int32_t min, int32_t max ) ¶ Void lv_gauge_set_value ( lv_obj_t * gauge, uint8_t needle_id, int32_t value ) ¶ Pointer to the created gauge void lv_gauge_set_needle_count ( lv_obj_t * gauge, uint8_t needle_cnt, const lv_color_t colors ) ¶Ĭolors - an array of colors for needles (with 'num' elements) Par - pointer to an object, it will be the parent of the new gaugeĬopy - pointer to a gauge object, if not NULL then the new object will be copied from it set_value ( 2, 30 )įunctions lv_obj_t * lv_gauge_create ( lv_obj_t * par, const lv_obj_t * copy ) ¶ set_needle_img ( img_hand_dsc, 4, 4 ) gauge1. set_needle_count ( 3, needle_colors ) gauge1. ![]() img_dsc_t ( ) # needle colors needle_colors = # create the gauge gauge1 = lv. exit () # create the hands image data img_hand_dsc = lv. read () except : print ( "Could not find img_hand file" ) sys. read () except : try : with open ( 'images/img_hand_rgb565.bin', 'rb' ) as f : hand_img_data = f. Import usys as sys from lv_colors import lv_colors try : with open ( './././assets/img_hand_argb.bin', 'rb' ) as f : hand_img_data = f. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |