diff options
author | JF <jf@codingfield.com> | 2020-03-15 20:19:29 +0100 |
---|---|---|
committer | Gitea <gitea@fake.local> | 2020-03-15 20:19:29 +0100 |
commit | 2c55ab20b4f52d21a04e1d0ee049f7c4ca0196de (patch) | |
tree | d51123b57241556303891ef4cb5b81c47c348a51 /src/DisplayApp/DisplayApp.h | |
parent | eabb54f15df7df69951ce8f49a62d3bd702dd686 (diff) | |
parent | 2ed76ac55615a720dbcbf2ac828ad3060a252273 (diff) |
Merge branch 'brightness-app' of JF/PineTime into develop
Diffstat (limited to 'src/DisplayApp/DisplayApp.h')
-rw-r--r-- | src/DisplayApp/DisplayApp.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/DisplayApp/DisplayApp.h b/src/DisplayApp/DisplayApp.h index eaad1baa..ccbca4c3 100644 --- a/src/DisplayApp/DisplayApp.h +++ b/src/DisplayApp/DisplayApp.h @@ -7,6 +7,7 @@ #include <bits/unique_ptr.h> #include <queue.h> #include <Components/Battery/BatteryController.h> +#include <Components/Brightness/BrightnessController.h> #include <Components/Ble/BleController.h> #include <Components/DateTime/DateTimeController.h> #include "Fonts/lcdfont14.h" @@ -37,7 +38,7 @@ namespace Pinetime { void Start(); void PushMessage(Messages msg); - enum class Apps {None, Launcher, Clock, Test, Meter, Gauge}; + enum class Apps {None, Launcher, Clock, Test, Meter, Gauge, Brightness}; void StartApp(Apps app); private: @@ -64,15 +65,13 @@ namespace Pinetime { TouchEvents OnTouchEvent(); std::unique_ptr<Screens::Screen> currentScreen; - static constexpr uint8_t pinLcdBacklight1 = 14; - static constexpr uint8_t pinLcdBacklight2 = 22; - static constexpr uint8_t pinLcdBacklight3 = 23; bool isClock = true; Pinetime::System::SystemTask& systemTask; Apps nextApp = Apps::None; bool onClockApp = false; // TODO find a better way to know that we should handle gestures and button differently for the Clock app. + Controllers::BrightnessController brightnessController; }; } } |