Code Monkey home page Code Monkey logo

pymodi's Introduction

pymodi


pyversion distribution documentation coverage maintainability license
image image Documentation Status Coverage Status Maintainability

Easy😆 and fast💨 MODI Python API package.

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
image image

System Support

System 3.6 3.7 3.8
Linux Build Status Build Status Build Status
Mac OS Build Status Build Status Build Status
Windows Build Status Build Status Build Status

Contribution Guidelines

We appreciate all contributions. If you are planning to report bugs, please do so at https://github.com/LUXROBO/pyMODI/issues. Feel free to fork our repository to your local environment, and please send us feedback by filing an issue.

If you want to contribute to pymodi, be sure to review the contribution guidelines. This project adheres to pymodi's code of conduct. By participating, you are expected to uphold this code.

Contributor Covenant

Quickstart

Install the latest pyMODI if you haven't installed it yet:

pip install -U pymodi --user

Import [modi]{.title-ref} package and create [MODI]{.title-ref} instance:

import modi
bundle = modi.MODI(nb_modules=1)

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(5):
    led.set_on()
    time.sleep(1)
    led.set_off()
    time.sleep(1)

pymodi's People

Contributors

94929 avatar pyup-bot avatar patrick0331 avatar devkoriel avatar k2sebeom avatar funkywoong avatar winnieson avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.