So that was interesting, but not really useful. What if we wanted to actually count the amount of times a pin changed state?
Why would you call this ...not really useful? - Is there a better way do make a rpm or frequency counter/display? ...using a read/reset the count, setInterval() or setTimeout() of a particular value, read the count, do the math, show the rpms/frequency?
CAPACITIVE TOUCH SENSOR
Input capture really shines when you use it alongside another timer channel on the same timer.
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.
Why would you call this ...not really useful? - Is there a better way do make a rpm or frequency counter/display? ...using a read/reset the count, setInterval() or setTimeout() of a particular value, read the count, do the math, show the rpms/frequency?
Would that qualify for a component to build a Theremin-like instrument? ...recalling some discussion/post when @Gordon asked for PICO applications and then made the game for moving a ring around a crazy bent wire without touching?