Installing the screen drivers
The 2.8 tiny screen needs some configuration to work properly because it's not a regular HDMI screen, so we'll need to turn on the Raspberry Pi and do some changes manually:
- In the RetroPi main screen, hit CONTROL + F4 in the keyboard. That should bring you to the Linux shell and a login prompt should appear.
- Enter pi as the username and raspberry as the password.
-
Download the screen drivers with the following command:
$ git clone https://github.com/waveshare/LCD-show.git
-
Execute the installation command:
$ cd LCD-show $ ./LCD28-show
-
You can now shutdown the Raspberry Pi with the command:
$ sudo poweroff
- Unplug the HDMI cable and plug the mini screen on top of the Raspberry Pi. Turn it on again, the mini screen should be working now!
Improving FPS
The display communicates with the Raspberry Pi via SPI, a serial communication bus which is quite slow by default, resulting in very low framerates. Fortunately, we can increase Raspberry Pi's SPI speed to solve this. Get into the console like you did above and edit the /boot/config.txt file with the following command:
$ sudo nano /boot/config.txt
Find the line that looks like this:
dtoverlay=waveshare32b:rotate=270
And modify it so it looks like this:
dtoverlay=waveshare32b:rotate=270,speed=80000000,fps=60
Save the changes by hitting CONTROL + O and then ↵. Exit the editor with CONTROL + X. Now you can reboot the Raspberry Pi with the following command:
$ sudo reboot
You should notice everything looks a lot more fluid now!