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

A module to control SBC GPIO

Project description

Lot.GPIO

Installation

sudo add-apt-repository -y ppa:loliot/ppa &&\
sudo apt install lot
sudo apt update &&\
sudo apt install -y swig python3 python3-dev python3-pip &&\
python3 -m pip install -U pip setuptools
python3 -m pip install Lot.GPIO

Blink example

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

LED_PIN = 7

'''
GPIO.BCM == GPIO.LOT
GPIO.BOARD == GPIO.PHY
'''
GPIO.setmode(GPIO.BOARD)
GPIO.setup(LED_PIN, GPIO.OUT)

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

CHANGELOG

Lot.GPIO (0.0.2) unstable

* Implement RPi.GPIO API.

-- Hyeonki Hong hhk7734@gmail.com Sun, 06 Oct 2019 21:46:57 +0900

Lot.GPIO (0.0.1) unstable

* Initial release.

-- Hyeonki Hong hhk7734@gmail.com Thu, 22 Aug 2019 22:41:00 +0900

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 Lot.GPIO, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size Lot.GPIO-0.0.2.tar.gz (4.2 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