Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Relay Hat Question - I2C
#7
Thanks for the code.



It looks like there a couple of ways to go.



1) Make a SIP plugin to handle I2C with various address configurations. That could take a while since I am working to upgrade SIP to run on both Python 2.7 and Python 3. Python 2x will no longer be supported after the end of 2019.



2) There is an existing plugin named "cli_control" which sends a command on the command line when SIP turns a station on or off. Take a look at that plugin. It should be usable as is.


EDIT: removed suggestion to test Python3 version of SIP. It is working but there are complications when switching between SIP versions. If you tried it and got a "pickle.loads(pickled) EOFError" just delete the contents of SIP/sessions/.


Let me know how it goes.



Dan
<p><br></p>
Reply


Messages In This Thread
Relay Hat Question - I2C - by mg360 - 2016 Sep 08, 11:50 PM
RE: Relay Hat Question - I2C - by dan - 2016 Sep 09, 08:54 PM
RE: Relay Hat Question - I2C - by mg360 - 2016 Sep 09, 09:51 PM
RE: Relay Hat Question - I2C - by schmooot - 2019 Oct 10, 07:37 PM
RE: Relay Hat Question - I2C - by dan - 2019 Oct 11, 01:33 PM
RE: Relay Hat Question - I2C - by schmooot - 2019 Oct 11, 03:29 PM
RE: Relay Hat Question - I2C - by dan - 2019 Oct 11, 07:30 PM
RE: Relay Hat Question - I2C - by schmooot - 2019 Oct 15, 05:19 PM
RE: Relay Hat Question - I2C - by dan - 2019 Oct 15, 08:36 PM
RE: Relay Hat Question - I2C - by schmooot - 2019 Oct 15, 08:51 PM
RE: Relay Hat Question - I2C - by dan - 2019 Oct 16, 02:18 PM
RE: Relay Hat Question - I2C - by dan - 2019 Oct 20, 02:38 PM
RE: Relay Hat Question - I2C - by Andre - 2021 Feb 16, 03:29 AM
RE: Relay Hat Question - I2C - by dan - 2021 Feb 16, 04:27 PM

Forum Jump:


Users browsing this thread: 5 Guest(s)