Interfacing SX1509 pin expander
-
Hello.
I am really impressed with Rexygen.I have a question about I2C support on Raspberry Pi. I have SX1509 pin expanders that I would like to interface with. Is this possible?
Thanks
Chris -
Hi Chris,
thank you for reaching out.
Yes, it is possible to interface with SX1509 via I2C using REXYGEN. However, it will require a bit of hand-coding.
Have a look at function block called REXLANG and its function "OpenI2C" - https://www.rexygen.com/doc/PDF/ENGLISH/BRef_ENG.pdf#page=439
There are also some examples on I2C communication available - "0502 Generic I2C Communication" folder in Examples library (which is part of REXYGEN Studio) - these might help you to see how to implement the I2C communication according to your needs.
Let us know about your progress.
Regards, Tomas