25 using Integer::Integer;
30 [[nodiscard]] int32_t getMinValue()
const override {
return to_ui(kMinLedBrightness); }
31 [[nodiscard]] int32_t getMaxValue()
const override {
return to_ui(kMaxLedBrightness); }
32 void readCurrentValue()
override { this->setValue(to_ui(FlashStorage::defaultPadBrightness)); }
33 void writeCurrentValue()
override {
34 int32_t normalizedValue = to_internal(this->getValue());
35 FlashStorage::defaultPadBrightness = normalizedValue;
36 PadLEDs::setBrightnessLevel(normalizedValue);
40 int32_t to_internal(int32_t value)
const {
return value >> 2; }
41 int32_t to_ui(int32_t value)
const {
return value << 2; }