|
本帖最后由 yinnan128 于 2021-3-5 20:34 編輯
對(duì)著視頻教程編寫的,為什么視頻里編譯的時(shí)候沒有錯(cuò)誤,我的就不行呢?網(wǎng)上查說(shuō)101和141提示是有中文標(biāo)點(diǎn),但我調(diào)成英文輸入法全部重新輸入還是不行
單片機(jī)源程序如下:
- void LCDShowStr(unsigned char x,unsigned char y,unsigned char *str)
- {
- if(0 == y)
- {
- LCDWriteCmd(0X80 | x);
- }
- else
- {
- LCDWriteCmd(0X80 | (0x40 + x));
- }
- while(*str ! = ' \0')
- {
- LCDWriteData(*str++);
- }
復(fù)制代碼
compiling LCD1602.c...
LCD1602.c(60): error C141: syntax error near '!'
LCD1602.c(60): error C141: syntax error near '='
LCD1602.c(60): error C101: '' ': invalid character constant
LCD1602.c(60): error C141: syntax error near '\'
LCD1602.c(60): error C101: '')': invalid character constant
LCD1602.c(60): error C141: syntax error near '')'
LCD1602.c(61): error C141: syntax error near '{'
LCD1602.c - 7 Error(s), 0 Warning(s).
|
-
1.jpg
(72.14 KB, 下載次數(shù): 45)
下載附件
2021-3-5 20:12 上傳
視頻教程
-
2.jpg
(129.59 KB, 下載次數(shù): 40)
下載附件
2021-3-5 20:12 上傳
我寫的代碼
|