I'd very much like a pin.mode() - Gordon indicated a willingness to implement this...
I oppose pin.readOutputValue(). Set the pin mode properly in the first place and use pin.read(), or remember what you've set the pin to. Unless we're interested in cases where the output value is not the same as the logical value on the pin because you're trying to draw so much current that the chip can't drive it hard enough.
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.
That's where I always put my pinMode() calls.
I'd very much like a pin.mode() - Gordon indicated a willingness to implement this...
I oppose pin.readOutputValue(). Set the pin mode properly in the first place and use pin.read(), or remember what you've set the pin to. Unless we're interested in cases where the output value is not the same as the logical value on the pin because you're trying to draw so much current that the chip can't drive it hard enough.