(4) Lanqiao Cup Embedded-LCD

(1) Commonly used functions

void STM3210B_LCD_Init(void); // LCD LCD initialization
void LCD_Clear(u16 Color); //Change background color
void LCD_SetTextColor(vu16 Color); //Change font color
void LCD_SetBackColor(vu16 Color); //Change font background color
void LCD_ClearLine (u8 Line); // Clear line
void LCD_DisplayStringLine(u8 Line, u8 *ptr); // Line display string

(1) How to use void LCD_DisplayStringLine(u8 Line, u8 *ptr); to display variables

1. Include the stdio.h header file
2. Define an array (used by the spintf function)
3. Usage of spintf
Insert picture description here

Guess you like

Origin blog.csdn.net/m0_46278925/article/details/113342827