@DrAzzy, setting the debug mode seems to have no effect, but I've added it in just to cover all bases, thanks for that.
@Wilberforce, my setup was on veroboard and working last time I used it, but thanks for the suggestion.
@Gordon, thanks for your input as always (I still think it's amazing that you put so much time and effort into this). I'm not sure if the driver should set the pinMode or if the Espruinos have different defaults to the ESP8266.
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.
I managed to solve it! I was assuming the library would set the pinMode, but it doesn't (maybe it should?). Here's the working code:
@DrAzzy, setting the debug mode seems to have no effect, but I've added it in just to cover all bases, thanks for that.
@Wilberforce, my setup was on veroboard and working last time I used it, but thanks for the suggestion.
@Gordon, thanks for your input as always (I still think it's amazing that you put so much time and effort into this). I'm not sure if the driver should set the pinMode or if the Espruinos have different defaults to the ESP8266.