Skip to content

starnight/libgpiod-example

Repository files navigation

libgpiod Example

This is a set of libgpiod examples for v1.x branch.

Refer to the API: https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/tree/include/gpiod.h?h=v1.6.x

libgpiod introduction video: https://www.youtube.com/watch?v=76j3TIqTPTI

Folders

  1. libgpiod-led: Output with LED example
  2. libgpiod-input: Input example
  3. libgpiod-event: Interrupt as an event example
  4. libgpiod-scan: Scanning GPIO devices example
  5. libgpiod-monitor: Monitoring GPIO line example with C++

Contribution

  • Pull requests are welcome
  • Each example should be in a folder with prefix "libgpiod-" and have a Makefile
  • Should pass the Build test