Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

A module to control Odroid GPIO channels

Project description

Odroid.GPIO

Installation

$ sudo apt install -y python3-pip &&\
  python3 -m pip install -U pip setuptools
$ python3 -m pip install -U Odroid.GPIO

Example

import Odroid.GPIO as GPIO
# You can also use 'import RPi.GPIO as GPIO'.
import time

'''
GPIO.BCM == GPIO.SOC
GPIO.BOARD
GPIO.WIRINGPI
'''
GPIO.setmode(GPIO.BOARD)

print("  BOARD ")
print("  1 |  2")
print("  3 |  4")
print("  5 |  6")
print("  7 |  8")
print("  9 | 10")
print(" 11 | 12")
print(" 13 | 14")
print(" 15 | 16")
print(" 17 | 18")
print(" 19 | 20")
print(" 21 | 22")
print(" 23 | 24")
print(" 25 | 26")
print(" 27 | 28")
print(" 29 | 30")
print(" 31 | 32")
print(" 33 | 34")
print(" 35 | 36")
print(" 37 | 38")
print(" 39 | 40")

GPIO.setup(35, GPIO.OUT)

while True:
    GPIO.output(35, GPIO.HIGH)
    time.sleep(1)
    GPIO.output(35, GPIO.LOW)
    time.sleep(1)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for Odroid.GPIO, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size Odroid.GPIO-0.0.3.tar.gz (8.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page