SiFli-Wiki SiFli-Wiki SiFli-Wiki
  • User Guide
  • Examples
  • API Documentation
  • About Us
/
  • English
  • 中文

Quick start

  • Getting Started Guide
  • Chip Manual Summary

Software Development

  • SDK Documentation
  • FAQ
    • Development tool related issues
      • 1 Compilation Related
      • 2 Jlink
      • 3 KEIL
      • 4 Ozone
      • 5 SiFli
      • 6 Trace32
      • 7 SystemView
      • 8 Serial port
      • 9 Source Insight相关
    • Chip related issues;
      • 1 GPIO相关
      • 2 定时器相关
      • 3 Middle;断相关
      • 4 Watchdog;相关
      • 5 RTC相关
      • 6 ADC相关
      • 7 I2C相关
      • 8 低功耗相关
      • 9 PWM
      • 10 系统
      • 11 Bluetooth;
      • 12 USB相关
      • 13 UART相关
      • 14 双核相关
      • 15 I2S;related;
      • 13; SPI related issues;
    • Peripheral driver debugging issues;
      • 1 LCD调试常见问题
      • 2 Sensor调试常见问题
      • 3 flash调试常见问题
      • 4 马达motor调试常见问题
    • Software debugging related issues;
      • 1 Log调试
      • 2 在线调试方法
      • 3 Restore crash scene by dumping memory;
      • 4 Method for saving crash scene;
  • Application Notes
    • SF32LB52X启动与低功耗流程
    • 低功耗开发指南

Hardware Development

  • SiFliModel Selection Manual
    • SiFli Chip Model Guide
    • Module Model Guide
  • Chip Hardware Design Guide
    • SF32LB52x-Hardware Design Guide
    • SF32LB52X-Hardware Design Guide
    • SF32LB56xU-Hardware Design Guide
    • SF32LB56xV-Hardware Design Guide
    • SF32LB58x-Hardware Design Guide
  • Development Board
    • SF32LB52-DevKit-LCD开发板使用指南
    • SF32LB52-DevKit-LCDAdapter board制作指南
    • 立创·黄山派开发板使用指南
    • SF32LB52-DevKit-Nano Development Board User Guide

Software Tools

  • Software and Hardware Tools Collection
    • firmwareburningTool Impeller
    • Graphics ConversionTool
    • Storage Debugging Tools
      • Flash Chipid 和TypeConfiguration Guide
    • Screen module调试
      • screen模组介绍
      • 思澈SDKOf显示框架介绍
      • AdjoinCurrentProjectionBlock
        • 添加新的屏幕驱动
        • AddNew屏幕BacklightDriver
        • Add a new TP driver
        • 为新的屏幕模组添加menuconfig选项
      • Use the new screen module
      • 525添加QSPI-LCD实例
      • 566添加DPI-LCD实例
      • FAQ
      • Appendix
        • 屏驱回调函数
        • Application Layer vs Module Driver Layer Function Correspondence Table
        • List of adapted screen modules
    • sftool

Product Introduction

  • About SiFi

On this page

  • 1 打开SDK\customer\boards\Kconfig_lcd文件
  • 2 Add screen module options
  • 3 Configure the resolution and DPI of the screen module LCD
  1. SiFli-Wiki /
  2. Software and Hardware Tools Collection /
  3. Screen module调试 /
  4. AdjoinCurrentProjectionBlock /
  5. 为新的屏幕模组添加menuconfig选项

为新的屏幕模组添加menuconfig选项¶

The menuconfig option for the screen module is a comprehensive menu option that combines the screen driver IC, backlight IC, and touch control IC,It specifies which screen IC this module uses, which touch control IC, what type of backlight is used, and also specifies the resolution, DPI, shape and other information of the liquid crystal glass of the module。添加后就可以在工程里面使用这个新的menuconfig菜单选项。

Divided into the following steps in total:

  1. Open the Kconfig_lcd file

  2. Add screen module options

  3. Configure the resolution and DPI of the screen module LCD

1 打开SDK\customer\boards\Kconfig_lcd文件¶

