Hi I uploaded the following to the Espruino device function toggle() { on = !on; digitalWrite(LED1, on); digitalWrite(LED2, !on); }
var interval = setInterval(toggle,500);
Then executed the save() on the terminal
@Gill 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.
Hi
I uploaded the following to the Espruino device
function toggle() {
on = !on;
digitalWrite(LED1, on);
digitalWrite(LED2, !on);
}
var interval = setInterval(toggle,500);
Then executed the save() on the terminal