Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SPI - how to mix GPIO use and MPSSE #48

Open
gadh opened this issue Aug 21, 2024 · 1 comment
Open

SPI - how to mix GPIO use and MPSSE #48

gadh opened this issue Aug 21, 2024 · 1 comment

Comments

@gadh
Copy link

gadh commented Aug 21, 2024

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 ?

@caseykelso
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants