"A module to control Odroid GPIO channels"
Project description
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
Release history Release notifications | RSS feed
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 hashes)