Easy😆 and fast💨 MODI Python API package.
Project description
pyMODI
Easy😆 and fast💨 MODI Python API package.
- Free software: MIT license
- Documentation: https://pymodi.readthedocs.io.
Features
- Connect to the MODI network module and control input & output modules.
- List serial ports of MODI network modules.
- Turn on or off the PnP mode of MODI modules.
- Get the position information of each modules.
Build Status
master:
develop:
Quickstart
Install the latest pyMODI if you haven't installed it yet:
pip install -U pymodi
Import [modi]{.title-ref} package and create [MODI]{.title-ref} instance:
import modi
bundle = modi.MODI()
List connected modules:
bundle.modules
List connected LED modules and pick the first one:
bundle.leds # List.
bundle.leds[0] # Pick.
Let's blink the LED's light 5 times:
import time
led = bundle.leds[0]
for _ in range(10):
led.on()
time.sleep(1)
led.off()
time.sleep(1)
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pymodi-0.7.1.tar.gz
(23.5 kB
view hashes)
Built Distribution
pymodi-0.7.1-py2.py3-none-any.whl
(22.9 kB
view hashes)
Close
Hashes for pymodi-0.7.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b4077595a08ce0a23d39919cff8a1581958812d889ffea6e3e0a63c69599625 |
|
MD5 | cb0adb0da62838126cecd5fcc7eec1d4 |
|
BLAKE2b-256 | 49ffb7d15af7b1ae1c084b8daa2a9076986d046c3d075722b14a4a88f35596d2 |