C

= Libraries =

lgpio (local /dev/gpiochip I/F)
lgpio provides all the standard Linux GPIO features.


 * reading and writing GPIO singly and in groups
 * software timed PWM and waves
 * GPIO callbacks
 * pipe notification of GPIO alerts
 * I2C wrapper
 * SPI wrapper
 * serial link wrapper
 * a simple interface to start and stop new threads

lgpio uses the new /dev/gpiochip interface rather than the deprecated syfs interface.

C documentation: http://abyz.me.uk/lg/lgpio.html

Download and install the lg archive: http://abyz.me.uk/lg/download.html

Example pulse.c

Compile gcc -o pulse pulse.c -llgpio

Run ./pulse

rgpio (local & remote /dev/gpiochip I/F)
rgpio provides all the standard Linux GPIO features.


 * reading and writing GPIO singly and in groups
 * software timed PWM and waves
 * GPIO callbacks
 * I2C wrapper
 * SPI wrapper
 * serial link wrapper
 * simple file handling
 * creating and running scripts on the rgpiod daemon
 * a simple interface to start and stop new threads

rgpio uses the new /dev/gpiochip interface rather than the deprecated syfs interface.

C documentation: http://abyz.me.uk/lg/rgpio.html

Download and install the lg archive: http://abyz.me.uk/lg/download.html

Example pulse.c

Compile gcc -o pulse pulse.c -lrgpio

Run ./pulse