Python Library – PIGPIO

PIGPIO
pinout icon
Website

Informatie (ENG):

pigpio is a C library for the Raspberry which allows control of the general purpose input outputs (gpios).

Features

Interfaces

The library provides a number of control interfaces

Utilities

A number of utility programs are provided

gpios

ALL gpios are identified by their Broadcom number. See elinux.org

There are 54 gpios in total, arranged in two banks.

Bank 1 contains gpios 0-31. Bank 2 contains gpios 32-54.

A user should only manipulate gpios in bank 1.

There are at least three types of board.

Type 1

Type 2

Type 3

It is safe to read all the gpios. If you try to write a system gpio or change its mode you can crash the Pi or corrupt the data on the SD card.


Installation

Remove or rename any existing pigpio zip or tar files depending on your download method.  Remove or rename any existing PIGPIO or pigpio-master directory (saving any of your own files in that directory first).
If the pigpio daemon is running it should be killed (sudo killall pigpiod) before make install and restarted afterwards (sudo pigpiod).
The initial part of the make, the compilation of pigpio.c, takes 100 seconds on early model Pis.  Be patient.  The overall install takes just over 3 minutes.

Download and install (V55)

Method 1

Method 2

Method 3

To check the library 

These tests make extensive use of GPIO 25 (pin 22).  Make sure nothing, or only a LED, is connected to the GPIO before running the tests.  Most tests are statistical in nature and so may on occasion fail.  Repeated failures on the same test or many failures in a group of tests indicate a problem.

To compile, link, and run a C program

To start the pigpio daemon

sudo pigpiod 

To stop the pigpio daemon

sudo killall pigpiod 

github

git clone https://github.com/joan2937/pigpio

Raspbian (raspberrypi.org image)

This may not be the most recent version.  You can check the version with the command pigpiod -v.


Installatie vanaf Github


Download PIGPIO @ abyz.co.uk
Download PIGPIO @ github.com