libmpsse icon indicating copy to clipboard operation
libmpsse copied to clipboard

SPI - how to mix GPIO use and MPSSE

Open gadh opened this issue 1 year ago • 1 comments

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 ?

gadh avatar Aug 21 '24 15:08 gadh

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.

caseykelso avatar Sep 20 '24 00:09 caseykelso