Hi Maik, yes that is expected. Not like Arduino but I think it is more obvious for beginners.
It you want to 'lock' the pin mode, use pinMode and then read/set/reset/write won't change the pin state
@Gordon started
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.
Hi Maik, yes that is expected. Not like Arduino but I think it is more obvious for beginners.
It you want to 'lock' the pin mode, use pinMode and then read/set/reset/write won't change the pin state