Coder Social home page Coder Social logo

hypermit / python-gpiozero Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gpiozero/gpiozero

0.0 2.0 0.0 5.91 MB

A simple interface to GPIO devices with Raspberry Pi

Home Page: https://gpiozero.readthedocs.io/

License: BSD 3-Clause "New" or "Revised" License

Makefile 1.32% Python 98.68%

python-gpiozero's Introduction

gpiozero

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.

Install

First, update your repositories list:

sudo apt-get update

Then install the package of your choice. Both Python 3 and Python 2 are supported. Python 3 is recommended:

sudo apt-get install python3-gpiozero

or:

sudo apt-get install python-gpiozero

Documentation

Comprehensive documentation is available at https://gpiozero.readthedocs.io/.

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 [email protected]

Contributors

Core developers:

Other contributors:

python-gpiozero's People

Contributors

alexwlchan avatar bennuttall avatar claremacrae avatar dglaude avatar edwardbetts avatar gadgetoid avatar goloplo avatar lurch avatar pcopa avatar raspitv avatar ryanteck avatar steveamor avatar thijstriemstra avatar tjguk avatar ukbaz avatar waveform80 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.