Skip to main content

A simple interface to everyday GPIO components used with Raspberry Pi

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 Raspbian Jessie, available from raspberrypi.org. To install on Jessie 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.4.0.tar.gz (102.3 kB view details)

Uploaded Source

Built Distribution

gpiozero-1.4.0-py3-none-any.whl (97.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gpiozero-1.4.0.tar.gz
  • Upload date:
  • Size: 102.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for gpiozero-1.4.0.tar.gz
Algorithm Hash digest
SHA256 79d8f6da1ee7aa92d7d0dc27a53e1bc7ac312fe9efbff03e5dcf30dc99b828a8
MD5 eb6c30392cb59d090db05a5fced8dec2
BLAKE2b-256 55c725dba723474975eda2a8d84aad283d0184df5179178ecbdc5a1ff1f7d269

See more details on using hashes here.

File details

Details for the file gpiozero-1.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for gpiozero-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c0fe28462653ad178a4c64a0766e035d0e46d6c1d234e659c4d61e630ca85879
MD5 f2fe42a0d21ca0c6e2a6ad1fbd0826ba
BLAKE2b-256 2c0f7cfbbf8c603e63041bff98ed184e6d40a78026ca2451df55adac8e28e147

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