lot 0.8.1
A module to control SBC GPIO
License: MIT
Keywords: lot,GPIO,SBC

![license](https://img.shields.io/github/license/loliot/python3-lot)
![pypi](https://img.shields.io/pypi/v/lot)
![language](https://img.shields.io/github/languages/top/loliot/python3-lot)

# python3-lot

## Installation

Ref: <a href="https://github.com/loliot/lot" target=_blank>https://github.com/loliot/lot</a>

```bash
sudo add-apt-repository -y ppa:loliot/ppa \
&& sudo apt install lot
```

```bash
sudo lot install cpp
```

```bash
sudo apt update \
&& sudo apt install -y python3 python3-dev python3-pip \
&& python3 -m pip install -U --user pip setuptools
```

```bash
python3 -m pip install -U --user lot
```

## Blink example

```python
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