first download the two attached 320x240 "565 format" images to your Pi0.
If using a single SPI display on SPI0, a single "sudo modprobe" command is all that is needed.
This command does not allow to use two SPI displays.
Therefore I used two dtoverlays, we will come to that later:
- spi1-3cs
- pi-displa0
The first step for you is to verify that indeed both displays work.
So connect one of the displays as you described before.
Then execute these commands:
Code: Select all
$ dmesg > before
$ sudo modprobe fbtft_device name=rpi-display gpios=reset:25,dc:23,led:18 rotate=270
$ dmesg > after
$ diff before after
In case you see the diff, execute this and you should see giraffe on SPI display:
Code: Select all
$ tail --bytes 153600 /home/pi/fb1.565.bmp > /dev/fb1
$
If that works as well, we know that both displays work and we can do next step(s).
P.S:
I have soldered display LED to display VCC, so did only use 8 cables to the Pi0 with my 2x4 connectors.
And I have connected display Miso with Pi0 Miso, which is not used for display -- just to keep superglued 2x4 connectors:
If you connect LED to GPIO18, that pin needs to go high, eg. by:
Code: Select all
$ sudo apt-get install pigpio
$ sudo pigpiod
$ pigs m 18 w
$ pigs w 18 1