hi @allObjects , thanks for your quick response and recommendations. I just want to clarify two things.
The code below runs perfectly, but it does not run in the form I described above.
var toggle=1;
setInterval(function() {
toggle=!toggle;
digitalWrite(D5, toggle);
console.log(toggle);
}, 1000);
As you assumed, I write my code in the right pane and upload it. Then I say save() in the left pane. I can see onInit() gets called and the console logs true, false.... I mean everything works as expected except digitalWrite()
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 @allObjects , thanks for your quick response and recommendations. I just want to clarify two things.
The code below runs perfectly, but it does not run in the form I described above.
As you assumed, I write my code in the right pane and upload it. Then I say save() in the left pane. I can see onInit() gets called and the console logs true, false.... I mean everything works as expected except digitalWrite()