Closed jaustin closed 3 years ago
I tested this. When you do display.off()
then display.on()
again it reclaims pin9. To fix that 2 lines from src/codal_port/microbit_display.c
need to be removed (grep for microbit_p9_obj
).
Let me know if you want me to make the change.
Should've grepped-before-PR sorry. Serves me right for trying to use the web interface to fix bugs.
I've made the change and pushed. Will test the CI build when it's ready. @dpgeorge in general you should feel free to just fix and commit things like this of mine if you're already in the right place etc. (Also fine to ask me to fix it, useful to see what I'd missed :) )
I tested this PR and it works. Merged in a94e53de7e7d6856a97b71ad5667501b05e7bf03
P9 is a spare pin on micro:bit V2, but was shared with the display on V1
Full pinout is available https://tech.microbit.org/hardware/edgeconnector/
See #57