0
  • 聊天消息
  • 系統(tǒng)消息
  • 評(píng)論與回復(fù)
登錄后你可以
  • 下載海量資料
  • 學(xué)習(xí)在線課程
  • 觀看技術(shù)視頻
  • 寫文章/發(fā)帖/加入社區(qū)
會(huì)員中心
創(chuàng)作中心

完善資料讓更多小伙伴認(rèn)識(shí)你,還能領(lǐng)取20積分哦,立即完善>

3天內(nèi)不再提示

全志R128應(yīng)用開發(fā)案例—適配SPI驅(qū)動(dòng)ST7789V2.4寸LCD

冬至子 ? 來源:丨budboool ? 作者:丨budboool ? 2023-11-02 16:44 ? 次閱讀

SPI驅(qū)動(dòng)ST7789V1.47寸LCD

R128 平臺(tái)提供了 SPI DBI 的 SPI TFT 接口,具有如下特點(diǎn):

  • Supports DBI Type C 3 Line/4 Line Interface Mode
  • Supports 2 Data Lane Interface Mode
  • Supports data source from CPU or DMA
  • Supports RGB111/444/565/666/888 video format
  • Maximum resolution of RGB666 240 x 320@30Hz with single data lane
  • Maximum resolution of RGB888 240 x 320@60Hz or 320 x 480@30Hz with dual data lane
  • Supports tearing effect
  • Supports software flexible control video frame rate

同時(shí),提供了 SPILCD 驅(qū)動(dòng)框架以供 SPI 屏幕使用。

此次適配的SPI屏為 ZJY147S0800TG01,使用的是 SPI 進(jìn)行驅(qū)動(dòng)。

image-20231023091543023.png

引腳配置如下:

  • R128 Devkit
  • TFT 模塊
  • PA12
  • CS
  • PA13
  • SCL
  • PA18
  • SDA
  • PA9
  • BLK
  • PA20
  • RES
  • PA19
  • DC
  • 3V3
  • VCC
  • GND
  • GND

載入方案

我們使用的開發(fā)板是 R128-Devkit,需要開發(fā) C906 核心的應(yīng)用程序,所以載入方案選擇 r128s2_module_c906

$ source envsetup.sh 
$ lunch_rtos 1

image-20230802110150203 (7).png

設(shè)置 SPI 驅(qū)動(dòng)

屏幕使用的是SPI驅(qū)動(dòng),所以需要勾選SPI驅(qū)動(dòng),運(yùn)行 mrtos_menuconfig 進(jìn)入配置頁面。前往下列地址找到 SPI Devices

Drivers Options  --- >
    soc related device drivers  --- >
        SPI Devices --- >
        -*- enable spi driver

image-20230825144134701 (3).png

配置 SPI 引腳

打開你喜歡的編輯器,修改文件:board/r128s2/module/configs/sys_config.fex,在這里我們不需要用到 SPI HOLD與SPI WP引腳,注釋掉即可。

;----------------------------------------------------------------------------------
;SPI controller configuration
;----------------------------------------------------------------------------------
;Please config spi in dts
[spi1]
spi1_used       = 1
spi1_cs_number  = 1
spi1_cs_bitmap  = 1
spi1_cs0        = port:PA12< 6 >< 0 >< 3 >< default >
spi1_sclk       = port:PA13< 6 >< 0 >< 3 >< default >
spi1_mosi       = port:PA18< 6 >< 0 >< 3 >< default >
spi1_miso       = port:PA21< 6 >< 0 >< 3 >< default >
;spi1_hold       = port:PA19< 6 >< 0 >< 2 >< default >
;spi1_wp         = port:PA20< 6 >< 0 >< 2 >< default >

image-20230825144205551 (2).png

設(shè)置 PWM 驅(qū)動(dòng)

屏幕背光使用的是PWM驅(qū)動(dòng),所以需要勾選PWM驅(qū)動(dòng),運(yùn)行 mrtos_menuconfig 進(jìn)入配置頁面。前往下列地址找到 PWM Devices

Drivers Options  --- >
    soc related device drivers  --- >
        PWM Devices --- >
        -*- enable pwm driver

image-20230825144408144 (2).png

配置 PWM 引腳

打開你喜歡的編輯器,修改文件:board/r128s2/module/configs/sys_config.fex,增加 PWM1 節(jié)點(diǎn)

