Skip to content

SPI - how to mix GPIO use and MPSSE #48

Open

Description

@gadh

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 ?

Activity

  1. caseykelso commented on Sep 20, 2024

    @caseykelso

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions