The method of embedded blue bridge cup to solve the conflict between LED and LCD pin

Open the H file of LCD and
Insert picture description here
find 3 codes about the operation of LCD writing

void LCD_WriteReg(u8 LCD_Reg, u16 LCD_RegValue);
void LCD_WriteRAM_Prepare(void);
void LCD_WriteRAM(u16 RGB_Code);

Then add this sentence at the beginning of each function

	u16 PinC_out = GPIOC->ODR;

Add at the end

	GPIOC->ODR =PinC_out;

Get it done

————————————————————————————————
But later I found that this method did not turn off the light and I do
n’t know Where is the problem, stay here first

Guess you like

Origin blog.csdn.net/m0_46179894/article/details/108902700