Wow, GPIO is incredibly slow on this 9600baud build. I benchmarked running digitalWrite(D5, 1) and on average it takes 80ms to execute. It'll get a lot faster than that in the future, right?
> s = getTime(); for (var i = 0; i < 25; i++) {
: digitalWrite(D5, 1);
:}; e = getTime(); console.log("Seconds:" + (e-s) / 25);
Seconds:0.08226768
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.
Wow, GPIO is incredibly slow on this 9600baud build. I benchmarked running
digitalWrite(D5, 1)
and on average it takes 80ms to execute. It'll get a lot faster than that in the future, right?