Browse Source

Add Screen Brightness setting back in

v1.0.2-dev
Ken Carpenter 4 years ago
parent
commit
c93252c0d3
  1. 4
      ports/stm32/boards/Passport/modules/choosers.py
  2. 4
      ports/stm32/boards/Passport/modules/flow.py

4
ports/stm32/boards/Passport/modules/choosers.py

@ -40,8 +40,8 @@ def shutdown_timeout_chooser():
def brightness_chooser():
screen_brightness = settings.get('screen_brightness', 100)
ch = ['Off', '25%', '50%', '75%', '100%', 'Automatic']
va = [0, 25, 50, 75, 100, 999]
ch = ['Off', '25%', '50%', '75%', '100%'] # , 'Automatic']
va = [0, 25, 50, 75, 100] # , 999]
try:
which = va.index(screen_brightness)

4
ports/stm32/boards/Passport/modules/flow.py

@ -66,7 +66,7 @@ SettingsMenu = [
MenuItem('About', f=about_info),
MenuItem('Firmware', menu=FirmwareMenu),
MenuItem('Backup', menu=BackupMenu),
# MenuItem('Screen Brightness', chooser=brightness_chooser),
MenuItem('Screen Brightness', chooser=brightness_chooser),
MenuItem('Auto Shutdown', chooser=shutdown_timeout_chooser),
MenuItem('Multisig', menu=make_multisig_menu, arg='Multisig'),
MenuItem('Accounts', menu=make_accounts_menu, arg='Accounts'),
@ -76,7 +76,7 @@ SettingsMenu = [
NoWalletSettingsMenu = [
MenuItem('About', f=about_info),
MenuItem('Firmware', menu=FirmwareMenu),
# MenuItem('Screen Brightness', chooser=brightness_chooser),
MenuItem('Screen Brightness', chooser=brightness_chooser),
MenuItem('Auto Shutdown', chooser=shutdown_timeout_chooser),
MenuItem('Change PIN', f=change_pin),
]

Loading…
Cancel
Save