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