Skip to content

A library in Python 3 to manage GPIOs in a Raspberry Pi 3 running OpenWRT

License

Notifications You must be signed in to change notification settings

Joaomlg/RPi-Manage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RPi-Manage

A library in Python 3 to manage GPIOs in a Raspberry Pi 3 running OpenWRT

This library is intended to handle the GPIO pins in a Raspberry Pi in a similar way to Arduino IDE.

How to install it

  1. Download this repository
git clone https://github.com/Joaomlg/RPi-Manage.git
  1. Inside the repository, run
python setup.py
  1. Import to your code
# Import RPi-Manage
from RPi import gpio

# Choose pin number
pin = 10

# Declare instance
gpio.pinMode(pin, gpio.OUT)

# Turn GPIO on
gpio.digitalWrite(pin, True)

Available Commands

Declare Pin

# Pin 10 as Input
gpio.pinMode(10, gpio.IN)

# Pin 10 as Output
gpio.pinMode(10, gpio.OUT)

Set State

# Turn Pin 10 on
gpio.digitalWrite(10, True)

# Turn Pin 10 off
gpio.digitalWrite(10, False)

Requirements

You need Python 3.6 or superior to run it.

License

This project is distributed under the MIT License.

About

A library in Python 3 to manage GPIOs in a Raspberry Pi 3 running OpenWRT

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages