Different, slightly unrelated question: I tried to use
var led1=flow(D13); setInterval(led1(0.01),2);
but I get an error:
>setInterval(led1(0.01),2); =undefined Uncaught Error: Function or String not supplied! at line 1 col 25 setInterval(led1(0.01),2);
Anyone an idea why that does not work? led1 is a function after all when I use it as led1()...
@HaraldK 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.
Different, slightly unrelated question:
I tried to use
but I get an error:
Anyone an idea why that does not work? led1 is a function after all when I use it as led1()...