Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Waveshare 1.69 inch Screen wokring but only displaying 240x240 #317

Open
nicepickle opened this issue Oct 28, 2023 · 0 comments
Open

Waveshare 1.69 inch Screen wokring but only displaying 240x240 #317

nicepickle opened this issue Oct 28, 2023 · 0 comments

Comments

@nicepickle
Copy link

nicepickle commented Oct 28, 2023

Hello,
I'm new to raspberry pi's but I've been struggling through this after days, I am able to display the desktop on my screen. However it is only 240x240 as seen at the startup pictures, with static pixels for about 80ish pixels on the right side. The screen resolution says it should be 280x240. I have tried editing the DISPLAY_NATIVE_HEIGHT and WIDTH in st7735r.h to combinations of 320, 280, and 240 but no matter what, it doesn't change anything, same with editing the y=80 in st7735r.cpp and changing the last value to 0 instead of 320 as many seem to suggest.

PXL_20231028_200136781
PXL_20231028_195937332

Here is the relevant information:
I used the latest version of raspberry pi legacy (Bullseye) on a raspberry pi 3b plus
https://www.waveshare.com/wiki/1.69inch_LCD_Module#Overview
the screen seems to be an st7789V2 driver but does work with ST7789VW and ST7789

My config.txt is:
hdmi_force_hotplug=1
hdmi_cvt 280 240 60 1 0 0 0
hdmi_group=2
hdmi_mode=87
display_rotate=2

(I used 640 480 when I needed to connect to my monitor)

I have spi transfers and vc4-kms-v3d commented out

Here is the code I used to create it:
sudo apt-get install cmake
git clone https://github.com/juj/fbcp-ili9341.git
cd fbcp-ili9341
mkdir build
cd build
cmake -DST7789VW=ON -DGPIO_TFT_DATA_CONTROL=24 -DGPIO_TFT_RESET_PIN=27 -DSPI_BUS_CLOCK_DIVISOR=30 -DDMA_RX_CHANNEL=5 -DBACKLIGHT_CONTROL=ON -DARMV8A=ON -DSTATISTICS=0 ..
make -j

I also fiddled with it and have used this with various edits
cmake -DST7789VW=ON -DGPIO_TFT_DATA_CONTROL=24 -DGPIO_TFT_RESET_PIN=27 -DSPI_BUS_CLOCK_DIVISOR=30 -DUSE_DMA_TRANSFERS=OFF -DDISPLAY_BREAK_ASPECT_RATIO_WHEN_SCALING=ON
-DBACKLIGHT_CONTROL=ON -DARMV8A=ON -DSTATISTICS=0 ..

with the DST7789 as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant