Hi I want to use a Raspberry pi pico with a SSD1351 display and a SD Card Reader with using the Arduino IDE and C++. The dispaly is connected to the SPI0 and the SD Card Reader is connected to SPI1. The question is how to set up the SPI.h or the SD.h to use the spi1 (spi0 works fine with SPI.begin() or SD.begin() ) . Best regards
Why do you want each device on a separate SPI interface? SPI is a bus that supports several devices, each with their own Chip Select signal.
i'm failing to get SPI working at all with arduino pico so far, but have figured this much out during the great paper chase.
SPI.begin() for spi0,
SPI1.begin() for spi1
And so on, I presume. That will probably solve your problem.
Can you maybe recommend a sketch (for pico) that uses spi that actually produces output. Mine builds fine, but the CS, CLK and TX output pins (10,2 and 3 respectively) are flatlined.
Mine builds, but no output showing on the logic analyser. Output is fine using an all-software (no spi.h, no library "bit banging") technique (shiftOut()) but only at 200Kbits, ![]()