pigpio/EXAMPLES/C/COUNTER_2
joan a723db6efc V23 2014-11-25 13:24:49 +00:00
..
README V23 2014-11-25 13:24:49 +00:00
freq_count_2.c V23 2014-11-25 13:24:49 +00:00

README

A program showing how to use the gpioSetGetSamplesFunc function to set a callback for accumulated gpio state changes over the last millisecond.

A frequency count is generated for each monitored gpio (frequencies up to 500KHz and beyond).

Generally the method used is more complicated but more efficient than frequency counter 1.