From 6f942e20ed5881e0b520f4c4f0f1fd2ffb4a3a2b Mon Sep 17 00:00:00 2001 From: Riku Isokoski Date: Sat, 25 Feb 2023 13:29:07 +0200 Subject: LittleVgl: Instantiate in DisplayApp LVGL is only a part of the main DisplayApp. Other "DisplayApps" can be implemented without LVGL. DummyLittleVgl isn't needed anymore and has been removed --- src/main.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index df8425ca..9611d26c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -81,14 +81,10 @@ static constexpr uint32_t MaxTwiFrequencyWithoutHardwareBug {0x06200000}; Pinetime::Drivers::TwiMaster twiMaster {NRF_TWIM1, MaxTwiFrequencyWithoutHardwareBug, Pinetime::PinMap::TwiSda, Pinetime::PinMap::TwiScl}; Pinetime::Drivers::Cst816S touchPanel {twiMaster, touchPanelTwiAddress}; #ifdef PINETIME_IS_RECOVERY - #include "displayapp/DummyLittleVgl.h" #include "displayapp/DisplayAppRecovery.h" #else - #include "displayapp/LittleVgl.h" #include "displayapp/DisplayApp.h" #endif -Pinetime::Components::LittleVgl lvgl {lcd}; - Pinetime::Drivers::Bma421 motionSensor {twiMaster, motionSensorTwiAddress}; Pinetime::Drivers::Hrs3300 heartRateSensor {twiMaster, heartRateSensorTwiAddress}; @@ -115,7 +111,6 @@ Pinetime::Controllers::ButtonHandler buttonHandler; Pinetime::Controllers::BrightnessController brightnessController {}; Pinetime::Applications::DisplayApp displayApp(lcd, - lvgl, touchPanel, batteryController, bleController, @@ -137,7 +132,6 @@ Pinetime::System::SystemTask systemTask(spi, spiNorFlash, twiMaster, touchPanel, - lvgl, batteryController, bleController, dateTimeController, @@ -350,8 +344,6 @@ int main() { NoInit_MagicWord = NoInit_MagicValue; } - lvgl.Init(); - systemTask.Start(); nimble_port_init(); -- cgit v1.2.3-70-g09d2