[pwm1]
pwm_used        = 1
pwm_positive    = port:PA9< 4 >< 0 >< 3 >< default >

image-20230825150128954 (2).png

設(shè)置 SPI LCD 驅(qū)動(dòng)

SPI LCD 由專門的驅(qū)動(dòng)管理。運(yùn)行 mrtos_menuconfig 進(jìn)入配置頁面。前往下列地址找到 SPILCD Devices ,注意同時(shí)勾選 spilcd hal APIs test 方便測(cè)試使用。

Drivers Options  --- >
    soc related device drivers  --- >
        [*] DISP Driver Support(spi_lcd)
        [*]   spilcd hal APIs test

image-20231023094633231.png

編寫 SPI LCD 顯示屏驅(qū)動(dòng)

獲取屏幕初始化序列

首先詢問屏廠提供驅(qū)動(dòng)源碼

image-20231023094633231 (1).png )

找到 LCD 的初始化序列代碼

image-20231017103842527 (1).png

找到屏幕初始化的源碼

image-20231023094659100.png

整理后的初始化代碼如下:

LCD_WR_REG(0x11);
delay_ms(120);
LCD_WR_REG(0x36);
LCD_WR_DATA8(0x00);

LCD_WR_REG(0x3A);
LCD_WR_DATA8(0x05);

LCD_WR_REG(0xB2);
LCD_WR_DATA8(0x0C);
LCD_WR_DATA8(0x0C);
LCD_WR_DATA8(0x00);
LCD_WR_DATA8(0x33);
LCD_WR_DATA8(0x33);

LCD_WR_REG(0xB7);
LCD_WR_DATA8(0x35);

LCD_WR_REG(0xBB);
LCD_WR_DATA8(0x35);

LCD_WR_REG(0xC0);
LCD_WR_DATA8(0x2C);

LCD_WR_REG(0xC2);
LCD_WR_DATA8(0x01);

LCD_WR_REG(0xC3);
LCD_WR_DATA8(0x13);

LCD_WR_REG(0xC4);
LCD_WR_DATA8(0x20);

LCD_WR_REG(0xC6);
LCD_WR_DATA8(0x0F);

LCD_WR_REG(0xD0);
LCD_WR_DATA8(0xA4);
LCD_WR_DATA8(0xA1);

LCD_WR_REG(0xD6);
LCD_WR_DATA8(0xA1);

LCD_WR_REG(0xE0);
LCD_WR_DATA8(0xF0);
LCD_WR_DATA8(0x00);
LCD_WR_DATA8(0x04);
LCD_WR_DATA8(0x04);
LCD_WR_DATA8(0x04);
LCD_WR_DATA8(0x05);
LCD_WR_DATA8(0x29);
LCD_WR_DATA8(0x33);
LCD_WR_DATA8(0x3E);
LCD_WR_DATA8(0x38);
LCD_WR_DATA8(0x12);
LCD_WR_DATA8(0x12);
LCD_WR_DATA8(0x28);
LCD_WR_DATA8(0x30);

LCD_WR_REG(0xE1);
LCD_WR_DATA8(0xF0);
LCD_WR_DATA8(0x07);
LCD_WR_DATA8(0x0A);
LCD_WR_DATA8(0x0D);
LCD_WR_DATA8(0x0B);
LCD_WR_DATA8(0x07);
LCD_WR_DATA8(0x28);
LCD_WR_DATA8(0x33);
LCD_WR_DATA8(0x3E);
LCD_WR_DATA8(0x36);
LCD_WR_DATA8(0x14);
LCD_WR_DATA8(0x14);
LCD_WR_DATA8(0x29);
LCD_WR_DATA8(0x32);

LCD_WR_REG(0x21);

LCD_WR_REG(0x11);
delay_ms(120);
LCD_WR_REG(0x29);

用現(xiàn)成驅(qū)動(dòng)改寫 SPI LCD 驅(qū)動(dòng)

選擇一個(gè)現(xiàn)成的 SPI LCD 改寫即可,這里選擇 nv3029s.c 驅(qū)動(dòng)來修改

image-20231017104714827 (1).png

復(fù)制這兩個(gè)驅(qū)動(dòng),重命名為 st7789v.c

image-20231017104740060 (1).png

先編輯 st7789v.hnv3029s 改成 st7789v

image-20231017104851772 (1).png

