CircuitPython speedy keyswitch handling

Subscribers:
458,000
Published on ● Video Link: https://www.youtube.com/watch?v=x73Clu0fZpE



Duration: 0:51
1,991 views
75


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/
-----------------------------------------




Other Videos By Adafruit Industries


2021-06-23USB controllable panel mount and tower-light samples
2021-06-22JP’s Product Pick of the Week NeoKey 1x4 QT I2C Mech Keys @adafruit @johnedgarpark #adafruit
2021-06-22JP’s Product Pick of the Week 6/22/21 NeoKey 1x4 QT @adafruit @johnedgarpark #adafruit
2021-06-22The Great Search: Non-Addressable SMT RGB LED #TheGreatSearch #DigiKey @DigiKey
2021-06-22Camera support coming to CircuitPython on ESP32-S2
2021-06-21Micro Catapult #Timelapse #3DPrinting #Adafruit
2021-06-21CircuitPython Weekly Meeting for June 21, 2021 @circuitpython #circuitpython #adafruit
2021-06-21Layer by Layer – Symmetrical Splines in Fusion 360
2021-06-21CircuitPython now does background scanning of diode matrix keyboards
2021-06-20Desk of Ladyada - RGB Drivers & CircuitPython Cameras
2021-06-20CircuitPython speedy keyswitch handling
2021-06-19Google TensorFlow Lite for Micro Experiments on Adafruit CLUE
2021-06-18Desoldering Header Pins - Collin’s Lab Notes #adafruit #collinslabnotes
2021-06-17New Products 06/16/21 feat. #Adafruit #Etched R4 #Keycap for MX Compatible Switches!
2021-06-17seesaw test - I2C to Analog Input / NeoPixel Output
2021-06-17EYE ON NPI - Nordic Semiconductor nPM1100 Power Management IC #EYEonNPI @DigiKey @NordicTweets
2021-06-17Adafruit Top Secret! June 16, 2021 #Adafruit #AdafruitTopSecret @Adafruit
2021-06-17Python on Hardware weekly video 137 #CircuitPython #Adafruit #Python #MicroPython #SBC @Adafruit
2021-06-17Made in NYC 6/16/2021 Featuring Adafruit Pick 'n Place and Board Loader
2021-06-16ASK AN ENGINEER 6/16/2021 LIVE!
2021-06-16SHOW and TELL 6/16/2021 #ShowandTell



Tags:
adafruit
electronics
diy
arduino
hardware
opensource
projects
raspberry
pi
computer
raspberrypi
microcontrollers
limor
limorfried
ladyada
STEAM
STEM
python
microbit
circuitpython
neopixel
neopixels
raspberry pi
circuitplaygound
nyc
make
makers
micro:bit
adafrit
adafruit promo code
ada fruit
adafruit coupons
raspberry pi zero
micropython
machine learning
ai
tensorflow