adafruit / Adafruit_CircuitPython_MatrixKeypad

CircuitPython library for matrix (multiplexed) passive keypads
MIT License
15 stars 10 forks source link

Support external pull ups? #15

Open caternuson opened 2 years ago

caternuson commented 2 years ago

Library currently enables internal pull ups: https://github.com/adafruit/Adafruit_CircuitPython_MatrixKeypad/blob/71feb81d9d2b90aa8b5ab2f4eb08cbcdd4a79eae/adafruit_matrixkeypad.py#L63 but not all boards have internal pulls.

FT2332H for example: https://forums.adafruit.com/viewtopic.php?f=60&t=192604

caternuson commented 2 years ago

Could surround with try/except and just silently consume the exception? Sort of like "enable internal pulls if they exist".