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
Metadata
Release files for Odroid.GPIO 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| Odroid.GPIO-0.1.4.tar.gz | 11.8 kB | Details |
Release files / Odroid.GPIO-0.1.4.tar.gz
| Download URL | Odroid.GPIO-0.1.4.tar.gz |
|---|---|
| Size | 11.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9f079c268552e9878b9da0e6c815723f5800d459e5b00d46cc73cc26474f5979
|
|
BLAKE2b-256 checksum How to use checksums |
4192e4263d441ac76c084d566b6c6cf8d9d22389f972911ac8211d452c03d22e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|