|
|
1 week ago | |
|---|---|---|
| docs | 1 month ago | |
| .gitignore | 1 month ago | |
| LICENSE | 1 month ago | |
| README.md | 1 month ago | |
| README_zh.md | 1 month ago | |
| SConscript | 1 month ago | |
| lcd_spi_driver.c | 1 month ago | |
| lcd_spi_driver.h | 1 week ago |
English | 中文
github: PeakRacing/lcd_spi_driver (recommend)
gitee: PeakRacing/lcd_spi_driver (updates may not be timely due to synchronization issues)
Driver Support:
[x] ST7789V2
[x] ST7735S
[x] ST7796S
[x] ILI9341
[x] ILI9486
[x] GC9A01
[x] NV3030B
Note: If the LCD you are using is not on the driver support list, you can submit an issue for support, and you need to provide the manual or the original driver.
Enter menuconfig in the Env command line to access the configuration interface and configure the project.
Check to enable the package: T-Thread online packages → peripheral libraries and drivers → [*] The lcd spi driver
Configure according to your own LCD
LCD Model(Select LCD driver)
SPI Bus Name(LCD SPI Bus Nam)
SPI Device Name(LCD SPI Device Name)
SPI Frequency(SPI Frequency)
SPI Chip Select Pin(CS Pin)
LCD Data Select Pin(DC Pin)
LCD Reset Pin(RES Pin)
These items are required configurations
Then go into LCD Configuration settings
Question: What should I do if the colors are abnormal?
Answer: Check whether endian conversion is needed, BGR format, and inversion.
Q: What should I do if it cannot display in full screen?
A: Check if an offset needs to be set (you can check the original code provided by the screen manufacturer to see if there are any addition or subtraction offset operations in the parameters sent with commands 0x2A and 0x2B).
Q: Why can't I find the package?
A:Run pkgs --upgrade to update the latest package index
Non-technical support, only for the purpose of interest exchange.