File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -127,6 +127,15 @@ bool BraccioClass::begin(voidFuncPtr customMenu) {
127
127
128
128
splashScreen ();
129
129
130
+ {
131
+ lv_style_set_text_font (&_lv_style, &lv_font_montserrat_48);
132
+ lv_obj_t * label1 = lv_label_create (lv_scr_act ());
133
+ lv_obj_add_style (label1, &_lv_style, 0 );
134
+ lv_label_set_text (label1, LV_SYMBOL_BATTERY_EMPTY);
135
+ lv_obj_set_align (label1, LV_ALIGN_CENTER);
136
+ lv_obj_set_pos (label1, 0 , 0 );
137
+ }
138
+
130
139
for (auto const now = millis ();
131
140
((millis () - now) < 5000 ) && !PD_UFP.is_PPS_ready ();)
132
141
{
@@ -137,6 +146,8 @@ bool BraccioClass::begin(voidFuncPtr customMenu) {
137
146
i2c_mutex.unlock ();
138
147
}
139
148
149
+ lv_obj_clean (lv_scr_act ());
150
+
140
151
if (!PD_UFP.is_PPS_ready ())
141
152
{
142
153
lv_style_set_text_font (&_lv_style, &lv_font_montserrat_32);
Original file line number Diff line number Diff line change @@ -282,7 +282,7 @@ e.g. "stm32f769xx.h" or "stm32f429xx.h"*/
282
282
#define LV_FONT_MONTSERRAT_42 0
283
283
#define LV_FONT_MONTSERRAT_44 0
284
284
#define LV_FONT_MONTSERRAT_46 0
285
- #define LV_FONT_MONTSERRAT_48 0
285
+ #define LV_FONT_MONTSERRAT_48 1
286
286
287
287
/*Demonstrate special features*/
288
288
#define LV_FONT_MONTSERRAT_12_SUBPX 0
You can’t perform that action at this time.
0 commit comments