pimoroni-pico icon indicating copy to clipboard operation
pimoroni-pico copied to clipboard

Pico Explorer: SPI Breakouts

Open davll opened this issue 4 years ago • 3 comments

In Pico Explorer, SPI's MISO Pin and LCD's DC Pin are the same (GPIO 16), I am wondering if I can use SPI breakouts with it?

davll avatar Jun 06 '21 12:06 davll

It won’t be easy because the D/C pin is set up in GPIO mode- so you’ll have to switch it between GPIO and SPI on the fly to talk to a full duplex sensor. Probably easier just to set up another SPI bus on some spare pins.

Gadgetoid avatar Jun 06 '21 12:06 Gadgetoid

Unfortunately, GPIO 0 ~ 7 are only for SPI 0, and no available pins for SPI 1... Things would be even easier if the TFT LCD used SPI 1 with GPIO 8 ~ 15. :P

davll avatar Jun 06 '21 12:06 davll

I (and, sorry for the many moons delay between responses) wonder if an example showing SPI setup on those pins using PIO would be helpful? Or even bit-banged. I know it uses precious resources (PIO), or is slow (bitbanged), but it gets you somewhere at least.

Gadgetoid avatar Jan 26 '22 10:01 Gadgetoid

Closing as stale/complete.

Gadgetoid avatar Mar 11 '24 13:03 Gadgetoid