[SOLVED] TFT w/SD, several slave devices at same SPI protocol

I had a similar issue on a HX8357 display board with SD.
Although I could not find the root in the libraries, as they seem to do the job as expected, I went the brute force way and always made sure in my own code that the TFT CS and SD CS were definetly mutually exclusive.

Before each attempt to access the TFT I “manually” disabled the SD CS and vice versa.

This helped in most cases but not all. The few occasions where it didn’t work I pinned down to the breadboard I use. When connecting Particle to display directly via female-female jumper wires, the issue seems to go.

1 Like

So using soft spi and sharing the base wiring would it be at all possible to run 4 or more postage stamp sized colour screens?

Hardware SPI supports multiple devices on the same port too - as long you can ensure that only ever one SPI device is CSed at a time and they share the same SPI mode (which can be expected of four of a kind).

1 Like