I just got my Espruino and wanted to see if i can make a touch switch from it. I wrote a small program to read analog values of pin C7 (random choice here) ..
while it works fairly reliably when I touch the pin, i do this by setting up an interval to check the value every 200ms. I'm wondering what the resolution of the polling is. Can I poll every 100ms? every 10ms?
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.
I just got my Espruino and wanted to see if i can make a touch switch from it. I wrote a small program to read analog values of pin C7 (random choice here) ..
while it works fairly reliably when I touch the pin, i do this by setting up an interval to check the value every 200ms. I'm wondering what the resolution of the polling is. Can I poll every 100ms? every 10ms?