OK I got it! I did not understand that the value read in the outregister was not representative of the actual value. It is a bit confusing because on Pico and other platforms based on STM32 a pin can easily be set to 'output' while still readable by digitalRead().
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
OK I got it! I did not understand that the value read in the
out
register was not representative of the actual value. It is a bit confusing because on Pico and other platforms based on STM32 a pin can easily be set to 'output' while still readable by digitalRead().