(2024 Jun 16, 06:08 AM)litronas Wrote:The commands used for this integrated are these in case it helps anyone.(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.
They are two inverted 8bit registers
i2cset -y 1 0x20 0x06 0xfe //relay 1on
i2cset -y 1 0x20 0x07 0xfe //relay 8 on
translated with Google