Google Chat: zj734465502@gmail.com
+86-0755-88291180
sales01@spotpear.com
dragon_manager@163.com
services01@spotpear.com
manager01@spotpear.com
WhatsApp:13246739196
The file corresponding to the upper script package is:
\script\demo\ui\color_standard_spi_st7735.lua Used with SPI bus
\script\demo\ui\color_lcd_spi_st7735.lua Used with LCD bus
Select ST7735 driver in lcd.lua
Color_standard_spi_st7735.lua is the screen parameter configuration file.
STM32 code:
ST7735_1.8LCD.zip
Module reference size
m_lcd_128x160_st7735.pdf
m_lcd_128x160_st7735.dwg
White edges appear on the screen, which is mainly caused by different batches of screens, such as V1.1 version of M_TFT_LCD_128X160_8P module, and the screen driver is actually ST7735S.
Modify the axis offset parameter in the color_lcd_spi_st7735.lua script file and set the offset to 0, as shown in the following figure.
Modify the LCD_Address_Set function of lcd_init.c so that x1, y1, x2 and y2 can be displayed normally without adding or subtracting any numbers, as shown below:
Display effect after modification: