From 3fd770ab53159d0519a8c9142fc93b9d4062d54d Mon Sep 17 00:00:00 2001 From: n loewen Date: Sat, 8 Mar 2025 12:26:35 +0000 Subject: [PATCH] Add a little comment explaining how keypad entry workds --- src/cpu.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/cpu.py b/src/cpu.py index 6152e3a..da4ce9d 100644 --- a/src/cpu.py +++ b/src/cpu.py @@ -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)