View Single Post
Old 28-10-2009, 12:50 PM   #29
popeye_ts22
Đệ tử 2 túi
 
popeye_ts22's Avatar
 
Tham gia ngày: Jul 2008
Nơi Cư Ngụ: Hà Nội
Bài gửi: 42
:
Send a message via Yahoo to popeye_ts22
Smile Edit thư viện Xlcd

Code:
OpenXLCD(EIGHT_BIT & TWO_LINE & SEG1_50_SEG51_100
             & COM1_COM16);    //Khoi tao lcd
Không biết LCD Type ở đây là gì,không hiểu sao C30 toàn báo lỗi.
Code:
LCD162.c: In function 'main':
LCD162.c:9: warning: implicit declaration of function 'OpenXLCD'
LCD162.c:9: error: 'EIGHT_BIT' undeclared (first use in this function)
LCD162.c:9: error: (Each undeclared identifier is reported only once
LCD162.c:9: error: for each function it appears in.)
LCD162.c:9: error: 'TWO_LINE' undeclared (first use in this function)
LCD162.c:10: error: 'SEG1_50_SEG51_100' undeclared (first use in this function)
LCD162.c:10: error: 'COM1_COM16' undeclared (first use in this function)
LCD162.c:11: warning: implicit declaration of function 'PutsXLCD'
LCD162.c:13: warning: implicit declaration of function 'SetDDRamAddr'
LCD162.c:15: warning: implicit declaration of function 'DelayMs'
LCD162.c:23:2: warning: no newline at end of file
Thư viện Xlcd có dùng cho PIC24F được không ạ, khi mà bỏ hết #ifdef_RD10
__________________
Best Regard.
popeye_ts22 vẫn chưa có mặt trong diễn đàn   Trả Lời Với Trích Dẫn