Browsing this Thread:
1 Anonymous Users
|
Re: 用開關控制矩陣在LCD顯示
|
|
版主
Joined
: 2004/4/30 10:53 最後登入時間
: 2021/11/30 18:11
From CAE, Microchip
Group:
站務管理者 註冊會員
Level : 75 HP : 744 / 1861 MP : 5367 / 109760 EXP : 45
|
同一問題請不要開新的討論,這樣會弄混的。
已經移往之前的題目區。
發表於: 2008/8/5 9:20
|
|
|
用開關控制矩陣在LCD顯示
|
|
新會員
Joined
: 2008/7/30 17:03 最後登入時間
: 2008/11/11 0:20
Group:
註冊會員
Level : 3 HP : 0 / 52 MP : 6 / 2433 EXP : 9
|
動作說明: 先在矩陣中存入要的數字或字母 , 然後按開關在LCD會依序出現 2 4 6 8 , 但打出來卻亂碼在跳 ,不知哪寫錯了,請各位大大指教~
putcLCD(z); <=g是這句語法錯誤嗎? 因為z為變數
////////////////////////////////////////
#include <p30F4011.h> #include "C30EVM_LCD.h" int main( void ) { LATE=0xffff; ADPCFG=0Xffff; TRISE=0xffc0; OpenLCD( ); unsigned char array[2][4]={{'1','3','5','7'},{'2','4','6','8'}}; int y=0; unsigned char z; while(1) { if( PORTEbits.RE8==0 ) { y=y+1; z=array[2][y]; setcurLCD(0,1); putcLCD(z); }
while(PORTEbits.RE8==0); } }
發表於: 2008/8/4 21:53
|
|
You can view topic.
你 不可以 發起新主題
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create PDF files.
You cannot get print page.