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.4.1.tar.gz (106.9 kB view details)

Uploaded Source

Built Distribution

gpiozero-1.4.1-py2.py3-none-any.whl (100.2 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for gpiozero-1.4.1.tar.gz
Algorithm Hash digest
SHA256 b4b074e56dea12c21b05e6feef792719a392a245f5e685bc56be3dc2546f8609
MD5 1b138b727e71e976675773e2131a8297
BLAKE2b-256 3b50377575ff8fbdb672c27869ce536813cafdd94f5e14b5bf377edabb8a8097

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gpiozero-1.4.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1ea5b582ceaf98b33914c60916a56651d8b187e33642aa77b15df33909a228c8
MD5 6f54e48419959ccec694301ec2c8723e
BLAKE2b-256 8fdf2f22cea78f4539032e091579d6f32d9ebe360c04534838d151d37a667f2d

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