I still can't understand the sence of the first setTimeout. Why not write:
analogWrite(C8, 0.5 , {freq : 2000}); setTimeout(function() {digitalRead(C8);}, 200);
? And why code
setTimeout("print(1)",2000); setTimeout("print(2)",1000);
prints 1 2 without delay?
@user51876 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.
I still can't understand the sence of the first setTimeout.
Why not write:
?
And why code
prints
1
2
without delay?