您尚未登录。

楼主 # 2021-11-05 11:59:36

542396750@qq.com
会员
注册时间: 2021-03-26
已发帖子: 92
积分: 3.5

V3S驱动ST7789SPI屏幕

&spi0{
    status = "okay";
    st7789v: st7789v@0{
        compatible = "sitronix,st7789v";
        reg = <0>;
        status = "okay";
        spi-max-frequency = <32000000>;
        spi-cpol;
        spi-cpha;
        rotate = <0>;
        fps = <10>;
        buswidth = <8>;
        rgb;
        dc-gpios    = <&pio 1 4 GPIO_ACTIVE_HIGH>;  // PB4
        reset-gpios = <&pio 1 5 GPIO_ACTIVE_HIGH>;  // PB5
        //led-gpios   = <&pio 1 7 GPIO_ACTIVE_LOW>;   // PB7
        width = <240>;
        height= <320>;
        debug = <0>;
    };
};

开机
usbhid: USB HID core driver
[    1.092172] fbtft_of_value: width = 240
[    1.096011] fbtft_of_value: height = 320
[    1.099968] fbtft_of_value: buswidth = 8
[    1.103888] fbtft_of_value: debug = 0
[    1.107547] fbtft_of_value: rotate = 0
[    1.111304] fbtft_of_value: fps = 10
[    1.122424] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.132420] mmc0: new high speed SD card at address 21b7
[    1.139811] mmcblk0: mmc0:21b7 APPSD 480 MiB
[    1.146192]  mmcblk0: p1 p2
[    1.691784] random: fast init done
[    1.740803] Console: switching to colour frame buffer device 30x40
[    1.747711] graphics fb0: fb_st7789v frame buffer, 240x320, 150 KiB video memory, 4 KiB buffer memory, fps=10, spi0.0 at 32 MHz

开机后雪花飘飘,执行
# ./usr/bin/fb-test
fb-test 1.1.0 (rosetta)
fb res 240x320 virtual 240x320, line_len 480, bpp 16
直接白屏

# cat /dev/urandom > /dev/fb0
cat: write error: No space left on device
变成雪花飘飘

播放视频白屏闪烁

离线

楼主 #1 2021-11-05 12:00:39

542396750@qq.com
会员
注册时间: 2021-03-26
已发帖子: 92
积分: 3.5

Re: V3S驱动ST7789SPI屏幕

降低fps至10,时钟频率设置为32000000,也一样

离线

楼主 #2 2021-11-17 11:39:35

542396750@qq.com
会员
注册时间: 2021-03-26
已发帖子: 92
积分: 3.5

Re: V3S驱动ST7789SPI屏幕

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn