Yes, I'm afraid you have the wrong forum.
This forum is purely for JavaScript code on the Espruino microcontrollers - what you've posted is Arduino code for an Arduino
@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.
Yes, I'm afraid you have the wrong forum.
This forum is purely for JavaScript code on the Espruino microcontrollers - what you've posted is Arduino code for an Arduino