From 6fd588e970470b15936187980829916d0dbe77bb Mon Sep 17 00:00:00 2001 From: jacqueline Date: Thu, 1 Jun 2023 15:28:32 +1000 Subject: Add touchwheel -> encoder adapter --- src/ui/ui_fsm.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'src/ui/ui_fsm.cpp') diff --git a/src/ui/ui_fsm.cpp b/src/ui/ui_fsm.cpp index b08722aa..f12104e6 100644 --- a/src/ui/ui_fsm.cpp +++ b/src/ui/ui_fsm.cpp @@ -7,6 +7,7 @@ #include "ui_fsm.hpp" #include "display.hpp" #include "lvgl_task.hpp" +#include "relative_wheel.hpp" #include "screen.hpp" #include "screen_menu.hpp" #include "screen_splash.hpp" @@ -16,20 +17,17 @@ namespace ui { drivers::GpioExpander* UiState::sGpioExpander; -std::weak_ptr UiState::sTouchWheel; +std::weak_ptr UiState::sTouchWheel; std::weak_ptr UiState::sDisplay; -std::weak_ptr UiState::sDatabase; std::shared_ptr UiState::sCurrentScreen; auto UiState::Init(drivers::GpioExpander* gpio_expander, - std::weak_ptr touchwheel, - std::weak_ptr display, - std::weak_ptr database) -> void { + std::weak_ptr touchwheel, + std::weak_ptr display) -> void { sGpioExpander = gpio_expander; sTouchWheel = touchwheel; sDisplay = display; - sDatabase = database; } namespace states { @@ -47,7 +45,7 @@ void Splash::react(const system_fsm::BootComplete& ev) { } void Interactive::entry() { - // sCurrentScreen.reset(new screens::Menu()); + //sCurrentScreen.reset(new screens::Menu()); } } // namespace states -- cgit v1.2.3