#ifndef _ST7789V_H
#define _ST7789V_H

#include "panels.h"

struct __lcd_panel st7789v_panel;

#endif /*End of file*/

編輯 st7789v.cnv3029s 改成 st7789v

image-20231017104942286 (1).png

編寫初始化序列

先刪除 static void LCD_panel_init(unsigned int sel) 中的初始化函數(shù)。

image-20231017105101421 (1).png

然后將屏廠提供的初始化序列復(fù)制進(jìn)來

image-20231023095000428.png

然后按照 spi_lcd 框架的接口改寫驅(qū)動(dòng)接口,具體接口如下

屏廠函數(shù)

SPILCD框架接口

LCD_WR_REG

sunxi_lcd_cmd_write

LCD_WR_DATA8

sunxi_lcd_para_write

delay_ms

sunxi_lcd_delay_ms

可以直接進(jìn)行替換

image-20231023095114146.png

完成后如下

image-20231023095158411.png

然后對(duì)照屏廠提供的驅(qū)動(dòng)修改 address 函數(shù)

image-20231023100959968.png

做如下修改

static void address(unsigned int sel, int x, int y, int width, int height)
{
    sunxi_lcd_cmd_write(sel, 0x2A); /* Set coloum address */
    sunxi_lcd_para_write(sel, (x + 34) > > 8);
    sunxi_lcd_para_write(sel, (x + 34));
    sunxi_lcd_para_write(sel, (width + 34) > > 8);
    sunxi_lcd_para_write(sel, (width + 34));
    sunxi_lcd_cmd_write(sel, 0x2B); /* Set row address */
    sunxi_lcd_para_write(sel, y > > 8);
    sunxi_lcd_para_write(sel, y);
    sunxi_lcd_para_write(sel, height > > 8);
    sunxi_lcd_para_write(sel, height);
    sunxi_lcd_cmd_write(sel, 0x2c);
}

完成驅(qū)動(dòng)如下

#include "st7789v.h"

static void LCD_power_on(u32 sel);
static void LCD_power_off(u32 sel);
static void LCD_bl_open(u32 sel);
static void LCD_bl_close(u32 sel);
static void LCD_panel_init(u32 sel);
static void LCD_panel_exit(u32 sel);
#define RESET(s, v) sunxi_lcd_gpio_set_value(s, 0, v)
#define power_en(sel, val) sunxi_lcd_gpio_set_value(sel, 0, val)

static struct disp_panel_para info[LCD_FB_MAX];

static void address(unsigned int sel, int x, int y, int width, int height)
{
    sunxi_lcd_cmd_write(sel, 0x2A); /* Set coloum address */
    sunxi_lcd_para_write(sel, (x + 34) > > 8);
    sunxi_lcd_para_write(sel, (x + 34));
    sunxi_lcd_para_write(sel, (width + 34) > > 8);
    sunxi_lcd_para_write(sel, (width + 34));
    sunxi_lcd_cmd_write(sel, 0x2B); /* Set row address */
    sunxi_lcd_para_write(sel, y > > 8);
    sunxi_lcd_para_write(sel, y);
    sunxi_lcd_para_write(sel, height > > 8);
    sunxi_lcd_para_write(sel, height);
    sunxi_lcd_cmd_write(sel, 0x2c);
}

