circuitpython/shared-bindings/keypad
Jeff Epler d7c86c0e3e
refactor keypad to share more code
This saves 444 bytes on the pygamer build (both commits taken together)

testing performed:
 * pygamer (samd51) with ShiftRegisterKeys
 * macropad (rp2040) with Keys
 * UM feather s2 (esp32-s2) with KeyMatrix

Result:
 * all ports still worked nicely
 * keys held down at start always registered (>2 trials all boards, >100 trials esp32-s2)
 * keys held down are immediately registered after reset() (>100 trials esp32-s2)
 * double .reset() is OK, accessing .events throws (only tested esp32-s2)
2022-04-05 14:50:30 -05:00
..
Event.c fix hash() for Event 2021-10-19 19:04:10 -04:00
Event.h keypad: Event: add timestamp. 2021-09-16 21:08:05 -05:00
EventQueue.c Fix up onewireio docs and other notes 2021-08-12 11:15:04 -07:00
EventQueue.h many renamings; add overflowed flag to EventQuque 2021-06-23 09:57:15 -04:00
KeyMatrix.c refactor keypad to share more code 2022-04-05 14:50:30 -05:00
KeyMatrix.h refactor keypad to share more code 2022-04-05 14:50:30 -05:00
Keys.c refactor keypad to share more code 2022-04-05 14:50:30 -05:00
Keys.h refactor keypad to share more code 2022-04-05 14:50:30 -05:00
ShiftRegisterKeys.c refactor keypad to share more code 2022-04-05 14:50:30 -05:00
ShiftRegisterKeys.h refactor keypad to share more code 2022-04-05 14:50:30 -05:00
__init__.c refactor keypad to share more code 2022-04-05 14:50:30 -05:00
__init__.h refactor keypad to share more code 2022-04-05 14:50:30 -05:00