Usage on displays
We used an LCD display and an OLED screen in the I2C chapter. This time we will look at an LED matrix and the same OLED screen again, but wired to SPI so that you can see the differences:

Note that the Rainbow HAT does have SPI pins exposed. Be aware that early versions of the Rainbow HAT have these pins wrongly labeled (the wiring is consistent, just the label is incorrect). Double check the correct labels or just connect the peripherals directly to your developer board:

Incorrect and correct labeling of the SPI pins on the Rainbow HAT
Note
Double-check the SPI pin labels on the Rainbow HAT, as early versions have the incorrect label.
LED matrix
This peripheral is an 8x8 LED matrix. It is great for retro-style UI, but obviously it is also very limited.
The names on the pins are slightly different than the ones on the board, so let's look at the connection diagram:

Ground
and Vcc
are the same as always.
DIN
stands for data input, and therefore it is connected to the pin that transmits...