• @Gordon, I understand where @MaNu82 comes from. I personally would like to have some resources accessible on and thru the JS level, for example to use a timer in a simple way. It may then inhibit other appliances, such as usart, i2c,... but would be nice. How to implement without complicating the use of Espruino can be a challenge, I could imagine, especially when it should be flexible.

    For a timer used straight forward to, for example, count external events, the Espruino JS should not be involved in the actual counting. JS should only be involved for setup and watch over/under/cycle runs, and also set a time interval the timer would actually count and a trigger when time is up (to a higher precision than with existing JS setTimeout() / setInterval() can do (I assume that these are not as accurate as a native implemented version of them).

About

Avatar for allObjects @allObjects started