Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Module i2c relay.
#3
(2024 Jun 12, 08:16 PM)astrogerard Wrote: Shouldn't be too difficult to do. I don't have such a board otherwise I would write a plugin for it.
If you know a tiny little bit of Python programming then you could modify my I2C plugin to work with the XL9535. See https://gitlab.com/seventer/pcf857x_plugin_sip to get the idea.

The XL9535 isn't widely used so you might need to fork/rewrite some libraries. 

--Gerard

Thank you very much, my knowledge is null in python, but I found a way with control_cli plugin.. executing the code i2cset -y 1 0x20 0x** 0x**, depending on whether I want them to turn on or off. thank you.


The good thing is that it works for any i2c expander and the bad thing is that you can't put several at the same time.
Reply


Messages In This Thread
Module i2c relay. - by litronas - 2024 Jun 11, 06:47 AM
RE: Module i2c relay. - by astrogerard - 2024 Jun 12, 08:16 PM
RE: Module i2c relay. - by litronas - 2024 Jun 16, 06:08 AM
RE: Module i2c relay. - by litronas - 2024 Jun 22, 12:45 PM
RE: Module i2c relay. - by astrogerard - 2024 Jun 17, 03:31 PM
RE: Module i2c relay. - by litronas - 2024 Jun 19, 05:49 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)