pimoroni / pmk-circuitpython

MIT License
88 stars 22 forks source link

How easy would it be to run MicroPython on the KeyBow 2040? #6

Closed rtyley closed 1 year ago

rtyley commented 2 years ago

Unfortunately some of the differences between CircuitPython and MicroPython are a bit limiting for me - for example the time module is quite constrained (CircuitPython vs MicroPython). I don't need USB-HID support for my project, so how easy would it be to run MicroPython on it instead?

There's no specific build of Micropython for the KeyBow 2040, so far as I can see:

image

Would it be safe for me to use the standard rp2-pico build instead?

Gadgetoid commented 2 years ago

The standard Pico build should get you started, yes (they both have the standard 2MB flash). You could use one of our packed-with-libraries builds, but those extra libraries probably wont be that useful to you.

Gadgetoid commented 2 years ago

You can also peer into the depths of CircuitPython to figure out which pin goes to which key:

https://github.com/adafruit/circuitpython/blob/af9f80daebfd6a5a4a069070d439dce242581df5/ports/raspberrypi/boards/pimoroni_keybow2040/pins.c#L16-L31

rtyley commented 2 years ago

You can also peer into the depths of CircuitPython to figure out which pin goes to which key

Ah, thank you!