Thank you Gordon
Testing your code, it does what is expected. However, I have difficulties to link my previous code with your explanation. It probably comes from my ignorance of how Espruino works internally. One additional question: what is the effect of the debounce parameter ? In which use cases shall I use it ?
Thanks again for your help.
GB
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.
Thank you Gordon
Testing your code, it does what is expected. However, I have difficulties to link my previous code with your explanation. It probably comes from my ignorance of how Espruino works internally. One additional question: what is the effect of the debounce parameter ? In which use cases shall I use it ?
Thanks again for your help.
GB