juj / fbcp-ili9341

A blazing fast display driver for SPI-based LCD displays for Raspberry Pi A, B, 2, 3, 4 and Zero
MIT License
1.59k stars 265 forks source link

SPI TFT with Zero w, tearing #304

Closed hit0wnzzz closed 1 year ago

hit0wnzzz commented 1 year ago

it will load the "tore" screen, then will crash then back to white.

:~/fbcp-ili9341/build $ cmake -DST7789=ON -DGPIO_TFT_DATA_CONTROL=17 -DGPIO_TFT_RESET_PIN=22 -DSTATISTICS=1 -DSPI_BUS_CLOCK_DIVISOR=12 -DUSE_DMA_TRANSFERS=OFF -DDISPLAY_BREAK_ASPECT_RATIO_WHEN_SCALING=ON  -DDISPLAY_INVERT_COLORS=ON..
@raspberrypi:~ $ gcc --version
gcc (Raspbian 6.3.0-18+rpi1+deb9u1) 6.3.0 20170516
raspberrypi:~/fbcp-ili9341 $ uname -a
Linux raspberrypi 6.1.21+ #1642 Mon Apr  3 17:19:14 BST 2023 armv6l GNU/Linux
@raspberrypi:~/fbcp-ili9341/build $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian

display pins | raspberry pi zero pin # CS | 39 (GND) DC | 11 (GPI17) RST | 15 (GPIO22) SDA | 19 (SPI0 MOSI) SCK | 23 (SPI0 SCLK) VCC | 17 (3V3) GND | 6 (GND)

screen specs:

Nombre: TFT module
Tamaño: 2.4 inches
Resolución: 320X240
Dirección de vista: IPS full view
Controlador chip: ST7789
Interface: 4-wire SPI
Tamaño del módulo 77.18x42.72x3.6 (mm)
Área del display 36.72x48.6 (mm)
Numero de Pines: 8pin
Voltaje de trabajo: 3.3V
Temperatura de operación: - 20 + 70 °C
Color: color (RGB)

attached is image of what the screen shows image

hit0wnzzz commented 1 year ago

this is what ended up being the fixing line:

cmake -DST7789=ON -DGPIO_TFT_DATA_CONTROL=17 -DGPIO_TFT_RESET_PIN=22 -DSTATISTICS=1 -DSPI_BUS_CLOCK_DIVISOR=12 -DUSE_DMA_TRANSFERS=OFF -DDISPLAY_BREAK_ASPECT_RATIO_WHEN_SCALING=ON -DDISPLAY_INVERT_COLORS=ON ..