|
检查了一下发现是读取数据函数的问题unsigned char ReadLcd() { unsigned char dat = 0; while(LcdBusyCheck()); DATA_PORT=0xff; LCD12864_EN=0; LCD12864_RS=1; LCD12864_RW=1; delay(1); LCD12864_EN=1; delay(1); dat=DATA_PORT; delay(1); LCD12864_EN=0; return dat; } 但是不知道怎么纠正 |
可能延时不够,或者打点过程中 被中断打断了 |