Last tested on: Raspbian Buster
Add the following snippet to /boot/config.txt
:
# Adafruit PiTFT 2.8"
dtoverlay=pitft28-resistive,speed=64000000,fps=30
disable_overscan=1
hdmi_force_hotplug=1
hdmi_group=2
hdmi_mode=87
hdmi_cvt=320 240 60 1 0 0 0
Install dependencies:
sudo apt update
sudo apt install cmake libbsd-dev
sudo apt clean
Clone raspi2fb
repository:
git clone https://github.com/AndrewFromMelbourne/raspi2fb.git
Build and install raspi2fb
:
cd raspi2fb
mkdir build
cd build
cmake ..
make
sudo make install/strip
Add --fps 30
argument to ExecStart
in ../[email protected]
.
Configure in systemd
:
sudo cp ../[email protected] /etc/systemd/system/
sudo systemctl enable [email protected]
Remove cloned repository:
cd ../..
rm -rf raspi2fb
Reboot 🎉