Skip to main content

A module to control SBC GPIO

Project description

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

python3-lot (0.8.1) unstable; urgency=medium

  • Reflect lot-SBC v0.12.3

-- Hyeonki Hong hhk7734@gmail.com Thu, 30 Jan 2020 20:53:32 +0900

python3-lot (0.8.0) unstable; urgency=medium

  • Reflect lot-SBC v0.12.0

-- Hyeonki Hong hhk7734@gmail.com Sat, 18 Jan 2020 03:08:52 +0900

python3-lot (0.7.1) unstable; urgency=medium

  • Update time/Gpio docs

-- Hyeonki Hong hhk7734@gmail.com Fri, 17 Jan 2020 18:27:02 +0900

python3-lot (0.7.0) unstable; urgency=medium

  • Implement Spi class

-- Hyeonki Hong hhk7734@gmail.com Tue, 14 Jan 2020 23:13:00 +0900

python3-lot (0.6.0) unstable; urgency=medium

  • Implement I2c class

-- Hyeonki Hong hhk7734@gmail.com Tue, 14 Jan 2020 13:30:20 +0900

python3-lot (0.5.1) unstable; urgency=medium

  • Add const variables

-- Hyeonki Hong hhk7734@gmail.com Wed, 08 Jan 2020 17:49:10 +0900

python3-lot (0.5.0) unstable; urgency=medium

  • Rename gpio.cpp to lot.cpp
  • Add type_casters
  • Implement Uart class

-- Hyeonki Hong hhk7734@gmail.com Wed, 08 Jan 2020 13:49:14 +0900

python3-lot (0.4.1) unstable; urgency=medium

  • Fix crash that occurs when running 'pip install'

-- Hyeonki Hong hhk7734@gmail.com Mon, 06 Jan 2020 19:48:55 +0900

python3-lot (0.4.0) unstable; urgency=medium

  • Use Pybind11 instead of Swig
  • Implement Gpio class

-- Hyeonki Hong hhk7734@gmail.com Mon, 06 Jan 2020 18:15:49 +0900

python3-lot (0.3.0) unstable; urgency=medium

  • Implement communication wrapper class

-- Hyeonki Hong hhk7734@gmail.com Mon, 23 Dec 2019 14:05:06 +0900

python3-lot (0.2.2) unstable; urgency=medium

  • Fix file path error

-- Hyeonki Hong hhk7734@gmail.com Sun, 17 Nov 2019 13:47:35 +0000

python3-lot (0.2.1) unstable; urgency=medium

  • Fix python package error

-- Hyeonki Hong hhk7734@gmail.com Sun, 17 Nov 2019 22:21:01 +0900

python3-lot (0.2.0) unstable; urgency=medium

  • Add typemap to convert c++ typedef
  • Add lot_time.h

-- Hyeonki Hong hhk7734@gmail.com Sun, 17 Nov 2019 19:12:19 +0900

python3-lot (0.1.3) unstable; urgency=medium

  • Fix TypeError.
  • Move version check from setup.cfg to setup.py.

-- Hyeonki Hong hhk7734@gmail.com Sun, 06 Oct 2019 16:56:29 +0900

python3-lot (0.1.2) unstable; urgency=medium

  • Fix include path error.

-- Hyeonki Hong hhk7734@gmail.com Sun, 06 Oct 2019 10:27:52 +0900

python3-lot (0.1.1) unstable; urgency=medium

  • Test basic function
  • Move setup description from setup.py to setup.cfg

-- Hyeonki Hong hhk7734@gmail.com Thu, 03 Oct 2019 17:36:28 +0900

python3-lot (0.1.0) unstable; urgency=medium

  • Initial release.

-- Hyeonki Hong hhk7734@gmail.com Thu, 22 Aug 2019 22:03: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.

Source Distribution

lot-0.8.1.tar.gz (11.9 kB view hashes)

Uploaded Source

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