Add a little comment explaining how keypad entry workds

This commit is contained in:
n loewen 2025-03-08 12:26:35 +00:00
parent f21e57cafe
commit 3fd770ab53
1 changed files with 11 additions and 0 deletions

View File

@ -8,6 +8,17 @@ from adafruit_display_text import label
import keypad
from digitalio import DigitalInOut, Direction, Pull
# TO USE KEYPAD TO MANIPULATE DATA:
#
# A button: run/halt
# B button: when halted, toggles address/data entry
# Right button: when halted, single-steps
#
# Address entry: press the two digits for the address. It is entered immediately (there's no "enter" key)
# Data entry: likewise. After you press the second digit, it will automatically go to the next address.
# to list board features: print(board.__dir__)
btna = DigitalInOut(board.BTNA)