GithubHelp home page GithubHelp logo

pycklepi's Introduction

PycklePi

PycklePi is a small module for controlling buttons, LED's, buzzers and more on the Raspberry Pi 3. It uses the RPi.GPIO module and requires hardware along with it.

Help

You can find all help and documentation on the official PycklePi Github page. There are examples, documentation, and more to help beginners in starting with Raspberry Pi's and PycklePi.

Modules

Set's up the main information and sets the GPIO pins as BCM (Broadcom pin-numbering scheme)

PycklePi.setup()

Set's up a specified button to the GPIO pin passed as the argument

PycklePi.buttonSetup()

Set's up a specified LED to the GPIO pin passed as the argument

PycklePi.LEDSetup()

Set's up a specified buzzer to the GPIO pin passed as the argument

PycklePi.buzzerSetup()

Turns off the specified LED

PycklePi.LEDoff()

Turns on the specified LED

PycklePi.LEDon()

Flashes the specified LED for the amount of time specified

PycklePi.LEDon_flashing()

Buzzes the buzzer for the amount of time specified

PycklePi.buzzerOn_beeping()

Turns on the LED for the time specified

PycklePi.LEDon_timed()

When the specified button is pressed, it goes to the function passed as the argument

PycklePi.buttonPush()

When any of the specified button(s) are pressed, it goes to the function(s) passed as the argument

PycklePi.buttonPush2()

When any of the specified button(s) are pressed, it goes to the function(s) passed as the argument

PycklePi.buttonPush3()

Turns on the specified buzzer until turned off

PycklePi.buzzerOn()

Turns off the specified buzzer.

PycklePi.buzzerOff()

When the specified button is pressed, the specified LED is turned on for the amount of seconds set in the program

PycklePi.button_led()

When the specified button is pressed, the specified buzzer is turned on for the amount of seconds set in the program

PycklePi.button_buzzer()

Used at the end of a program, it "cleans" any used and unused ports/pins to make sure nothing is short-circuited

PycklePi.cleanup()

pycklepi's People

Contributors

filipherle 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.