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.61k stars 267 forks source link

Is there support for st7889VW #206

Closed planktonfun closed 3 years ago

planktonfun commented 3 years ago

specifically driver for this one: https://www.buydisplay.com/download/ic/ST7789.pdf hardware is 135x240: https://www.buydisplay.com/download/manual/ER-TFTM1.14-1_Datasheet.pdf

managed to get it working but the resolution offset is off:

pin connections to raspberry pi is same with the vendor manual.

hardware: rpi 3 b+

compiling params: cmake -DST7789VW=ON -DGPIO_TFT_DATA_CONTROL=24 -DGPIO_TFT_RESET_PIN=25 -DSPI_BUS_CLOCK_DIVISOR=8 -DSTATISTICS=0 ..

hdmi params: hdmi_cvt=135 240 60 1 0 0 0

the display is off by approx: -300 y - 300 x from the top left side corner tried editing gpu.cpp to manually fix the offset but it doesn't change, not sure what's wrong.

juj commented 3 years ago

There is no direct support, but you may be able to modify the existing st7789 support by adjusting the offset register so the display lines up. See https://github.com/juj/fbcp-ili9341/blob/master/st7735r.cpp#L95

planktonfun commented 3 years ago

Yup, I also tried modifying that, but got it working now by enabling overscan in the /boot/config.txt and modifying offsets: disable_overscan=0 overscan_left="adjust number here until it aligns" overscan_right="adjust number here until it aligns" thanks!