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 st7789v2 with 240x280 screen shows a line at the bottom of the display #74367

Closed
ljunquera opened this issue Jun 16, 2024 · 4 comments
Assignees
Labels
area: Display area: LVGL Light and Versatile Graphics Library Support bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug

Comments

@ljunquera
Copy link

I purchased a new Waveshare ST7789 display, but was getting a line at the bottom of the screen and cannot determine why.

waveshare

The display is a 240x280:
https://www.waveshare.com/wiki/1.69inch_Touch_LCD_Module

I am using the driver:
https://github.com/zephyrproject-rtos/zephyr/blob/main//boards/shields/st7789v_generic/doc/index.rst

And nRF Connect for VS Code and changed the height to 280:

       st7789v_st7789v_tl019fqv01: st7789v@0 {
        compatible = "sitronix,st7789v";
        spi-max-frequency = <20000000>;
        reg = <0>;
        cmd-data-gpios = < &gpio1 11 GPIO_ACTIVE_LOW>;
        reset-gpios = < &gpio1 10 GPIO_ACTIVE_LOW>;
        width = <240>;
        height = <280>;
        x-offset = <0>;
        y-offset = <0>;
        vcom = <0x19>;
        gctrl = <0x35>;
        vrhs = <0x12>;
        vdvs = <0x20>;
        mdac = <0x00>;
        gamma = <0x01>;
        colmod = <0x05>;
        lcm = <0x2c>;
        porch-param = [0c 0c 00 33 33];
        cmd2en-param = [5a 69 02 01];
        pwctrl1-param = [a4 a1];
        pvgam-param = [D0 04 0D 11 13 2B 3F 54 4C 18 0D 0B 1F 23];
        nvgam-param = [D0 04 0C 11 13 2C 3F 44 51 2F 1F 1F 20 23];
        ram-param = [00 F0];
        rgb-param = [CD 08 14];
	};
@ljunquera ljunquera added the bug The issue is a bug, or the PR is fixing a bug label Jun 16, 2024
@aescolar
Copy link
Member

@ljunquera could you please provide more information regarding which Zephyr version you are using

@nashif nashif added area: LVGL Light and Versatile Graphics Library Support priority: low Low impact/importance bug labels Jun 18, 2024
@ljunquera
Copy link
Author

Zephyr v3.5.0

@jjw2202
Copy link

jjw2202 commented Jun 21, 2024

Have you tried adjusting the y-offset in the devicetree?

@ljunquera
Copy link
Author

That did it! Thank you.

    st7789v_st7789v_tl019fqv01: st7789v@0 {
        compatible = "sitronix,st7789v";
        spi-max-frequency = <20000000>;
        reg = <0>;
        cmd-data-gpios = < &gpio1 11 GPIO_ACTIVE_LOW>;
        reset-gpios = < &gpio1 10 GPIO_ACTIVE_LOW>;
        width = <240>;
        height = <280>;
        x-offset = <0>;
        y-offset = <20>;
        vcom = <0x19>;
        gctrl = <0x35>;
        vrhs = <0x12>;
        vdvs = <0x20>;
        mdac = <0x00>;
        gamma = <0x01>;
        colmod = <0x05>;
        lcm = <0x2c>;
        porch-param = [0c 0c 00 33 33];
        cmd2en-param = [5a 69 02 01];
        pwctrl1-param = [a4 a1];
        pvgam-param = [D0 04 0D 11 13 2B 3F 54 4C 18 0D 0B 1F 23];
        nvgam-param = [D0 04 0C 11 13 2C 3F 44 51 2F 1F 1F 20 23];
        ram-param = [00 F0];
        rgb-param = [CD 08 14];
    };

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Display area: LVGL Light and Versatile Graphics Library Support bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug
Projects
None yet
Development

No branches or pull requests

5 participants