digitalWrite() should set pin mode (unless you've otherwise set it manually), unlike in Arduino et al. I remember hearing something about the ESP8266 port not doing that. I assumed that was fixed though, since they were talking about it late last year I think...
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.
digitalWrite() should set pin mode (unless you've otherwise set it manually), unlike in Arduino et al. I remember hearing something about the ESP8266 port not doing that. I assumed that was fixed though, since they were talking about it late last year I think...