NOW VERSION 3.
See viewtopic.php?p=347830#p347830
***************************************************************************************
I have just released pigpio version 2, a C library.
Available from http://abyz.co.uk/rpi/pigpio/pigpio.tar
Video at http://www.youtube.com/watch?v=-sfzIygVQVM
N.B. The pigpio library uses the DMA (channel 14 by default) and the PWM peripherals.
It is likely to be incompatible with the accelerated X driver being tested as that may saturate the DMA bus and destroy its use for timing purposes.
Consider the pigpio library to be experimental and use at your own risk. That said I have not had a problem.
Its main features are:
- provision of PWM on any number of gpios 0-31 simultaneously.
- provision of servo pulses on any number of gpios 0-31 simultaneously.
- callbacks when any of gpios 0-53 change state.
- callbacks at timed intervals.
- reading/writing all of the gpios in a bank (0-31, 32-53) as a single operation.
- individually setting gpio modes, reading and writing.
NOTE: ALL gpios are identified by their Broadcom number.
There are two significant enhancements over version 1.
- The PWM cycle is now 787Hz (previously 394Hz).
- The levels of all (54) gpios are read and time stamped 200 thousand times per second (previously 1 thousand times per second).