Provide reference to BrightnessController in DisplayApp

For the simulator I need a way to get to the brightnessController object
and handle the set brightness-levels accoringly.

This is done by the constructor expecting a brightnessController object
instead of initializing one itself
This commit is contained in:
Reinhold Gschweicher
2022-01-30 14:31:13 +01:00
committed by JF
parent f829427c41
commit 407908686a
5 changed files with 10 additions and 1 deletions

View File

@@ -34,6 +34,7 @@ namespace Pinetime {
class MotorController;
class TimerController;
class AlarmController;
class BrightnessController;
}
namespace System {
@@ -57,6 +58,7 @@ namespace Pinetime {
Pinetime::Controllers::MotionController& motionController,
Pinetime::Controllers::TimerController& timerController,
Pinetime::Controllers::AlarmController& alarmController,
Pinetime::Controllers::BrightnessController& brightnessController,
Pinetime::Controllers::TouchHandler& touchHandler);
void Start();
void Start(Pinetime::System::BootErrors){ Start(); };