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.62k stars 271 forks source link

Is this compatible with the waveshare 2 inch ST7789V display #298

Open CoderTeam1 opened 1 year ago

CoderTeam1 commented 1 year ago

Is this compatible with the waveshare 2 inch ST7789V display as i have this display and wish to use it but i am in doubt if it will work or not.

lewilou22 commented 1 year ago

I have it working with this "cmake -DST7789=ON -DGPIO_TFT_DATA_CONTROL=25 -DGPIO_TFT_RESET_PIN=27 -DSPI_BUS_CLOCK_DIVISOR=30 -DBACKLIGHT_CONTROL=ON -DSTATISTICS=0 .."

But the screen size is not filling the 2 inch screen only 3/4

lewilou22 commented 1 year ago

st7735r.h line 20 -> #define DISPLAY_NATIVE_HEIGHT 320

st7735r.cpp line 95 -> SPI_TRANSFER(0x37/VSCSAD: Vertical Scroll Start Address of RAM/, 0, 0);

VogelPapaFinn commented 7 months ago

I know this thread is old but it seems like you guys got the display to run. I did too but Im having a major issue. When I push my desktop on the display (via startx) or any application it works for a few seconds. Then the screen goes blank/black again and I have to restart the application/desktop. I have no clue why this is happening. I disabled in the config file the spi and removed all dtoverlays. As in the waveshare wiki instructed I added this to the file:

hdmi_force_hotplug=1
hdmi_cvt=hdmi_cvt=640 480 60 1 0 0 0
hdmi_group=2
hdmi_mode=1
hdmi_mode=87
display_rotate=0

And I tried changing the DMA channels but that didnt change anything...

Is anybody still "here" and has an idea what is going on? I would appreciate the help cause I cant find a solution nor a thread/post where somebody had similar problems. Thanks!

CoderTeam1 commented 7 months ago

im here but i didnt get the code to run cus i had to return my raspberry pi which was issued to me will get it again and try

On Wed, Apr 17, 2024 at 1:11 AM Finn Ganser @.***> wrote:

I know this thread is old but it seems like you guys got the display to run. I did too but Im having a major issue. When I push my desktop on the display (via startx) or any application it works for a few seconds. Then the screen goes blan/black again and I have to restart the application/desktop. I have no clue why this is happening. I disapled in the config file the spi and removed all dtoverlays. I only added:

hdmi_force_hotplug=1 hdmi_cvt=hdmi_cvt=640 480 60 1 0 0 0 hdmi_group=2 hdmi_mode=1 hdmi_mode=87 display_rotate=0

Is anybody still "here" and has an idea what is going on? I would appreciate the help cause I cant find a solution nor a thread/post where somebody had similar problems. Thanks!

— Reply to this email directly, view it on GitHub https://github.com/juj/fbcp-ili9341/issues/298#issuecomment-2059803746, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARFYRKPEMRWSNZ3MQJKR66LY5V5GVAVCNFSM6AAAAAAYLQYSYSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJZHAYDGNZUGY . You are receiving this because you authored the thread.Message ID: @.***>

-- Abeer Goel

CoderTeam1 commented 7 months ago

maybe mem issues or overlapping drivers

On Wed, Apr 24, 2024 at 9:16 AM CODER BOY @.***> wrote:

im here but i didnt get the code to run cus i had to return my raspberry pi which was issued to me will get it again and try

On Wed, Apr 17, 2024 at 1:11 AM Finn Ganser @.***> wrote:

I know this thread is old but it seems like you guys got the display to run. I did too but Im having a major issue. When I push my desktop on the display (via startx) or any application it works for a few seconds. Then the screen goes blan/black again and I have to restart the application/desktop. I have no clue why this is happening. I disapled in the config file the spi and removed all dtoverlays. I only added:

hdmi_force_hotplug=1 hdmi_cvt=hdmi_cvt=640 480 60 1 0 0 0 hdmi_group=2 hdmi_mode=1 hdmi_mode=87 display_rotate=0

Is anybody still "here" and has an idea what is going on? I would appreciate the help cause I cant find a solution nor a thread/post where somebody had similar problems. Thanks!

— Reply to this email directly, view it on GitHub https://github.com/juj/fbcp-ili9341/issues/298#issuecomment-2059803746, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARFYRKPEMRWSNZ3MQJKR66LY5V5GVAVCNFSM6AAAAAAYLQYSYSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJZHAYDGNZUGY . You are receiving this because you authored the thread.Message ID: @.***>

-- Abeer Goel

-- Abeer Goel

CoderTeam1 commented 7 months ago

read the above lines of code and rebuild the files with the lines

On Wed, Apr 24, 2024 at 9:17 AM CODER BOY @.***> wrote:

maybe mem issues or overlapping drivers

On Wed, Apr 24, 2024 at 9:16 AM CODER BOY @.***> wrote:

im here but i didnt get the code to run cus i had to return my raspberry pi which was issued to me will get it again and try

On Wed, Apr 17, 2024 at 1:11 AM Finn Ganser @.***> wrote:

I know this thread is old but it seems like you guys got the display to run. I did too but Im having a major issue. When I push my desktop on the display (via startx) or any application it works for a few seconds. Then the screen goes blan/black again and I have to restart the application/desktop. I have no clue why this is happening. I disapled in the config file the spi and removed all dtoverlays. I only added:

hdmi_force_hotplug=1 hdmi_cvt=hdmi_cvt=640 480 60 1 0 0 0 hdmi_group=2 hdmi_mode=1 hdmi_mode=87 display_rotate=0

