8000 Raspberry Pi Pico W - reading digital output is always False · Issue #6959 · adafruit/circuitpython · GitHub
[go: up one dir, main page]

Skip to content

Raspberry Pi Pico W - reading digital output is always False #6959

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
anecdata opened this issue Sep 29, 2022 · 0 comments · Fixed by #6960
Closed

Raspberry Pi Pico W - reading digital output is always False #6959

anecdata opened this issue Sep 29, 2022 · 0 comments · Fixed by #6960
Labels
bug rp2040 Raspberry Pi RP2040
Milestone

Comments

@anecdata
Copy link
Member

CircuitPython version

Adafruit CircuitPython 8.0.0-beta.0-65-g5781bd318 on 2022-09-22; Raspberry Pi Pico W with rp2040

Code/REPL

Adafruit CircuitPython 8.0.0-beta.0-65-g5781bd318 on 2022-09-22; Raspberry Pi Pico W with rp2040
>>> 
>>> import board
>>> import digitalio
>>> 
>>> led = digitalio.DigitalInOut(board.LED)
>>> led.switch_to_output(False)
>>> 
>>> led.value
False
>>> led.value = True
>>> led.value
False
>>> led.value = not led.value
>>> led.value
False
>>> led.value = not led.value
>>> led.value
False

Behavior

Like #3353, but for Pico W.

Can't read the output value of board.LED.

Description

No response

Additional information

No response

@anecdata anecdata added bug rp2040 Raspberry Pi RP2040 labels Sep 29, 2022
jepler added a commit to jepler/circuitpython that referenced this issue Sep 29, 2022
Now, `led.value = not led.value` works as a way to toggle the LED state.

Closes: adafruit#6959
@dhalbert dhalbert added this to the 8.0.0 milestone Sep 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug rp2040 Raspberry Pi RP2040
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants
0