From c93252c0d363a4bd83b76a498f88903ebca55306 Mon Sep 17 00:00:00 2001 From: Ken Carpenter Date: Wed, 19 May 2021 22:12:41 -0700 Subject: [PATCH] Add Screen Brightness setting back in --- ports/stm32/boards/Passport/modules/choosers.py | 4 ++-- ports/stm32/boards/Passport/modules/flow.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ports/stm32/boards/Passport/modules/choosers.py b/ports/stm32/boards/Passport/modules/choosers.py index c6fd8dc..2b1613d 100644 --- a/ports/stm32/boards/Passport/modules/choosers.py +++ b/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) diff --git a/ports/stm32/boards/Passport/modules/flow.py b/ports/stm32/boards/Passport/modules/flow.py index 1c5729c..c2f9737 100644 --- a/ports/stm32/boards/Passport/modules/flow.py +++ b/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), ]