Can a single Arduino UNO control more then 1 SPI device? Like can I have an SPI TFT display and an SPI digital potentiometer being controlled at the same time?
Yes. Each gets its own chip select, and only the selected device should act with the command that is sent.
ya I see that now, so technically I can control two but not necessarily at exactly the same time. I have to jump (chip select) back and forth.
digitalWrite(CS1, LOW);
talk over SPI bus;
digitalWrite(CS1, HIGH);
digitalWrite(CS2, LOW);
talk over SPI bus;
digitalWrite(CS2, HIGH);
Simple as pi.
AVR serial ports can act as full speed master mode SPI ports.
Nick Gammon has the code in his blog.