microbit-foundation / dev-docs

The content of the tech.microbit.org site
https://tech.microbit.org
Other
55 stars 70 forks source link

hardware/edgeconnector.md - Disabling buttons A and B so the pins can be used as general purpose outputs #375

Open martinwork opened 2 years ago

martinwork commented 2 years ago

https://tech.microbit.org/hardware/edgeconnector/#pins-p5-p11

Under the heading pins: P5, P11 there is a suggestion to disable the buttons by using "delete uBit.buttonA".

For CODAL at least, this doesn't seem to work, but "uBit.buttonA.disable()" does seem to work in C++ as described in https://github.com/lancaster-university/codal-microbit-v2/issues/84#issuecomment-798773312