pigpio is a C library for the Raspberry which allows control of the General Purpose Input Outputs (GPIO) including hardware devices, like SPI, I2C, and Serial.
pigpio has 1) a direct hardware version (linking with libpigpio.so) that requires the program using it to run as root; and 2) a pigpiod daemon (linked with libpigpiod_if2.so) that allows user-land programs to accesss hardware via network calls to the daemon.
CL-PIGPIO links with both libraries, and allows the user to select whether the hardware or the daemon form is called. If the hardware version is activated but the user’s program is not running with root privileges, an error is generated.
Note pigpio does not work for RPi5 (yet?) because hardware interface is not documented.
See more on GitHub and documentation on pigpio here with a list of other language interfaces.
No comments:
Post a Comment