libmpsse
libmpsse copied to clipboard
SPI - how to mix GPIO use and MPSSE
for example i have a board that has the following wiring scheme: GPIO 0 = CS GPIO 1 = DC / CMD GPIO 2 = RESET ADBUS1 - MOSI ADBUS0 - CLK
how can i initialize both the GPIOS and the ADBUS pins in order to send SPI commands to the slave using MPSSE lib ?
You can initialize with MPSSE() and use the handle to call Read() and PinState(). You only need a single handle from the init to use both subsystems.