Skip to content

Conversation

jaustin
Copy link
Contributor

@jaustin jaustin commented Feb 12, 2021

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

@jaustin jaustin mentioned this pull request Feb 12, 2021
@dpgeorge
Copy link
Collaborator

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.

P9 is a spare pin on micro:bit V2, but was shared with the display on V1

This commit updates the definition of the pin and stops the display from
trying to acquire/release it during enable/disable

Full pinout is available https://tech.microbit.org/hardware/edgeconnector/

See #57
@jaustin
Copy link
Contributor Author

jaustin commented Feb 15, 2021

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 :) )

@dpgeorge
Copy link
Collaborator

I tested this PR and it works. Merged in a94e53d

@dpgeorge dpgeorge closed this Feb 17, 2021
@dpgeorge dpgeorge deleted the P9-usage-fixup branch February 17, 2021 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants