Skip to content

Commit

Permalink
Update keypad action order to comply with page.py
Browse files Browse the repository at this point in the history
Keypad action order was changed in page.py. So this needs to be changed in gpio_esp32.py
  • Loading branch information
matztam authored Mar 21, 2024
1 parent 2c8443f commit 1595485
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hat/gpio_esp32.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
import time
from time import sleep
if gc.mem_free() > 1e6: # larger ttgo display
keypad_pin_numbers = [34, 36, 26, 33, 0, 35, 39, -1, 37, 38] #AUTO, MENU, SMALL_PORT, SMALL_STARBOARD, SELECT, BIG_PORT, BIG_STARBOARD, TACK, DODGE_PORT, DODGE_STARBOARD
keypad_pin_numbers = [34, 36, 26, 33, 0, 35, 39] #BIG_PORT, SMALL_PORT, SMALL_STARBOARD, BIG_STARBOARD, AUTO, MENU, MODE (set to -1 if button is not present)
keypad_pullup = [37, 38, 39] #add the pins that have pullups(LOW activ) ALL other will have pulldowns(HIGH active)
keypad_touch = [] #add the pins that are esp32 touchpins and are used without pushbuttons
power_down_pin_number = None
else:
keypad_pin_numbers = [33, 25, 12, 13, 27, 15, 32, -1, 0, 35] #AUTO, MENU, SMALL_PORT, SMALL_STARBOARD, SELECT, BIG_PORT, BIG_STARBOARD, TACK, DODGE_PORT, DODGE_STARBOARD
keypad_pin_numbers = [33, 25, 12, 13, 27, 15, 32] #BIG_PORT, SMALL_PORT, SMALL_STARBOARD, BIG_STARBOARD, AUTO, MENU, MODE (set to -1 if button is not present)
keypad_pullup = [0, 35] #add the pins that have pullups(LOW activ) ALL other will have pulldowns(HIGH active)
keypad_touch = [] #add the pins that are esp32 touchpins and are used without pushbuttons
power_down_pin_number = 26
Expand Down

0 comments on commit 1595485

Please sign in to comment.