Thanks @allObjects for making me correct on my understanding. I am pretty much new to this type of architecture, and mostly worked on c#/ JavaScript web based application system. Electronics is my hobby and I like Esprunio because of its power and portability on embedded devices.
My requirement is very very close to this there where Arduino code needs to be translated in JavaScript.
while (digitalRead(clk) == LOW) {}
The only change is the pin, which in my case is not CS but a normal Pin which is controlled by sensor, but still very close to my issue.
And Gordon’s response
The issue you're hitting is that setWatch timestamps the events and put them in a queue to execute with JS - but as you notice it's won't execute JavaScript in the interrupt itself.
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.
Thanks @allObjects for making me correct on my understanding. I am pretty much new to this type of architecture, and mostly worked on c#/ JavaScript web based application system. Electronics is my hobby and I like Esprunio because of its power and portability on embedded devices.
My requirement is very very close to this there where Arduino code needs to be translated in JavaScript.
The only change is the pin, which in my case is not CS but a normal Pin which is controlled by sensor, but still very close to my issue.
And Gordon’s response
I will follow the thread and see if this help me.