GPIO

Learn how to use the Linux GPIO subsystem, especially what it takes to control GPIOs from userspace.

sysfs Interface

(Deprecated but simple)

  • Documentation

  • GPIO configuration

  • Input

  • Output

  • Events/Interrupts

gpiod Interface