# CircuitPython speedy keyswitch handling

> Episode of [Adafruit Industries](https://podistic.com/podcast/adafruit-industries.md) · Published June 20, 2021 · Duration 0:50

- **Listen on Podistic:** https://podistic.com/episode/circuitpython-speedy-keyswitch-handling
- **Video:** https://adafruit-podcasts.s3.amazonaws.com/media/x73Clu0fZpE_360.mp4 (video/mp4)

## About this episode

Dan just dropped a new PR with our event-based key switch vector/matrix handling all done in the CircuitPython core https://github.com/adafruit/circuitpython/pull/4891 which will make keyboard projects a lot easier and a TON faster. Matrix/vector scanning is now done in a background interrupt and can handle all the work for you and emit key press/release events. Here I've got it on our Macropad, which has 12 keys - one on each GPIO so its a 'vector' keypad. The code is now twice as fast since we're no longer spending 4ms just for checking whether switches are pressed!

#adafruit #circuitpython #keyboards

Visit the Adafruit shop online - http://www.adafruit.com

-----------------------------------------
LIVE CHAT IS HERE! http://adafru.it/discord

Adafruit on Instagram: https://www.instagram.com/adafruit

Subscribe to Adafruit on YouTube: http://adafru.it/subscribe

New tutorials on the Adafruit Learning System: http://learn.adafruit.com/
-----------------------------------------
