Cannot remember if I followed OS setup for TFT display or if I used their bookworm image. https://www.waveshare.com/wiki/2.8inch_RPi_LCD_(A)#For_Bullseye_32-bit_and_Buster_Systems
My module seems to have max of: 2592x1944
key 1 = pin 7 = gpio4
key 2 = pin 16 = gpio23
key 3 = pin 18 = gpio24
key 4 = pin 22 = gpio25
sudo apt install fbset fbcatsudo fbset -fb /dev/fb0sudo cat /dev/urandom > /dev/fb0sudo dd if=/dev/zero of=/dev/fb0
sudo apt install libcamera-apps python3-pil python3-evdev -y
sudo nano /etc/tmpfiles.d/dmaheap.conf- Enter the following:
# Fix DMA heap permissions for libcamera
z /dev/dma_heap/system 0660 root video -
z /dev/dma_heap/linux,cma 0660 root video -
sudo systemd-tmpfiles --createsudo rebootls -l /dev/dma_heap/andgroup-> Check group permissions exist for heap and user is in videos group
sudo mkdir -p /etc/systemd/system/[email protected]sudo nano /etc/systemd/system/[email protected]/autologin.conf- Add to file:
[Service]
ExecStart=
ExecStart=-/sbin/agetty --autologin admin --noclear %I $TERM
sudo reboot