It's set up in a PIO routine to act as a input to a quadrature counter. I was testing using the micropython REPL after a hard reset :
I can't see any obvious reason for the failure ; the pin is connected to the open collector output of an LM339 and pulled up to the 3v3 output of the pico with a 3k0 resistor
Playing with it just now, after several hours off with nothing running, The output remains pulled low , but I'm able to toggle it to high by shorting the pin to 3v3 briefly or toggle low by touching to 0v . It suggests to me that the internal direction logic is locked to output
Code:
p=Pin(14, Pin.OUT) p.toggle() p=Pin(14,Pin.IN , PIn.PULL_DOWN)
Playing with it just now, after several hours off with nothing running, The output remains pulled low , but I'm able to toggle it to high by shorting the pin to 3v3 briefly or toggle low by touching to 0v . It suggests to me that the internal direction logic is locked to output
Statistics: Posted by BillTodd — Wed Jan 17, 2024 7:36 pm