From c1371a6af1b9b5c20a9d814f3df016cc2fb3af7e Mon Sep 17 00:00:00 2001 From: dequis <dx@dxzone.com.ar> Date: Fri, 19 May 2023 20:10:09 +0200 Subject: [PATCH] uppercase some stuff --- python_payload/main.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/python_payload/main.py b/python_payload/main.py index 79d9311960..c0c7bae1ad 100644 --- a/python_payload/main.py +++ b/python_payload/main.py @@ -9,9 +9,9 @@ MODULES = [ melodic_demo, ] -boot = Pin(0, Pin.IN) -vol_up = Pin(35, Pin.IN, Pin.PULL_UP) -vol_down = Pin(37, Pin.IN, Pin.PULL_UP) +BOOTSEL_PIN = Pin(0, Pin.IN) +VOL_UP_PIN = Pin(35, Pin.IN, Pin.PULL_UP) +VOL_DOWN_PIN = Pin(37, Pin.IN, Pin.PULL_UP) foreground = 0 volume = 0 @@ -144,15 +144,15 @@ def main(): set_global_volume_dB(volume) while True: - if(boot.value() == 0): + if(BOOTSEL_PIN.value() == 0): if foreground == run_menu: captouch_autocalib() else: foreground = run_menu foreground_menu() - if(vol_up.value() == 0): + if(VOL_UP_PIN.value() == 0): set_rel_volume(+3) - if(vol_down.value() == 0): + if(VOL_DOWN_PIN.value() == 0): set_rel_volume(-3) foreground() -- GitLab