GithubHelp home page GithubHelp logo

admyly / lg Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gpiozero/lg

0.0 0.0 0.0 2.73 MB

Linux C libraries and Python modules for manipulating GPIO

License: The Unlicense

Shell 0.21% Python 30.43% C 50.32% CSS 0.08% Makefile 0.49% Roff 16.94% SWIG 1.53%

lg's Introduction

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

Features

  • reading and writing GPIO singly and in groups

  • software timed PWM and waves

  • callbacks on GPIO level change

  • notifications via pipe on GPIO level change

  • I2C wrapper

  • SPI wrapper

  • serial link wrapper

  • daemon interface

  • access control (daemon interface)

  • file handling (daemon interface)

  • creating and running scripts (daemon interface)

  • network access (daemon interface)

Archive components

The base library

  • The lgpio C library to control local GPIO.

The daemon

  • The rgpiod daemon offers a socket interface to the lgpio library.
  • The rgpio C library to control local and remote GPIO via the daemon.

Python modules

  • The lgpio Python module to control local GPIO.
  • The rgpio Python module to control local and remote GPIO via the daemon.

Utilities

  • The rgs shell utility to control local and remote GPIO via the daemon.

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.

  • the SWIG code generator (to build lgpio.py from the C library)
  • the Python development files (to build lgpio.py)
  • the Python set up tools (to install lgpio.py and rgpio.py)

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

lg's People

Contributors

joan2937 avatar waveform80 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.