External¶
Overview¶
Mainly used for repositories of SDK 2.4 and later. This method is recommended: place the display driver outside the SDK to run, and create a new display driver.
Directory structure¶
Here, the sf32lb52-lcd_n16r8 board, display module (nv3051f display driver + gt911 touch driver), and aw9364 backlight driver chip are used as examples:
nv3051f_driver
│
├──NV3051F
│ ├──nv3051f
│ │ ├──nv3051f #屏驱的实现
│ │ └──SConscript #编译链接文件
│ │
│ ├──gt911 #gt911触控驱动的目录
│ │ ├──gt911.c #触控驱动的c文件
│ │ ├──gt911.h #触控驱动的头文件
│ │ └──SConscript #编译链接文件
│ │
│ ├──aw9364 #aw9364背光驱动芯片,背光设备“lcdlight”
│ │ ├──aw9364.c #背光驱动芯片的c文件
│ │ ├──aw9364.h #背光驱动芯片的头文件
│ │ └──SConscript #编译链接文件
│ │
│ ├──project
│ │ └──Kconfig.proj #屏幕模组的menuconfig菜单定义和屏驱IC、触控IC、背光IC的宏定义处
│ │
│ └──src
│ ├──main #屏幕调试工程, 调用“lcd”和“touch"设备
│ └──SConscript #编译链接文件
│
└──SiFli-SDK
Pull the SiFli-SDK repository code.¶
First install the required environment. You can refer to Quick Start. If you have already installed the environment, you can directly pull the SDK repository code.