8000 Reading the value of an output pin behaves differently in ESP32S2 than in SAMD · Issue #3353 · adafruit/circuitpython · GitHub
[go: up one dir, main page]

Skip to content
Reading the value of an output pin behaves differently in ESP32S2 than in SAMD #3353
Closed
@anecdata

Description

@anecdata

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]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0