d1s + st7701s RGB颜色异常
-
板子上麻雀d1s,显示屏是st7701s,spi+RGB控制的,显示彩条和色阶都没有问题
显示图片和lvgl演示就很怪
屏幕是18bitRGB,disp设置如下
&disp { disp_init_enable = <1>; disp_mode = <0>; screen0_output_type = <1>; screen0_output_mode = <4>; screen1_output_type = <3>; screen1_output_mode = <4>; screen1_output_format = <0>; screen1_output_bits = <0>; screen1_output_eotf = <4>; screen1_output_cs = <257>; screen1_output_dvi_hdmi = <2>; screen1_output_range = <2>; screen1_output_scan = <0>; screen1_output_aspect_ratio = <8>; dev0_output_type = <1>; dev0_output_mode = <4>; dev0_screen_id = <0>; dev0_do_hpd = <0>; dev1_output_type = <4>; dev1_output_mode = <10>; dev1_screen_id = <1>; dev1_do_hpd = <1>; def_output_dev = <0>; hdmi_mode_check = <1>; disp_rotation_used = <1>; degree0 = <0>; fb0_format = <0>; fb0_buffer_num = <1>; /*fb0_width = <800>;*/ /*fb0_height = <480>;*/ /*read from lcd*/ fb1_format = <0>; fb1_width = <0>; fb1_height = <0>; chn_cfg_mode = <1>; disp_para_zone = <1>; /*VCC-LCD*/ /* dc1sw-supply = <®_dc1sw>;*/ /*VCC-DSI*/ /* eldo3-supply = <®_eldo3>;*/ /*VCC-PD*/ /* dcdc1-supply = <®_dcdc1>;*/ };
lcd设置如下:
&lcd0 { lcd_used = <1>; lcd_driver_name = "st7701s_3spi"; lcd_backlight = <100>; lcd_if = <0>; lcd_hv_if = <0>; lcd_width = <65>; lcd_height = <130>; lcd_x = <480>; lcd_y = <960>; lcd_dclk_freq = <30>; lcd_hbp = <15>; lcd_ht = <512>; lcd_hspw = <2>; lcd_vbp = <17>; lcd_vt = <996>; lcd_vspw = <2>; lcd_pwm_used = <1>; lcd_pwm_ch = <7>; lcd_pwm_freq = <1000>; lcd_pwm_pol = <0>; lcd_pwm_max_limit = <255>; lcd_frm = <1>; lcd_io_phase = <0x0000>; lcd_gamma_en = <0>; lcd_cmap_en = <0>; lcd_hv_clk_phase = <0>; lcd_hv_sync_polarity= <0>; lcd_rb_swap = <0>; deu_mode = <0>; lcdgamma4iep = <22>; smart_color = <90>; lcd_gpio_0 = <&pio PE 8 GPIO_ACTIVE_HIGH>; // RST lcd_gpio_1 = <&pio PE 9 GPIO_ACTIVE_HIGH>; // CS lcd_gpio_2 = <&pio PE 7 GPIO_ACTIVE_HIGH>; // SDA lcd_gpio_3 = <&pio PE 6 GPIO_ACTIVE_HIGH>; // SCK pinctrl-0 = <&rgb18_pins_a>; pinctrl-1 = <&rgb18_pins_b>; };
屏幕的初始化代码和屏参都是卖家提供,rgb抖动开0、1、2都不正常,请大佬指点是哪里的问题!感谢!
-
@ggy321 大哥,这个问题解决了没呢,我也遇到了一样的问题,图片显示有波纹,感觉像颜色错开了一样。
-
@ggy321 在 d1s + st7701s RGB颜色异常 中说:
lcd_frm = <1>;这个配置要看你的屏驱动配置的是多少bit位宽的数据,如果配置不正确就是你看到的这样。过渡不平滑
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号