microbit-foundation / micropython-microbit-v2

Temporary home for MicroPython for micro:bit v2 as we stablise it before pushing upstream
MIT License
43 stars 24 forks source link

Pin 9 in display mode V2 #57

Closed microbit-mark closed 3 years ago

microbit-mark commented 3 years ago

Using pin9.write_digital(1) results in ValueError: Pin 9 in display mode which we would expect on V1 as the display is coupled to the Pin.

Should it be the case as per https://tech.microbit.org/hardware/edgeconnector/#edge-connector-pins that Pin9 is no-longer coupled to the display for V2 and if so can we enable use of pin9 without having to disable the display?

MicroPython v1.13 on 2020-12-21; micro:bit v2.0.0-beta.3 with nRF52833
Type "help()" for more information.
>>> from microbit import *
>>> pin9.write_digital(1)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: Pin 9 in display mode
jaustin commented 3 years ago

See https://github.com/microbit-foundation/micropython-microbit-v2/pull/64 - will test once there's a CI build

dpgeorge commented 3 years ago

Fixed by a94e53de7e7d6856a97b71ad5667501b05e7bf03