Skip to main content

"A module to control Odroid GPIO channels"

Project description

license pypi language

Odroid.GPIO

Installation

sudo add-apt-repository -y ppa:hardkernel/ppa \
&& 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.4) unstable; urgency=medium

  • Update setup function to support the initial value
  • Change output() to set the value for each channel
  • pylint: create .pylintrc and run black
  • github: add python publish and lint action
  • GPIO: change type() to isinstance()
  • pylint: fix massive files
  • GPIO: remove python2 compatibility
  • GPIO: add error handling
  • GPIO: add VERSION for compatibility with RPi.VERSION

-- Hyeonki Hong hhk7734@gmail.com Tue, 15 Dec 2020 23:36:08 +0900

Odroid.GPIO (0.1.3) unstable; urgency=medium

  • Update README.md

-- Hyeonki Hong hhk7734@gmail.com Thu, 26 Mar 2020 10:23:27 +0900

Odroid.GPIO (0.1.2) unstable; urgency=medium

  • Update MANIFEST.in

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

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.4.tar.gz (11.8 kB view details)

Uploaded Source

File details

Details for the file Odroid.GPIO-0.1.4.tar.gz.

File metadata

  • Download URL: Odroid.GPIO-0.1.4.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.0

File hashes

Hashes for Odroid.GPIO-0.1.4.tar.gz
Algorithm Hash digest
SHA256 9f079c268552e9878b9da0e6c815723f5800d459e5b00d46cc73cc26474f5979
MD5 60ac7811c1da773adfa23cda55f35507
BLAKE2b-256 4192e4263d441ac76c084d566b6c6cf8d9d22389f972911ac8211d452c03d22e

See more details on using hashes here.

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