本人是初学者,初学
单片机点阵程序,怎么也看不出哪里出现问题。。??求高手赐教!!!谢谢!!!
#include<reg52.h>
#define unchar unsigned char
#define unit unsigned int
void delay(unit a)
{while(a--);}
unchar table1[]={0xfe,0xfd,0xfb,0xf7,0xef,0fdf,0x7f}
unchar table2[]={0x00,0x00,0x3e,0x41,0x41,0x41,0x3e,0x00}
void main( )
{ unchar i;
while(1)
{for(i=0;i<8;i++)
{P0=table[i];
P2=table2[i];
delay(40);}
} }
YIGEDAN.C(9): error C141: syntax error near '{'
YIGEDAN.C(10): error C141: syntax error near 'while'
YIGEDAN.C(10): error C141: syntax error near '1'
YIGEDAN.C(11): error C141: syntax error near '=', expected ')'
YIGEDAN.C(11): error C129: missing ';' before '<'
Target not created
一周热门 更多>