Are you still trying to do this in an oninit() function, or are you trying the simple case?
You should be able to paste the setup stuff directly into the left side of the ide
@Wilberforce 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.
Are you still trying to do this in an oninit() function, or are you trying the simple case?
You should be able to paste the setup stuff directly into the left side of the ide