static void LCD_panel_init(unsigned int sel)
{
    if (bsp_disp_get_panel_info(sel, &info[sel])) {
        lcd_fb_wrn("get panel info fail!n");
        return;
    }

    sunxi_lcd_cmd_write(sel, 0x11);
    sunxi_lcd_delay_ms(120);
    sunxi_lcd_cmd_write(sel, 0x36);
    sunxi_lcd_para_write(sel, 0x00);

    sunxi_lcd_cmd_write(sel, 0x3A);
    sunxi_lcd_para_write(sel, 0x05);

    sunxi_lcd_cmd_write(sel, 0xB2);
    sunxi_lcd_para_write(sel, 0x0C);
    sunxi_lcd_para_write(sel, 0x0C);
    sunxi_lcd_para_write(sel, 0x00);
    sunxi_lcd_para_write(sel, 0x33);
    sunxi_lcd_para_write(sel, 0x33);

    sunxi_lcd_cmd_write(sel, 0xB7);
    sunxi_lcd_para_write(sel, 0x35);

    sunxi_lcd_cmd_write(sel, 0xBB);
    sunxi_lcd_para_write(sel, 0x35);

    sunxi_lcd_cmd_write(sel, 0xC0);
    sunxi_lcd_para_write(sel, 0x2C);

    sunxi_lcd_cmd_write(sel, 0xC2);
    sunxi_lcd_para_write(sel, 0x01);

    sunxi_lcd_cmd_write(sel, 0xC3);
    sunxi_lcd_para_write(sel, 0x13);

    sunxi_lcd_cmd_write(sel, 0xC4);
    sunxi_lcd_para_write(sel, 0x20);

    sunxi_lcd_cmd_write(sel, 0xC6);
    sunxi_lcd_para_write(sel, 0x0F);

    sunxi_lcd_cmd_write(sel, 0xD0);
    sunxi_lcd_para_write(sel, 0xA4);
    sunxi_lcd_para_write(sel, 0xA1);

    sunxi_lcd_cmd_write(sel, 0xD6);
    sunxi_lcd_para_write(sel, 0xA1);

    sunxi_lcd_cmd_write(sel, 0xE0);
    sunxi_lcd_para_write(sel, 0xF0);
    sunxi_lcd_para_write(sel, 0x00);
    sunxi_lcd_para_write(sel, 0x04);
    sunxi_lcd_para_write(sel, 0x04);
    sunxi_lcd_para_write(sel, 0x04);
    sunxi_lcd_para_write(sel, 0x05);
    sunxi_lcd_para_write(sel, 0x29);
    sunxi_lcd_para_write(sel, 0x33);
    sunxi_lcd_para_write(sel, 0x3E);
    sunxi_lcd_para_write(sel, 0x38);
    sunxi_lcd_para_write(sel, 0x12);
    sunxi_lcd_para_write(sel, 0x12);
    sunxi_lcd_para_write(sel, 0x28);
    sunxi_lcd_para_write(sel, 0x30);

    sunxi_lcd_cmd_write(sel, 0xE1);
    sunxi_lcd_para_write(sel, 0xF0);
    sunxi_lcd_para_write(sel, 0x07);
    sunxi_lcd_para_write(sel, 0x0A);
    sunxi_lcd_para_write(sel, 0x0D);
    sunxi_lcd_para_write(sel, 0x0B);
    sunxi_lcd_para_write(sel, 0x07);
    sunxi_lcd_para_write(sel, 0x28);
    sunxi_lcd_para_write(sel, 0x33);
    sunxi_lcd_para_write(sel, 0x3E);
    sunxi_lcd_para_write(sel, 0x36);
    sunxi_lcd_para_write(sel, 0x14);
    sunxi_lcd_para_write(sel, 0x14);
    sunxi_lcd_para_write(sel, 0x29);
    sunxi_lcd_para_write(sel, 0x32);

    sunxi_lcd_cmd_write(sel, 0x21);

    sunxi_lcd_cmd_write(sel, 0x11);
    sunxi_lcd_delay_ms(120);
    sunxi_lcd_cmd_write(sel, 0x29);

    if (info[sel].lcd_x < info[sel].lcd_y)
        address(sel, 0, 0, info[sel].lcd_x - 1, info[sel].lcd_y - 1);
    else
        address(sel, 0, 0, info[sel].lcd_y - 1, info[sel].lcd_x - 1);
}

static void LCD_panel_exit(unsigned int sel)
{
    sunxi_lcd_cmd_write(sel, 0x28);
    sunxi_lcd_delay_ms(20);
    sunxi_lcd_cmd_write(sel, 0x10);
    sunxi_lcd_delay_ms(20);
    sunxi_lcd_pin_cfg(sel, 0);
}

static s32 LCD_open_flow(u32 sel)
{
    lcd_fb_here;
    /* open lcd power, and delay 50ms */
    LCD_OPEN_FUNC(sel, LCD_power_on, 50);
    /* open lcd power, than delay 200ms */
    LCD_OPEN_FUNC(sel, LCD_panel_init, 200);

    LCD_OPEN_FUNC(sel, lcd_fb_black_screen, 50);
    /* open lcd backlight, and delay 0ms */
    LCD_OPEN_FUNC(sel, LCD_bl_open, 0);

    return 0;
}

