joan2937 / lg

Linux C libraries and Python modules for manipulating GPIO
The Unlicense
57 stars 20 forks source link

lgpio is a library for Linux Single Board Computers (SBC) which allows control of the General Purpose Input Outputs (GPIO).

Features

Archive components

The base library

The daemon

Python modules

Utilities

Documentation

See http://abyz.me.uk/lg/

Example programs

See http://abyz.me.uk/lg/examples.html and the examples in the EXAMPLES directory.

GPIO

ALL GPIO are identified by their gpiochip line number.

Download & Install

Prerequisites

A few packages are needed during installation of the Python modules.

On Debian like systems these packages may be installed with the following commands.

sudo apt install swig python-dev python3-dev
sudo apt install python-setuptools python3-setuptools

Download & Install

wget https://github.com/joan2937/lg/archive/master.zip
unzip master.zip
cd lg-master
make
sudo make install