Skip to main content

A module to control SBC GPIO

Project description

lot-python

Installation

sudo add-apt-repository -y ppa:loliot/ppa &&\
sudo apt install lot
sudo lot install
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

Blink example

import lot

LED_PIN = 7

lot.init(lot.PHY)
lot.set_pin_mode(LED_PIN, lot.OUTPUT)

while True:
    lot.digital_write(LED_PIN, lot.HIGH)
    lot.delay_ms(100)
    lot.digital_write(LED_PIN, lot.LOW)
    lot.delay_ms(100)

Changelog

Ref: debian/changelog

lot-python (0.2.1) unstable; urgency=medium

  • Fix python package error

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

lot-python (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

lot-python (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

lot-python (0.1.2) unstable; urgency=medium

* Fix include path error.

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

lot-python (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

lot-python (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.2.1.tar.gz (3.4 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