Closed
Description
Is this a bug, or is it explicitly undefined behavior to read the value of an output?
>>> import board
>>> from digitalio import DigitalInOut, Direction
>>> led = DigitalInOut(any_gpio)
>>> led.direction = Direction.OUTPUT
PyPortal (alpha.3):
>>> led.value = True
>>> led.value
True
(the LED is ON)
vs.
Saola (alpha.3):
>>> led.value = True
>>> led.value
False
(the LED is ON)
[edited to explicitly show pin is set up in either case as an output]