default brightness (on battery) from 80../releases/ChangeLog.md to 95../releases/ChangeLog.md
This commit is contained in:
parent
915f103c8f
commit
837c649168
@ -53,6 +53,7 @@ This lists the changes in the most recent firmware, for each hardware platform.
|
||||
- Bugfix: Exporting BIP-85 derived entropy via NFC was offered even when NFC disabled,
|
||||
leading to a Yikes error.
|
||||
- Bugfix: Properly clear LCD screen after simple QR code is shown
|
||||
- Change in default brightness (on battery) from 80% to 95%.
|
||||
|
||||
|
||||
# Release History
|
||||
|
||||
@ -11,7 +11,7 @@ import uctypes
|
||||
DEFAULT_BATT_IDLE_TIMEOUT = const(10*60)
|
||||
|
||||
# 0..255 brightness value for when on batteries
|
||||
DEFAULT_BATT_BRIGHTNESS = const(200)
|
||||
DEFAULT_BATT_BRIGHTNESS = const(243) # 95% PWM
|
||||
|
||||
# had to move this pin in RevD
|
||||
# - TODO: remove this support once older boards are gone
|
||||
@ -86,8 +86,8 @@ def brightness_chooser():
|
||||
|
||||
bright = settings.get('bright', DEFAULT_BATT_BRIGHTNESS)
|
||||
|
||||
ch = [ '25%', '50%', '60%', '70%', '80% (default)', '90%','100%']
|
||||
va = [ 64, 128, 153, 180, DEFAULT_BATT_BRIGHTNESS, 230, 255]
|
||||
ch = [ '25%', '50%', '60%', '70%', '80%', '90%', '95% (default)', '100%']
|
||||
va = [ 64, 128, 153, 180, 200, 230, DEFAULT_BATT_BRIGHTNESS, 255]
|
||||
|
||||
try:
|
||||
which = va.index(bright)
|
||||
|
||||
@ -9,9 +9,6 @@ import os, sys, pyb, ckcc, version, glob, uctypes
|
||||
# value must exist in battery_idle_timeout_chooser() choices
|
||||
DEFAULT_BATT_IDLE_TIMEOUT = const(30*60)
|
||||
|
||||
# 0..255 brightness value for when on batteries
|
||||
DEFAULT_BATT_BRIGHTNESS = const(200)
|
||||
|
||||
def init0():
|
||||
# called very early
|
||||
from mk4 import init0 as mk4_init0
|
||||
|
||||
Loading…
Reference in New Issue
Block a user