adjusted max brightness (#1087)
* Delete Development Resources/Images directory * jpg -> png * fix value alignment for PD timeout * Delete 001_TS80.png * replace TS80 logo * Update Settings.cpp * Update gui.cpp * Update Settings.cpp * adding missing en dash * Update translation_EN.json * Update Settings.cpp * Update gui.cpp
This commit is contained in:
@@ -82,7 +82,7 @@ static const SettingConstants settingsConstants[(int)SettingsOptions::SettingsOp
|
||||
{0, 0xFFFF, 0, 41431 /*EN*/}, // UILanguage
|
||||
{0, 51, 1, 0}, // PDNegTimeout
|
||||
{0, 2, 1, 0}, // OLEDInversion
|
||||
{3, 256, 28, 59}, // OLEDBrightness
|
||||
{0, 100, 11, 33}, // OLEDBrightness
|
||||
|
||||
};
|
||||
static_assert((sizeof(settingsConstants) / sizeof(SettingConstants)) == ((int)SettingsOptions::SettingsOptionsLength));
|
||||
|
||||
@@ -743,7 +743,7 @@ static void settings_displayBrightnessLevel(void) {
|
||||
OLED::drawArea(0, 0, 16, 16, brightnessIcon);
|
||||
OLED::setCursor(5 * FONT_12_WIDTH - 2, 0);
|
||||
// printShortDescription(SettingsItemIndex::Brightness, 7);
|
||||
OLED::printNumber(((getSettingValue(SettingsOptions::OLEDBrightness) + 25) / 28), 3, FontStyle::LARGE);
|
||||
OLED::printNumber((getSettingValue(SettingsOptions::OLEDBrightness) / 11 + 1), 3, FontStyle::LARGE);
|
||||
// While not optimal to apply this here, it is _very_ convienient
|
||||
OLED::setBrightness(getSettingValue(SettingsOptions::OLEDBrightness));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user