Skip to main content

No project description provided

Project description

Latest Version Build Tests Code Coverage

A simple interface to GPIO devices with Raspberry Pi.

Created by Ben Nuttall of the Raspberry Pi Foundation, Dave Jones, and other contributors.

About

Component interfaces are provided to allow a frictionless way to get started with physical computing:

from gpiozero import LED
from time import sleep

led = LED(17)

while True:
    led.on()
    sleep(1)
    led.off()
    sleep(1)

With very little code, you can quickly get going connecting your components together:

from gpiozero import LED, Button
from signal import pause

led = LED(17)
button = Button(3)

button.when_pressed = led.on
button.when_released = led.off

pause()

The library includes interfaces to many simple everyday components, as well as some more complex things like sensors, analogue-to-digital converters, full colour LEDs, robotics kits and more. See the Recipes chapter of the documentation for ideas on how to get started.

Installation

GPIO Zero is installed by default in the Raspbian desktop image, available from raspberrypi.org. To install on Raspbian Lite or other operating systems, including for PCs using remote GPIO, see the Installing chapter.

Documentation

Comprehensive documentation is available at https://gpiozero.readthedocs.io/. Please refer to the Contributing and Development chapters in the documentation for information on contributing to the project.

Contributors

Core developers:

Other contributors:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gpiozero-1.5.0.tar.gz (138.7 kB view details)

Uploaded Source

Built Distribution

gpiozero-1.5.0-py2.py3-none-any.whl (139.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file gpiozero-1.5.0.tar.gz.

File metadata

  • Download URL: gpiozero-1.5.0.tar.gz
  • Upload date:
  • Size: 138.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.18.4 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.3

File hashes

Hashes for gpiozero-1.5.0.tar.gz
Algorithm Hash digest
SHA256 5075c93f61e1ca4f7813544a9e7ef238e77482b47a5602b8e40c71f177930585
MD5 43722aa46d3e871cc1ff037ecd6e5eea
BLAKE2b-256 cb2c5790d4d999754f34d679cfb603b0599357e1c265bd34709c98b5ee80ed2c

See more details on using hashes here.

File details

Details for the file gpiozero-1.5.0-py2.py3-none-any.whl.

File metadata

  • Download URL: gpiozero-1.5.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 139.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.8.1 pkginfo/1.2.1 requests/2.12.4 setuptools/33.1.1 requests-toolbelt/0.7.0 clint/0.5.1 CPython/3.5.3 Linux/4.14.79-v7+

File hashes

Hashes for gpiozero-1.5.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1e73ef22e69b31a26f45191bc589a294c19cb86914d8babde67810694c5bc269
MD5 9c4f87eac4df54547e95d13099406e01
BLAKE2b-256 32f726943d000d357907357f5a52aaf19083d17b2c1ae11e380c2e5a5109ba9e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page