![]() |
發布時間: 2023-12-15 17:20
正文摘要:這是lcd的一些函數 void delay(unsigned int xms) //延時// { unsigned char i,j; for(j = 0; j < xms; j++) &nbs ... |
檢查了一下發現是讀取數據函數的問題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; } 但是不知道怎么糾正 |
可能延時不夠,或者打點過程中 被中斷打斷了 |