Is anybody still "here" and has an idea what is going on? I would appreciate the help cause I cant find a solution nor a thread/post where somebody had similar problems. Thanks!

— Reply to this email directly, view it on GitHub https://github.com/juj/fbcp-ili9341/issues/298#issuecomment-2059803746, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARFYRKPEMRWSNZ3MQJKR66LY5V5GVAVCNFSM6AAAAAAYLQYSYSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJZHAYDGNZUGY . You are receiving this because you authored the thread.Message ID: @.***>

-- Abeer Goel

-- Abeer Goel

-- Abeer Goel

VogelPapaFinn commented 7 months ago

I tried that already but it didnt work. I dumped my OS and installed it again. Except the lib I didnt install anything with the exact same result...

CoderTeam1 commented 7 months ago

try the official waveshare repo...this is for model raspberry pi 3b

On Fri, Apr 26, 2024 at 12:29 AM Finn Ganser @.***> wrote:

I tried that already but it didnt work. I dumped my OS and installed it again. Except the lib I didnt install anything with the exact same result...

— Reply to this email directly, view it on GitHub https://github.com/juj/fbcp-ili9341/issues/298#issuecomment-2077973210, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARFYRKPG2IGCXDNSYHQONELY7FHBRAVCNFSM6AAAAAAYLQYSYSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZXHE3TGMRRGA . You are receiving this because you authored the thread.Message ID: @.***>

-- Abeer Goel

CoderTeam1 commented 7 months ago

https://www.waveshare.com/wiki/2inch_LCD_Module#FBCP_Porting

On Mon, Apr 29, 2024 at 9:34 PM CODER BOY @.***> wrote:

try the official waveshare repo...this is for model raspberry pi 3b

On Fri, Apr 26, 2024 at 12:29 AM Finn Ganser @.***> wrote:

I tried that already but it didnt work. I dumped my OS and installed it again. Except the lib I didnt install anything with the exact same result...

— Reply to this email directly, view it on GitHub https://github.com/juj/fbcp-ili9341/issues/298#issuecomment-2077973210, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARFYRKPG2IGCXDNSYHQONELY7FHBRAVCNFSM6AAAAAAYLQYSYSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZXHE3TGMRRGA . You are receiving this because you authored the thread.Message ID: @.***>

-- Abeer Goel

-- Abeer Goel

VogelPapaFinn commented 7 months ago

I did, same result. anyway I returned it and bought a different model

CoderTeam1 commented 7 months ago

Ah, I see.

On Mon, Apr 29, 2024 at 9:39 PM Finn Ganser @.***> wrote:

I did, same result. anyway I returned it and bought a different model

— Reply to this email directly, view it on GitHub https://github.com/juj/fbcp-ili9341/issues/298#issuecomment-2083132198, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARFYRKOEEPYG2TQ3STQCO63Y7ZWCNAVCNFSM6AAAAAAYLQYSYSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBTGEZTEMJZHA . You are receiving this because you authored the thread.Message ID: @.***>

-- Abeer Goel

CoderTeam1 commented 7 months ago

https://github.com/waveshareteam/waveshare_fbcp

On Tue, Apr 30, 2024 at 8:49 PM CODER BOY @.***> wrote:

Ah, I see.

On Mon, Apr 29, 2024 at 9:39 PM Finn Ganser @.***> wrote:

I did, same result. anyway I returned it and bought a different model

— Reply to this email directly, view it on GitHub https://github.com/juj/fbcp-ili9341/issues/298#issuecomment-2083132198, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARFYRKOEEPYG2TQ3STQCO63Y7ZWCNAVCNFSM6AAAAAAYLQYSYSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBTGEZTEMJZHA . You are receiving this because you authored the thread.Message ID: @.***>

-- Abeer Goel

-- Abeer Goel

CoderTeam1 commented 7 months ago

try it

On Tue, Apr 30, 2024 at 9:00 PM CODER BOY @.***> wrote:

https://github.com/waveshareteam/waveshare_fbcp

On Tue, Apr 30, 2024 at 8:49 PM CODER BOY @.***> wrote:

Ah, I see.

On Mon, Apr 29, 2024 at 9:39 PM Finn Ganser @.***> wrote:

I did, same result. anyway I returned it and bought a different model

— Reply to this email directly, view it on GitHub https://github.com/juj/fbcp-ili9341/issues/298#issuecomment-2083132198, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARFYRKOEEPYG2TQ3STQCO63Y7ZWCNAVCNFSM6AAAAAAYLQYSYSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBTGEZTEMJZHA . You are receiving this because you authored the thread.Message ID: @.***>

-- Abeer Goel

-- Abeer Goel

-- Abeer Goel

VogelPapaFinn commented 7 months ago

I did mate, like I said didnt work. Cant test it anymore tho, returned the display today

CoderTeam1 commented 7 months ago

No worries, thanks for the update!

On Tue, Apr 30, 2024 at 11:08 PM Finn Ganser @.***> wrote:

I did mate, like I said didnt work. Cant test it anymore tho, returned the display today

— Reply to this email directly, view it on GitHub https://github.com/juj/fbcp-ili9341/issues/298#issuecomment-2086185068, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARFYRKIEEC6FE3RB2BCSVH3Y77JIVAVCNFSM6AAAAAAYLQYSYSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBWGE4DKMBWHA . You are receiving this because you authored the thread.Message ID: @.***>

-- Abeer Goel