Skip to main content

A simple interface to everyday GPIO components used with Raspberry Pi

Project description

A simple interface to everyday GPIO components used with Raspberry Pi.

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

Latest release

The latest release is v0.8.0 beta 3 released on 16th October 2015.

About

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

from gpiozero import LED, Button

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

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

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.

Install

First, install the dependencies:

sudo apt-get install python-pip python3-pip python-w1thermsensor python3-w1thermsensor python-spidev python3-spidev

Install with pip:

sudo pip install gpiozero
sudo pip-3.2 install gpiozero

Both Python 3 and Python 2 are supported. Python 3 is recommended!

Documentation

Comprehensive documentation is available at pythonhosted.org/gpiozero.

Development

This project is being developed on GitHub. Join in:

  • Provide suggestions, report bugs and ask questions as Issues

  • Provide examples we can use as recipes

  • Contribute to the code

Alternatively, email suggestions and feedback to ben@raspberrypi.org or add to the Google Doc.

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

Uploaded Source

Built Distribution

gpiozero-0.8.0-py2.py3-none-any.whl (17.3 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for gpiozero-0.8.0.tar.gz
Algorithm Hash digest
SHA256 30a8ec7cc42850e7226fae084a0913ad8cccc0b70c961654d0429626c56aca2c
MD5 2418351cb9ed23edb810b15797e8528b
BLAKE2b-256 7a7608538cc8b79f997e85bc805a6c740d7ed8b912c4fb68463ac66f41bab903

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gpiozero-0.8.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5b97f64f89ef80f736776bca3939af70db0973f3d967dc39442248dc9ec1bba7
MD5 01872f483a034d3fd86ecfe4546bd329
BLAKE2b-256 e3bf9fbd17427848692b10487e4ebf79e3c09c45ff0049e07d2a10c639d3e817

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