joan2937 / pigpio

pigpio is a C library for the Raspberry which allows control of the General Purpose Input Outputs (GPIO).
The Unlicense
1.45k stars 407 forks source link

Lower sample rates beyond gpioCfgClock? #538

Closed sectokia closed 1 year ago

sectokia commented 2 years ago

Is there any way the sample rate can be lowered below the settings in gpioCfgClock?

I would like to see application where you can lower this down to say, 1000hz sampling, mainly to get the cpu usage down.

I am seeing about a 14% CPU minimum on raspberry pi zero, even if you are not doing anything but waiting for interrupt etc.

guymcswain commented 2 years ago

So much functionality in pigpio is affected by lowering the sample rate that it would render it more or less useless. Therefore, there is an option to turn it off completely: sudo pigpiod -m