The switch has been set up with 5V of current and the RESET pin pulled high (have tried permanently connected and temporarily on boot). I also have the chip select for the switch pulled high when sending commands. I have used burst mode to send multiple SPI commands, and pulled the chip select line high and low between commands when in address mode.
To my understanding, to toggle channel 5, I should be sending a 16 bit message that contains 1) the read/write bit 2) the register location and 3) the register data. I have a function, in a MicroPython script, that sends '0x01 and 0xFF' to the switch to close all the channels. I have also sent '0x01 and 0x10' to target channel 5 individually. The SPI interface has a baud rate of 1000000, polarity of 0, phase of 0 and uses the most significant bit as its first bit.
Has anyone used the switch with Python/MicroPython before? Does anyone know if I am sending the correct message and in the correct format?
The switch uses the same column for 5 channels. Would it be a problem to have a trace over two or more of the drain pins that connect to the same column?
Updated post to have more verbose questions
[edited by: Spud6y at 8:17 AM (GMT -4) on 20 Sep 2024]