@@ -31,14 +31,16 @@ SystemInfo::SystemInfo(Pinetime::Applications::DisplayApp* app,
3131 Pinetime::Controllers::BrightnessController& brightnessController,
3232 Pinetime::Controllers::Ble& bleController,
3333 Pinetime::Drivers::WatchdogView& watchdog,
34- Pinetime::Controllers::MotionController& motionController)
34+ Pinetime::Controllers::MotionController& motionController,
35+ Pinetime::Drivers::Cst816S& touchPanel)
3536 : Screen(app),
3637 dateTimeController {dateTimeController},
3738 batteryController {batteryController},
3839 brightnessController {brightnessController},
3940 bleController {bleController},
4041 watchdog {watchdog},
4142 motionController{motionController},
43+ touchPanel{touchPanel},
4244 screens {app,
4345 0 ,
4446 {[this ]() -> std::unique_ptr<Screen> {
@@ -151,7 +153,8 @@ std::unique_ptr<Screen> SystemInfo::CreateScreen2() {
151153 " #444444 Battery# %d%%/%03imV\n "
152154 " #444444 Backlight# %s\n "
153155 " #444444 Last reset# %s\n "
154- " #444444 Accel.# %s\n " ,
156+ " #444444 Accel.# %s\n "
157+ " #444444 Touch.# %x.%x.%x\n " ,
155158 dateTimeController.Day (),
156159 static_cast <uint8_t >(dateTimeController.Month ()),
157160 dateTimeController.Year (),
@@ -166,7 +169,10 @@ std::unique_ptr<Screen> SystemInfo::CreateScreen2() {
166169 batteryController.Voltage (),
167170 brightnessController.ToString (),
168171 resetReason,
169- ToString (motionController.DeviceType ()));
172+ ToString (motionController.DeviceType ()),
173+ touchPanel.GetChipId (),
174+ touchPanel.GetVendorId (),
175+ touchPanel.GetFwVersion ());
170176 lv_obj_align (label, lv_scr_act (), LV_ALIGN_CENTER, 0 , 0 );
171177 return std::make_unique<Screens::Label>(1 , 5 , app, label);
172178}
0 commit comments