default brightness (on battery) from 80../releases/ChangeLog.md to 95../releases/ChangeLog.md

This commit is contained in:
Peter D. Gray 2024-09-09 15:36:43 -04:00
parent 915f103c8f
commit 837c649168
No known key found for this signature in database
GPG Key ID: A2DCD558C2BE5D7C
3 changed files with 4 additions and 6 deletions

View File

@ -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

View File

@ -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)

View File

@ -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