Skip to content
This repository has been archived by the owner on Jun 9, 2020. It is now read-only.
/ python3-lot Public archive

lot - GPIO development library for Python3

License

Notifications You must be signed in to change notification settings

hhk7734/python3-lot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

license pypi language

python3-lot

Installation

Ref: https://github.com/loliot/lot

sudo add-apt-repository -y ppa:loliot/ppa \
&& sudo apt install lot
sudo lot install cpp
sudo apt update \
&& sudo apt install -y python3 python3-dev python3-pip \
&& python3 -m pip install -U --user pip setuptools
python3 -m pip install -U --user lot

Blink example

import lot
import sys

LED_PIN = 13

if len(sys.argv) > 1:
    LED_PIN = int(sys.argv[1])

lot.init_time()
led = lot.Gpio(LED_PIN)
led.mode(lot.DOUT)

while True:
    led.toggle()
    lot.delay_ms(200)

Changelog

Ref: debian/changelog