本帖最后由 cainiao518 于 2020-3-4 15:15 编辑
STM32F103RCT驱动12864液晶显示正常,换成F103C8T6改了管脚和程序后LCD12864无显示了,会是什么原因呢、?
/*LCD模块初始化*/
void lcd_init(void )
{
RES_L(); /*低电平复位*/
lcd_delay(50);
RES_H(); /*复位完毕*/
lcd_delay(1);
RES_H();
lcd_delay(2);
RES_L();
lcd_delay(2);
RES_H();
lcd_delay(20);
write_com(0xa2); //1/9 Bias
write_com(0xa6); //
write_com(0xa0); //ADC set (SEG)
write_com(0xc8); //COM reves
write_com(0x23); //有效值范围:0X20-0X27粗调 每升高一阶电压增加零点几伏
write_com(0x81); //Electronic Volume Mode Set
write_com(0x2c); //有效值范围:0X00-0X3F微调 每升高一阶电压增加零点零几伏
write_com(0x2c);
lcd_delay(200); //延时200mS
write_com(0x2e);
lcd_delay(200); ////延时200mS
write_com(0x2f); //The Power Control Set
lcd_delay(200); //延时200mS
write_com(0xaf); //Lcd Disply ON
lcd_delay(5);
write_com(0xaf); //Lcd Disply ON
}
|
@dirtwillfly :确实是串口屏,5根控制线的
@cainiao518 :程序要和你的屏配套才行,看你的电路图,你的屏不是普通的并口屏
@dirtwillfly :用原来STM32F103RCT的初始化程序(103RC驱动显示正常)也不行(管脚改成一致)
先调调对比度看看