Giter Site home page Giter Site logo

i2crelay's People

Contributors

nvtkaszpir avatar oweidner avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

i2crelay's Issues

Multithread access

Hi there,
I'd like to use your library with Home Assistant.
After searching their GitHub I found one issue that describes multithreaded errors with MCP23017 chip - home-assistant/core#31867
I'd like to ask if your library is thread-safe?
Home Assistant will show each relay as a separate switch, that the user can turn on and off.
If the actions will be done manually (by user) then everything should work fine, but the user can create an action (script) that will turn 6 relays to off.
In the linked issue the author is adding mutex to ensure only single write at a time.
Do you think the same should be added to your library?

I'm not an expert with Python, so before I start creating a module for Home Assistant I'd like to be sure I won't run into any potential errors.

Python console switch the wrong pin

Hi,

I tried your i2crelay. When i send:

i2crelay --i2c-bus=1 --i2c-addr=0x24 2:off -> also Pin 1 will switched off. I can reproduce it. Can this be a bug?

Kay

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.