Tue Feb 17, 2015 11:03 am
Maybe I am thinking too simple, but in the example code you link the command 'sleep(1);' waits for a second, so the sample rate would be 1/s (= 1 Hz). To change this look at replacing 'sleep' with 'usleep' or 'nanosleep'.
http://raspberrycompote.blogspot.com/ - Low-level graphics and 'Coding Gold Dust'