سلام
من نمی دونم چرا این برنامه هی ارور می ده اگه میشه راهنمایی کنید ممنون میشم.
من نمی دونم چرا این برنامه هی ارور می ده اگه میشه راهنمایی کنید ممنون میشم.
کد:
#include <AT91SAM7X256.H> #include "lib_AT91SAM7X256.H" #include "usart.h" #include "delay.h" #include "tftlcd_functions.h" #include <stdio.h> #define family_sam7x //TFTLCD pins definition #define TFTLCD_DATAPORT_B #define TFTLCD_DATAPORT_OFFSET 0 #define TFTLCD_CONTROLPORT_A #define TFTLCD_RST 7 #define TFTLCD_RS 4 #define TFTLCD_CS 2 #define TFTLCD_WR 3 #define TFTLCD_RD 13 #define PORTRAIT int main (void) { char v [100]; char b [100]; int color=RED; delay_s(1); usart0_init(2,9600)کککککک;//USART0 tftlcd_init(); tftlcd_clear(); for(int i=0;i<=3;i=i+1) { sprintf(b,"Please wait."); tftlcd_puts(b,color,BLACK,0); delay_ms(200); sprintf(b,"please wait.."); tftlcd_puts(b,color,BLACK,0); delay_ms(200); sprintf(b,"please wait..."); tftlcd_puts(b,color,BLACK,0); delay_ms(200); } while (1) { tftlcd_clear(); sprint(b,"Data ricived completely"); tftlcd_puts(b,color,BLACK,0); delay_s(1); v=getkey(); tftlcd_puts(v,color,BLACK,0); delay_ms(100); } }
دیدگاه