2 Add screen module options¶

  • The general form of the macro for the new screen module is LCD_USING_AAA_BBB_CCC, AAA is the manufacturer of the module, BBB is the model of the module, CCC is the number and manufacture date of the module, etc.,这些信息在模组厂提供的屏幕模组信息里面有。

  • 屏幕模组的名称,尽量写上尺寸,接口类型,模组厂家,模组编号,分辨率,等信息

        config LCD_USING_TFT_AH034A01ZJINV4C30            <<<<<<新的屏幕模组的宏,不能跟其他的有重名
            bool "3.4 round DSI Video TFT LCD(800x800)"   <<<<<<屏幕模组的名称,在menuconfig中显示的名称
            select TSC_USING_GT911 if BSP_USING_TOUCHD    <<<<<<<模组使用的TP的IC宏
            select LCD_USING_NV3051F1                     <<<<<<模组使用的屏驱IC宏
            select BL_USING_AW9364                        <<<<<<可选项,选择背光驱动 见注3 
            select BSP_USING_ROUND_TYPE_LCD               <<<<<<可选项,建议圆形屏幕添加,方形屏幕可删除这行
            select BSP_LCDC_USING_DSI_VIDEO               <<<<<<见注1
            depends on BSP_SUPPORT_DSI_VIDEO              <<<<<<可选项,见注2

注1: Specifies what interface type the screen uses, supports the following options:

宏定义

屏驱接口类型

BSP_LCDC_USING_SPI_NODCX_1DATA

3SPI 1DATA(代表3线SPI,使用1根数据线,下同)

BSP_LCDC_USING_SPI_NODCX_2DATA

3SPI 2DATA

BSP_LCDC_USING_SPI_DCX_1DATA

4SPI 1DATA

BSP_LCDC_USING_SPI_DCX_2DATA

4SPI 2DATA

BSP_LCDC_USING_QADSPI

4SPI 4DATA,目前比较常用的QSPI接口

BSP_LCDC_USING_DDR_QADSPI

4SPI 4DATA DDR(QSPI的接口基础上,使用双沿通信)

BSP_LCDC_USING_DBI

DBI

BSP_LCDC_USING_DSI

DSI Command

BSP_LCDC_USING_DSI_VIDEO

DSI Video

BSP_LCDC_USING_DPI

DPI(RGB)

BSP_LCDC_USING_JDI_PARALLEL

JDI 并口

注2: Optional, depending on whether the current development board supports this type of interface, to decide whether to display the menuconfig option。 支持的选项如下(其他接口默认都支持,可以不设置):

宏定义

屏驱接口类型

BSP_SUPPORT_DSI

DSI Command

BSP_SUPPORT_DSI_VIDEO

DSI Video

BSP_SUPPORT_DPI

DPI(RGB)

注3: Optional, backlight drive only applies to screen modules with backlight. If AMOLED screens do not need backlight, it can be unset 支持的选项如下:

宏定义

屏驱接口类型

BL_USING_AW9364

使用AW9364背光芯片

LCD_USING_PWM_AS_BACKLIGHT

直接使用芯片的PWM驱动背光

3 Configure the resolution and DPI of the screen module LCD¶

  • The resolution is relatively easy to find in the module manual

  • The value of DPI (Dot Per Inch, sometimes called PPI - Pixel Per Inch) may need to be calculated based on the physical size and resolution of the screen。But this value will not affect the lighting of the screen, usually this value will be used at the UI layer。

    config LCD_HOR_RES_MAX
        int
        default 368 if LCD_USING_ED_LB55DSI17801
        default 368 if LCD_USING_ED_LB55DSI17801_QADSPI
        ...
	    default 800 if LCD_USING_TFT_AH034A01ZJINV4C30  <<<<<<新增项,前面的数字代表水平分辨率是800

    config LCD_VER_RES_MAX
        int
        default 448 if LCD_USING_ED_LB55DSI17801
        default 448 if LCD_USING_ED_LB55DSI17801_QADSPI
        ...
        default 800 if LCD_USING_TFT_AH034A01ZJINV4C30   <<<<<<新增项,前面的数字代表垂直分辨率是800

config LCD_DPI
        int
        default 315 if LCD_USING_ED_LB55DSI17801
        default 315 if LCD_USING_ED_LB55DSI17801_QADSPI
        ...
        default 235 if LCD_USING_TFT_AH034A01ZJINV4C30  <<<<<<新增项,前面的数字代表DPI值是235





Previous
Add a new TP driver
Next
Use the new screen module

2025, SiFli

Made with Sphinx and Shibuya theme.