@@ -18,12 +18,14 @@ using namespace smooth_ui_toolkit::lvgl_cpp;
1818
1919static const std::string _tag = " panel-lcd-bl" ;
2020
21- static constexpr int16_t _label_pos_x = 591 ;
22- static constexpr int16_t _label_pos_y = 94 ;
23- static constexpr int16_t _btn_up_pos_x = 499 ;
24- static constexpr int16_t _btn_up_pos_y = 166 ;
25- static constexpr int16_t _btn_down_pos_x = 593 ;
26- static constexpr int16_t _btn_down_pos_y = 166 ;
21+ static constexpr int16_t _label_pos_x = 595 ;
22+ static constexpr int16_t _label_pos_y = 107 ;
23+ static constexpr int16_t _label_panel_ic_x = -7 ;
24+ static constexpr int16_t _label_panel_ic_y = 74 ;
25+ static constexpr int16_t _btn_up_pos_x = 505 ;
26+ static constexpr int16_t _btn_up_pos_y = 176 ;
27+ static constexpr int16_t _btn_down_pos_x = 599 ;
28+ static constexpr int16_t _btn_down_pos_y = 176 ;
2729
2830static constexpr int16_t _midi_up = 64 + 24 ;
2931static constexpr int16_t _midi_down = 60 + 24 ;
@@ -38,6 +40,12 @@ void PanelLcdBacklight::init()
3840 _label_brightness->setTextColor (lv_color_hex (0xFEFEFE ));
3941 _label_brightness->setText (fmt::format (" {}" , GetHAL ()->getDisplayBrightness ()));
4042
43+ _label_panel_ic = std::make_unique<Label>(lv_screen_active ());
44+ _label_panel_ic->align (LV_ALIGN_RIGHT_MID , _label_panel_ic_x, _label_panel_ic_y);
45+ _label_panel_ic->setTextFont (&lv_font_montserrat_16);
46+ _label_panel_ic->setTextColor (lv_color_hex (0x55866D ));
47+ _label_panel_ic->setText (fmt::format (" LCD IC: {}" , GetHAL ()->getDisplayPanelIc ()));
48+
4149 _btn_up = std::make_unique<Container>(lv_screen_active ());
4250 _btn_up->align (LV_ALIGN_CENTER , _btn_up_pos_x, _btn_up_pos_y);
4351 _btn_up->setSize (81 , 85 );
0 commit comments