You are reading a single comment by @Abhigkar and its replies. Click here to read the full conversation.
  • 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.

    I will follow the thread and see if this help me.

About

Avatar for Abhigkar @Abhigkar started