感谢楼主分享。这个我试过了,可以使用 |
void Ini_Lcd( void ) { Port_init_12864(); /* 液晶控制端口设置为输出 */ LCD_write_com( 0x30 ); /* 基本指令集 */ Delay_1ms(); LCD_write_com( 0x02 ); /* 地址归位 */ Delay_1ms(); LCD_write_com( 0x0c ); /* 整体显示打开 , 游标关闭 */ Delay_1ms(); LCD_write_com( 0x01 ); /* 清除显示 */ Delay_1ms(); LCD_write_com( 0x06 ); /* 游标右移 */ Delay_1ms(); LCD_write_com( 0x80 ); /* 设定显示的起始地址 */ } 你的初始化和别人的差异好大,这个有影响吗? |
这个验证过了吗? |
感谢分享 |
你们有花屏的情况吗 |
好资料,正在学12864,太及时了,谢谢LZ |
太好了,支持!谢谢楼主! |
void TransferData(char data1,bit DI) //传送数据或者命令,当DI=0是,传送命令,当DI=1,传送数据. { WRD=0; RS=DI; delay(1); P2=Convert(data1); E=1; delay(1); E=0; },,感觉应该是先 E=1;P2=Convert(data1); delay(1); E=0; |
这个程序LCD读写不会出错吗?TransferData(char data1,bit DI) ,我看时序图, |