Comments (5)
I think the typical approach to this - at least if you're not a vendor writing your own driver - is to use USB serial. I'm not sure how you'd go about doing this on CircuitPython alongside HID but I'd wager it's possible. Then you can use a Python script or similar to push serial status updates back to the device.
from keybow2040-circuitpython.
Thanks @Gadgetoid , appreciate the tip.
I have to sort it out and will share once I do. Thanks
from keybow2040-circuitpython.
@raspberryvalley did u come up with something here?
from keybow2040-circuitpython.
@mosch I solved a scenario similar to the one @raspberryvalley described using USB serial communications utilizing this https://circuitpython.readthedocs.io/en/latest/shared-bindings/usb_cdc/index.html. The Keybow2040 sends each number of a pressed key which will trigger certain actions on the host (which can also rerspect layer definitions). In return it receives updates in the form of [keynumber],[colorcode]
to control the LEDs. I uploaded the code here: https://gist.github.com/mschwld/7e0e16fbc8a7dc6f24b5d31c1f946329.
from keybow2040-circuitpython.
A PR with an example of this technique would be appreciated over at - https://github.com/pimoroni/pmk-circuitpython
Thank you!
from keybow2040-circuitpython.
Related Issues (8)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from keybow2040-circuitpython.