static s32 LCD_close_flow(u32 sel)
{
    lcd_fb_here;
    /* close lcd backlight, and delay 0ms */
    LCD_CLOSE_FUNC(sel, LCD_bl_close, 50);
    /* open lcd power, than delay 200ms */
    LCD_CLOSE_FUNC(sel, LCD_panel_exit, 10);
    /* close lcd power, and delay 500ms */
    LCD_CLOSE_FUNC(sel, LCD_power_off, 10);

    return 0;
}

static void LCD_power_on(u32 sel)
{
    /* config lcd_power pin to open lcd power0 */
    lcd_fb_here;
    power_en(sel, 1);

    sunxi_lcd_power_enable(sel, 0);

    sunxi_lcd_pin_cfg(sel, 1);
    RESET(sel, 1);
    sunxi_lcd_delay_ms(100);
    RESET(sel, 0);
    sunxi_lcd_delay_ms(100);
    RESET(sel, 1);
}

static void LCD_power_off(u32 sel)
{
    lcd_fb_here;
    /* config lcd_power pin to close lcd power0 */
    sunxi_lcd_power_disable(sel, 0);
    power_en(sel, 0);
}

static void LCD_bl_open(u32 sel)
{
    sunxi_lcd_pwm_enable(sel);
    /* config lcd_bl_en pin to open lcd backlight */
    sunxi_lcd_backlight_enable(sel);
    lcd_fb_here;
}

static void LCD_bl_close(u32 sel)
{
    /* config lcd_bl_en pin to close lcd backlight */
    sunxi_lcd_backlight_disable(sel);
    sunxi_lcd_pwm_disable(sel);
    lcd_fb_here;
}


/* sel: 0:lcd0; 1:lcd1 */
static s32 LCD_user_defined_func(u32 sel, u32 para1, u32 para2, u32 para3)
{
    lcd_fb_here;
    return 0;
}

static int lcd_set_var(unsigned int sel, struct fb_info *p_info)
{
    return 0;
}

static int lcd_set_addr_win(unsigned int sel, int x, int y, int width, int height)
{
    address(sel, x, y, width, height);
    return 0;
}

static int lcd_blank(unsigned int sel, unsigned int en)
{
    return 0;
}

struct __lcd_panel st7789v_panel = {
    /* panel driver name, must mach the name of lcd_drv_name in sys_config.fex
       */
    .name = "st7789v",
    .func = {
        .cfg_open_flow = LCD_open_flow,
        .cfg_close_flow = LCD_close_flow,
        .lcd_user_defined_func = LCD_user_defined_func,
        .blank = lcd_blank,
        .set_var = lcd_set_var,
        .set_addr_win = lcd_set_addr_win,
    },
};

對(duì)接驅(qū)動(dòng)框架

完成了屏幕驅(qū)動(dòng)的編寫,接下來需要對(duì)接到 SPILCD 驅(qū)動(dòng)框架。首先編輯 Kconfig

image-20231017105738155 (1).png

增加 st7789v 的配置

image-20231017105814814 (1).png

config LCD_SUPPORT_ST7789V
    bool "LCD support st7789v panel"
    default n
    ---help---
        If you want to support st7789v panel for display driver, select it.

然后編輯 panels.cpanel_array 里增加 st7789 驅(qū)動(dòng)的引用

image-20231017105948156 (1).png

如下圖

image-20231017105919628 (1).png

#ifdef CONFIG_LCD_SUPPORT_ST7789V
    &st7789v_panel,
#endif

之后編輯 panels.h 同樣增加引用

image-20231017110043805 (1).png

如下圖

image-20231017110122397 (1).png

#ifdef CONFIG_LCD_SUPPORT_ST7789V
extern struct __lcd_panel st7789v_panel;
#endif

最后編輯外層的 Makefile 增加編譯選項(xiàng)

image-20231017110204681 (1).png

如下所示

image-20231017110242997 (1).png

obj-${CONFIG_LCD_SUPPORT_ST7789V} += panels/st7789v.o

選擇 ST7789V 驅(qū)動(dòng)

在 SPILCD 驅(qū)動(dòng)選擇界面可以看到 LCD_FB panels select 選擇 SPI 屏幕的驅(qū)動(dòng)

進(jìn)入 LCD_FB panels select 選項(xiàng)

image-20230825150812435 (2).png

選擇并勾選 [*] LCD support st7789v panel

image-20231017110344277 (1).png

配置 SPI LCD 引腳

