This feature is not needed and is probably more likely to cause issues. It's better to just use brightnessController.Set(settingsController.GetBrightness());
26 lines
438 B
C++
26 lines
438 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
|
|
namespace Pinetime {
|
|
namespace Controllers {
|
|
class BrightnessController {
|
|
public:
|
|
enum class Levels { Off, Low, Medium, High };
|
|
void Init();
|
|
|
|
void Set(Levels level);
|
|
Levels Level() const;
|
|
void Lower();
|
|
void Higher();
|
|
void Step();
|
|
|
|
const char* GetIcon();
|
|
const char* ToString();
|
|
|
|
private:
|
|
Levels level = Levels::High;
|
|
};
|
|
}
|
|
}
|