Artwork

内容由Adafruit Industries提供。所有播客内容(包括剧集、图形和播客描述)均由 Adafruit Industries 或其播客平台合作伙伴直接上传和提供。如果您认为有人在未经您许可的情况下使用您的受版权保护的作品,您可以按照此处概述的流程进行操作https://zh.player.fm/legal
Player FM -播客应用
使用Player FM应用程序离线!

CircuitPython speedy keyswitch handling

0:50
 
分享
 

Manage episode 295481176 series 1242341
内容由Adafruit Industries提供。所有播客内容(包括剧集、图形和播客描述)均由 Adafruit Industries 或其播客平台合作伙伴直接上传和提供。如果您认为有人在未经您许可的情况下使用您的受版权保护的作品,您可以按照此处概述的流程进行操作https://zh.player.fm/legal
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/ -----------------------------------------
  continue reading

4294集单集

Artwork
icon分享
 
Manage episode 295481176 series 1242341
内容由Adafruit Industries提供。所有播客内容(包括剧集、图形和播客描述)均由 Adafruit Industries 或其播客平台合作伙伴直接上传和提供。如果您认为有人在未经您许可的情况下使用您的受版权保护的作品,您可以按照此处概述的流程进行操作https://zh.player.fm/legal
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/ -----------------------------------------
  continue reading

4294集单集

所有剧集

×
 
Loading …

欢迎使用Player FM

Player FM正在网上搜索高质量的播客,以便您现在享受。它是最好的播客应用程序,适用于安卓、iPhone和网络。注册以跨设备同步订阅。

 

快速参考指南