打開你喜歡的編輯器,修改文件:board/r128s2/module/configs/sys_config.fex

[lcd_fb0]
lcd_used            = 1   
lcd_model_name      = "spilcd"   
lcd_driver_name     = "st7789v" 
lcd_x               = 172   
lcd_y               = 320  
lcd_width           = 17  
lcd_height          = 32  
lcd_data_speed      = 50
lcd_pwm_used        = 1
lcd_pwm_ch          = 1
lcd_pwm_freq        = 5000 
lcd_pwm_pol         = 0 
lcd_if              = 0
lcd_pixel_fmt       = 11 
lcd_dbi_fmt         = 2
lcd_dbi_clk_mode    = 1
lcd_dbi_te          = 1
fb_buffer_num       = 2
lcd_dbi_if          = 4
lcd_rgb_order       = 0
lcd_fps             = 60
lcd_spi_bus_num     = 1
lcd_frm             = 2
lcd_gamma_en        = 1
lcd_backlight       = 100

lcd_power_num       = 0
lcd_gpio_regu_num   = 0
lcd_bl_percent_num  = 0

lcd_spi_dc_pin      = port:PA19< 1 >< 0 >< 3 >< 0 >
;RESET Pin
lcd_gpio_0          = port:PA20< 1 >< 0 >< 2 >< 0 >

編譯打包

運(yùn)行命令 mp 編譯打包,可以看到編譯了 st7789v.o

image-20231017111015362 (1).png

測(cè)試

燒錄啟動(dòng)之后,屏幕背光啟動(dòng),但是屏幕全黑。

image-20231023101653067.png

輸入 test_spilcd ,屏幕顯示黃色。

image-20231023101719108.png

image-20231023101636223.png

輸入 lv_examples 1 可以顯示 lvgl 界面

image-20231023101800720.png

常見問題

LVGL 出現(xiàn) DMA OVER SIZE

image-20231023101154351 (1).png

這是由于 LVGL 配置的 LV_COLOR_DEPTH 為 32,但是 SPI 屏配置為16位。請(qǐng)修改 lv_conf.h

image-20231023101317634 (1).png

聲明:本文內(nèi)容及配圖由入駐作者撰寫或者入駐合作網(wǎng)站授權(quán)轉(zhuǎn)載。文章觀點(diǎn)僅代表作者本人,不代表電子發(fā)燒友網(wǎng)立場(chǎng)。文章及其配圖僅供工程師學(xué)習(xí)之用,如有內(nèi)容侵權(quán)或者其他違規(guī)問題,請(qǐng)聯(lián)系本站處理。 舉報(bào)投訴
  • SPI接口
    +關(guān)注

    關(guān)注

    0

    文章

    258

    瀏覽量

    34317
  • SDA
    SDA
    +關(guān)注

    關(guān)注

    0

    文章

    124

    瀏覽量

    28083
  • LCD顯示屏
    +關(guān)注

    關(guān)注

    1

    文章

    91

    瀏覽量

    13246
  • TFT模塊
    +關(guān)注

    關(guān)注

    0

    文章

    4

    瀏覽量

    6466
  • PWM驅(qū)動(dòng)
    +關(guān)注

    關(guān)注

    0

    文章

    28

    瀏覽量

    1180
  • R128
    +關(guān)注

    關(guān)注

    0

    文章

    41

    瀏覽量

    93
