alfrix 7c99ea05f3 docs: add some hw guides
also remove dead links
2024-02-29 14:59:15 -03:00

1.4 KiB

How i installed the 3.5" (A) type of screen on RaspberryOS Bookworm (Debian 12)

preview

!!! abstract this is based on my own experience and it's provided for general information and does not constitute as advice of any kind.

Initial install

This screens connect to the GPIO they were usually installed via repositories named LCD-show (1, 2), however in the bookworm release there is a simpler solution

sudo nano /boot/firmware/config.txt

at the bottom add:

dtoverlay=piscreen,drm

???+ info in this context drm stands for Direct Rendering Manager

Close the nano editor using ctrl+x (exit), then y for yes (save).

sudo reboot

Wrong colors

Some screens will not behave correctly and display wrong colors, this usually due to the wrong SPI speed In my case I had to use 16 Mhz (default is 24Mhz)

dtoverlay=piscreen,drm,speed=16000000

Rotation

You can rotate the screen adding a rotate line with the degrees [0, 90, 180, 270]

dtoverlay=piscreen,drm,speed=16000000,rotate=180

Screen rotation will require adjusting the touch matrix see Touch issues