Skip to main content

"A module to control Odroid GPIO channels"

Project description

license pypi language

Odroid.GPIO

Installation

sudo apt update \
&& sudo apt install -y python3 python3-dev python3-pip \
    odroid-wiringpi libwiringpi-dev
python3 -m pip install -U --user pip Odroid.GPIO

Blink 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)

GPIO.setup(13, GPIO.OUT)

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

Changelog

Ref: CHANGELOG

Odroid.GPIO (0.1.1) unstable; urgency=medium

  • Correct package name

-- Hyeonki Hong hhk7734@gmail.com Sat, 21 Mar 2020 18:27:22 +0900

Odroid.GPIO (0.1.0) unstable; urgency=medium

  • Bind wiringPi using Pybind11

-- Hyeonki Hong hhk7734@gmail.com Sat, 21 Mar 2020 17:37:21 +0900

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

Odroid.GPIO-0.1.1.tar.gz (9.1 kB view hashes)

Uploaded Source

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