A lot of people are asking:<p>- why python?<p>- isn't is slow?<p>Remember that Python is a language spec, there are several implementations.<p>This project uses a particular implementation called CircuitPython (
<a href="https://en.wikipedia.org/wiki/CircuitPython" rel="nofollow">https://en.wikipedia.org/wiki/CircuitPython</a>), a derivative project from MicroPython (
<a href="https://fr.wikipedia.org/wiki/MicroPython" rel="nofollow">https://fr.wikipedia.org/wiki/MicroPython</a>), by the people at AdaFruit.<p>This implementation runs with a very different VM that can fit within 256k of code space and 16k of RAM.<p>So, while obviously you cannot expect anywhere near C level of perfs, this is way lighter than CPython.<p>The advantage is that you get the ease of Python to program your board, including the clean terce language, the memory management and the rich data structures. You can even have a live shell on some embeded hardwares! The whole dev process is so simple: code, copy your module, run.<p>Of course, some features of CPython are not available.
Great job! I've not seen python-based keyboard firmware before, I'm impressed that it's fast enough to run something like a keyboard.<p>Without detracting from the code in the post, I recommend that anyone wanting to make and program their own keyboard should take a look at QMK, a widely supported keyboard firmware project that is FOSS: <a href="https://qmk.fm/" rel="nofollow">https://qmk.fm/</a>
If you want to make a little macro-keyboard equivalent at a fraction of the cost, I wrote a little guide (with example code) here: <a href="https://makeandymake.github.io/2020/05/02/seeeduino-xiao-circuitpython-usb-hid-macro-keypad.html" rel="nofollow">https://makeandymake.github.io/2020/05/02/seeeduino-xiao-cir...</a>
This looks cool, however can someone with some electronics know-how explain to me why the connections on most, if not all the keys are crossed? They don't look like insulated wires, though I could be wrong.
This is nice, we need more such open-source, affordable keyboard designs and components; Especially for accessibility keyboards[1] as their costs are exorbitant.<p>[1]<a href="https://needgap.com/problems/96-one-hand-keyboard-keyboard-accessibility" rel="nofollow">https://needgap.com/problems/96-one-hand-keyboard-keyboard-a...</a>
Haha that's amazing. What's the latency on this though? I always assumed firmware written in python would be slow for a use case like a keyboard.
Nice, if I made it I would replace the capslock with control and "~" with escape. Make the <i>least used</i> keys require combinations, not the often used ones.