من tftlcd_functions رو کجا کپی کنم تو پوشه پروژه یا محل نصب کیل
چه طوری به برنامه اضافش کنم #include"" یا #include<>
دمت گرم داداش
من tftlcd_functions رو کجا کپی کنم تو پوشه پروژه یا محل نصب کیل
چه طوری به برنامه اضافش کنم #include"" یا #include<>
دمت گرم داداش
هر دوتا فايل رو تو فولدر پروژه كپي كنيد. تو عكس نشون دادم.
خیلی آقایی
برم ببینم جواب میده
ارور میده
// In The Name Of GOD
#include <AT91SAM7S64.H>
#include <tftlcd_functions.h>
#include <delay.h>
#define PORTRAIT
#define TFTLCD_DATAPORT_A
#define TFTLCD_DATAPORT_OFFSET 0
#define TFTLCD_CONTROLPORT_A
#define TFTLCD_RST 16
#define TFTLCD_RS 17
#define TFTLCD_CS 18
#define TFTLCD_WR 19
#define TFTLCD_RD 20
int main(void)
{
tftlcd_init();
}
فايل هدر رو طبق پست 59 به پروژتون اضافه كنيد.
مشكل حل شده؟ يا هنوزم Error ميده؟
یه لحظه
خوب من اینطوری #include <tftlcd_functions.h>اضافه می کنم و#include <tftlcd_functions.c> رو هم تو پروژه کپی کردم
اونطوری که شما میگی ارورای زیرو میده:
1.c(14): warning: #951-D: return type of function "main" must be "int"
1.c(17): warning: #1-D: last line of file ends without a newline
compiling tftlcd_functions.c...
tftlcd_functions.c(122): error: #20: identifier "_TFTLCD_CONTROLPORT_CODR_" is undefined
tftlcd_functions.c(122): error: #20: identifier "TFTLCD_RS" is undefined
tftlcd_functions.c(123): error: #20: identifier "_TFTLCD_DATAPORT_CODR_" is undefined
tftlcd_functions.c(123): error: #20: identifier "TFTLCD_DATAPORT_OFFSET" is undefined
tftlcd_functions.c(124): error: #20: identifier "_TFTLCD_DATAPORT_SODR_" is undefined
tftlcd_functions.c(125): error: #20: identifier "TFTLCD_CS" is undefined
tftlcd_functions.c(126): error: #20: identifier "_TFTLCD_CONTROLPORT_SODR_" is undefined
tftlcd_functions.c(136): error: #20: identifier "_TFTLCD_DATAPORT_SODR_" is undefined
tftlcd_functions.c(136): error: #20: identifier "TFTLCD_DATAPORT_OFFSET" is undefined
tftlcd_functions.c(137): error: #20: identifier "_TFTLCD_CONTROLPORT_CODR_" is undefined
tftlcd_functions.c(137): error: #20: identifier "TFTLCD_CS" is undefined
tftlcd_functions.c(138): error: #20: identifier "_TFTLCD_CONTROLPORT_SODR_" is undefined
tftlcd_functions.c(147): error: #20: identifier "_TFTLCD_DATAPORT_ODR_" is undefined
tftlcd_functions.c(147): error: #20: identifier "TFTLCD_DATAPORT_OFFSET" is undefined
tftlcd_functions.c(148): error: #20: identifier "_TFTLCD_CONTROLPORT_CODR_" is undefined
tftlcd_functions.c(148): error: #20: identifier "TFTLCD_RD" is undefined
tftlcd_functions.c(149): error: #20: identifier "_TFTLCD_CONTROLPORT_SODR_" is undefined
tftlcd_functions.c(149): error: #20: identifier "TFTLCD_WR" is undefined
tftlcd_functions.c(150): error: #20: identifier "TFTLCD_CS" is undefined
tftlcd_functions.c(151): error: #20: identifier "_TFTLCD_DATAPORT_PDSR_" is undefined
tftlcd_functions.c(155): error: #20: identifier "_TFTLCD_DATAPORT_OER_" is undefined
tftlcd_functions.c(216): error: #20: identifier "AT91C_PMC_PCER" is undefined
tftlcd_functions.c(216): error: #20: identifier "_TFTLCD_DATAPORT_ID_" is undefined
tftlcd_functions.c(216): error: #20: identifier "_TFTLCD_CONTROLPORT_ID_" is undefined
tftlcd_functions.c(217): error: #20: identifier "_TFTLCD_DATAPORT_PER_" is undefined
tftlcd_functions.c(217): error: #20: identifier "TFTLCD_DATAPORT_OFFSET" is undefined
tftlcd_functions.c(218): error: #20: identifier "_TFTLCD_DATAPORT_OER_" is undefined
tftlcd_functions.c(219): error: #20: identifier "_TFTLCD_DATAPORT_PUER_" is undefined
tftlcd_functions.c(220): error: #20: identifier "_TFTLCD_CONTROLPORT_PER_" is undefined
tftlcd_functions.c(220): error: #20: identifier "TFTLCD_RST" is undefined
لطفا تمام پروژتو(فولدر N96 lcd)رو بذار تا منم كامپايل كنم ببينم مشكل از كجاس
csfsjhiojkvc
داداش اگه ارور نداد پروژتو بده که من ببینم ارور میده
دمت گرم
ارور داد؟
اجازه بديد كه كامل ببينم باشه نتيجه رو اطلاع ميدم.
چشم ممنون که چند ساعت منو راهنمایی کردی
من هستم هر وقت خواستی نتیجه رو بزار
مثل شکل زیر جای #ifdef LANDSCAPE رو عوض کردم error نگرفت ام نمیدونم کار میکنه یا نه.
با سلام
تست كردين؟ كار ميكنه؟ البته حالتlandscape و portrait مربوط به نحوه قرار گرفتن نشون دادن اطلاعات روي lcd ميشه.
دوست عزيز من اين LCD رو با AVR راه اندازي كردم اما هنوز به اون صورت فرصت پيدا نكردم با ARM راه اندازيش كنم.
ویرایش توسط sadmonew : 30-10-2011 در ساعت 20:46