Question: How on earth do I send outputs to multiple IO expanders on the same ribbon cable? I don't understand how to utilize the redbus window, if someone could type an example for me, would be great. I want to set the IO Expander with PID 16 (dec) to data value 1 (white on, everything else off)
Answer: Found a good tutorial, link to the multiple io expander part
Write the PID value to IOXADDR to change the redbus destination of IOX commands (IOX! [email protected] IOXRST IOXSET)
Example: to talk to IOX PID 16
16 IOXADDR !
Then to send it output value of 1 just like normal
If you have a sequence of IO expanders to set like I do, you can just code a simple loop:
HEX 20 10 DO I IOXADDR ! 1 IOX! LOOP