Closed nightmarlin closed 5 months ago
after further investigation, I needed to use -target=microbit-v2
instead of -target=microbit
. I'll open a separate issue (and probably a PR) on the docs repo to make this clearer as it was not obvious from https://tinygo.org/docs/reference/microcontrollers/microbit/ or https://tinygo.org/docs/reference/machine/
When using the
microbitmatrix
driver on a Micro:Bit V2, only 2 LEDs correctly illuminate (see "got" section).This is unlikely to be an issue with the device itself as when the equivalent JS code is loaded from the MakeCode IDE, the display works as expected. I also have a Micro:Bit V1 and the below snippet runs as expected on that.
TinyGo Example
Want
Got
JS Equivalent
see it in MakeCode
Micro:Bit V2
DETAILS.TXT