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.
History
0.1.0 (2018-06-28)
- First release on in-house GitLab.
0.1.1 (2018-07-20)
- Requirements fix.
- Packages' include path fix.
0.1.2 (2018-07-23)
- Python 3.4 support.
0.2.0 (2018-07-25)
- Speaker module support.
- Display module support.
0.2.1 (2018-07-27)
- Add speaker module's tune() and off() methods.
- Remove duplicated codes.
0.3.0 (2018-07-28)
- Support python 2.7.
- Speed up the performance.
0.3.1 (2018-07-28)
- Requirements fix.
0.4.0 (2018-08-20)
- Performance improvement.
- The first documentation complete.
0.5.0 (2018-08-22)
- Change the project name to pyMODI.
0.5.1 (2018-11-07)
- Fix #26 (No MODI network module connected) issue.
0.5.2 (2019-10-11)
- Can control a pair of motors of the motor module by torque(), speed(), angle().
0.6.0 (2019-10-18)
- Performance improvement.
- Bug fixes.
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.6.0.tar.gz
(18.8 kB
view hashes)
Built Distribution
pymodi-0.6.0-py2.py3-none-any.whl
(20.5 kB
view hashes)
Close
Hashes for pymodi-0.6.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 395b14f2f6536ba4b689af56738648caea069882c5778f97c31b4b6454393adf |
|
MD5 | 6fda922c3616c648bd8b1cc118fa64d4 |
|
BLAKE2b-256 | d568aff6cd5be59de7c26df693f7e519d6cffe4c5bbbf30dd9c760be5d2871f7 |