收藏 人收藏

    評(píng)論

    相關(guān)推薦

    R128應(yīng)用開發(fā)案例—SPI驅(qū)動(dòng)ST7789V1.3LCD

    此次適配SPI屏為 `ZJY130S0800TG01`,使用的是 SPI 進(jìn)行驅(qū)動(dòng)。
    的頭像 發(fā)表于 11-06 12:40 ?1056次閱讀
    <b class='flag-5'>全</b><b class='flag-5'>志</b><b class='flag-5'>R128</b>應(yīng)用<b class='flag-5'>開發(fā)案</b>例—<b class='flag-5'>SPI</b><b class='flag-5'>驅(qū)動(dòng)</b><b class='flag-5'>ST7789V</b>1.3<b class='flag-5'>寸</b><b class='flag-5'>LCD</b>

    R128內(nèi)存泄漏調(diào)試案例分享

    硬件:R128 軟件:FreeRTOS + rtplayer\_test(Cedarx)+ AudioSystem
    的頭像 發(fā)表于 11-20 17:27 ?930次閱讀
    <b class='flag-5'>全</b><b class='flag-5'>志</b><b class='flag-5'>R128</b>內(nèi)存泄漏調(diào)試案例分享

    R128點(diǎn)屏踩坑筆記

    本文所整理的R128點(diǎn)屏踩坑筆記均是在參考以下應(yīng)用開發(fā)案例進(jìn)行屏幕適配時(shí)遇到的實(shí)際開發(fā)問題,涵蓋了屏幕花屏、屏幕白屏、LVGL顯示顏色錯(cuò)誤等常見問題的解決方法。
    的頭像 發(fā)表于 12-03 10:17 ?1207次閱讀
    <b class='flag-5'>R128</b>點(diǎn)屏踩坑筆記

    縱享絲滑!R128+LVGL驅(qū)動(dòng)多尺寸RGB LCD屏幕流暢運(yùn)行

    (480x480) 4圓屏RGB(480x480) R128適配RGB LCD配置如動(dòng)圖展示,其中最大的屏幕是 71024x600分
    發(fā)表于 12-22 09:52

    R128使用SPI驅(qū)動(dòng)ST7789V1.47LCD

    SPI驅(qū)動(dòng)ST7789V1.47LCDR128 平臺(tái)提供了 SPI DBI 的
    發(fā)表于 01-02 09:45

    R128硬件設(shè)計(jì)指南①

    。添加按鍵時(shí)保證按鍵按下后,ADC網(wǎng)絡(luò)電壓范圍為 0~1.08V,最小間隔大于 200mV。 LCD電路接口R128 支持一路 RGB屏接口和一路 SPI屏接口。其中 RGB屏接口可
    發(fā)表于 01-04 09:23

    R128 Devkit開發(fā)板原理圖模塊介紹及使用說明

    :CH341SER.EXE 購買鏈接 百問科技淘寶店 - R128 DevKit 原理圖模塊介紹R128 模組R128 模組使用 SMT
    發(fā)表于 01-17 09:45

    R128適配 ST7789v LCD

    適配 ST7789v LCD R128 平臺(tái)提供了 SPI DBI 的 SPI TFT 接口,具
    發(fā)表于 10-23 09:58

    使用R128將LVGL運(yùn)行在SPI TFT GUI上

    載入方案選擇 r128s2_module_c906 $ source envsetup.sh $ lunch_rtos 1 配置 SPI LCD 驅(qū)動(dòng)
    發(fā)表于 10-23 13:56

    R128應(yīng)用開發(fā)案例——SPI 驅(qū)動(dòng) TFT LCD

    SPI 驅(qū)動(dòng) TFT LCDR128 平臺(tái)提供了 SPI DBI 的 SPI TFT 接口
    發(fā)表于 10-23 14:29

    R128應(yīng)用開發(fā)案例——適配SPI驅(qū)動(dòng)ST7789V2.4LCD

    SPI驅(qū)動(dòng)ST7789V1.47LCD R128 平臺(tái)提供了
    發(fā)表于 11-02 13:36

    R128應(yīng)用開發(fā)案例——SPI驅(qū)動(dòng)ST7789V1.3LCD

    SPI驅(qū)動(dòng)ST7789V1.3LCD R128 平臺(tái)提供了
    發(fā)表于 11-06 10:16

    R128應(yīng)用開發(fā)案例——DBI驅(qū)動(dòng)ST7789V1.3LCD

    DBI驅(qū)動(dòng)ST7789V1.3LCD 之前介紹了 R128 平臺(tái)使用 SPI
    發(fā)表于 11-06 11:12

    R128平臺(tái)SPI與DBI點(diǎn)屏性能大對(duì)比

    :38fps lv_benchmark 跑分:60fps SPI 模式 lv_music_demo 跑分:33fps lv_benchmark 跑分:49fps ST7789v 2.4
    發(fā)表于 11-13 15:58

    R128適配ST7789v LCD

    R128 平臺(tái)提供了 SPI DBI 的 SPI TFT 接口,具有如下特點(diǎn)
    的頭像 發(fā)表于 10-23 11:26 ?903次閱讀
    <b class='flag-5'>全</b><b class='flag-5'>志</b><b class='flag-5'>R128</b><b class='flag-5'>適配</b><b class='flag-5'>ST7789v</b> <b class='flag-5'>LCD</b>