External¶
This section uses the display driver nv3051f1, TP driver gt911, and backlight driver nw9527 as examples to add a new display using the display driver external method. Refer to the following for details:
Copy Similar Display Driver Code and Add It to the Build¶
First, in the SDK\customer\peripherals directory, find a similar adapted display driver,
Copy the entire directory to the external display driver folder, and rename the directory to “nv3051f1”
Also rename the display driver .c file inside to nv3051f1.c, and modify its contents.
Change the depend macro in the SConscript file inside to the previously added
LCD_USING_NV3051F1, so that the newly added file is included in the build.
Copy Similar TP Driver Code and Add It to the Build¶
First, in the SDK\customer\peripherals directory, find a similar adapted TP driver,
Copy the entire directory to the external display driver folder, and rename the directory to “gt911”
Also rename the display driver .c/.h files inside to gt911.c/.h, and modify their contents.
Change the depend macro in the SConscript file inside to the previously added
TSC_USING_GT911, so that the newly added file is included in the build.
Copy Similar Backlight Driver Code and Include It in the Build¶
First, in the SDK\customer\peripherals directory, find the aw9364 directory,
Copy the entire directory to the external display driver folder, and rename the directory to “nw9527”
Rename the driver .c file inside to nw9527.c, and modify its contents.
Change the depend macro in the SConscript file inside to the previously added
BL_USING_NW9527, so that the newly added file is included in the build
Note: Change the driver name here to the corresponding display driver name. Add whichever driver is needed (display driver, TP, or backlight)