toAlice / gpio-led-button

A naive LED button example for Raspberry

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

libgpiod LED Button Example

A very simple example of controlling a LED button with libgpiod (v1.2) on Raspberry PI 4B. Tested on a Raspberry Pi 4B running Raspberry OS (buster). but it should work on other relatively new GPIO devices and other linux distributions as well.

Dependencies

Debian

sudo apt install libgpiod-dev build-essential

Build

make

About

A naive LED button example for Raspberry


Languages

Language:C 94.8%Language:Makefile 5.2%