You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importboardfromdigitalioimportDigitalInOut, Direction, Pullimporttime# switchswitch=DigitalInOut(board.D19)
# if I don't do this, it won't pull the input up #switch.direction = Direction.OUTPUT#switch.value = Trueswitch.direction=Direction.INPUTswitch.pull=Pull.UPwhileTrue:
print(switch.value)
time.sleep(0.5)
Behavior
Level on D19 stays at 0V when open regardless of Pull.UP. switch.value stays False regardless of the state of the input.
If the level is first set as output, and manually set to a true value, then it stays up after reverting to input, and I can read the state.
Description
No response
Additional information
No response
The text was updated successfully, but these errors were encountered:
CircuitPython version
Code/REPL
Behavior
Level on D19 stays at 0V when open regardless of Pull.UP.
switch.value
staysFalse
regardless of the state of the input.If the level is first set as output, and manually set to a true value, then it stays up after reverting to input, and I can read the state.
Description
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: