Skip to content

Commit

Permalink
Update ui_barometer.h
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrouch authored Jan 4, 2024
1 parent 43c2f0b commit b78111c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bbn_m5tough_active_boat/ui_barometer.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ extern "C" {
* A pressure display meter
*/
static void lv_barometer_display(lv_obj_t *parent) {

lv_obj_t *main_label = lv_label_create(parent);
lv_obj_align(main_label, LV_ALIGN_CENTER, 0, -105);
lv_label_set_recolor(main_label, true);
lv_label_set_text_static(main_label, " AIR #0080ff " LV_SYMBOL_IMAGE " #");

barometer_display = lv_meter_create(parent);
lv_obj_align(barometer_display, LV_ALIGN_CENTER, -40, 0);
lv_obj_set_size(barometer_display, 193, 193);
Expand Down

0 comments on commit b78111c

Please sign in to comment.