加上这段程序后,报错
void ShowPicture(unsigned int stx,unsigned int sty,unsigned int Width,unsigned int Hight,unsigned char code *address)
{
unsigned int i,j;
unsigned int x,y,iPOS;
Width=Width/8;
iPOS=0;
for(j=0;j<Hight;j++)
{
x=stx;
y=sty+j;
for(i=0;i<Width;i++)
{
x=s_x+i*8;
LCD_put8pixel(x,y,address[iPOS]);
iPOS++;
}
}
}
错误为:
Error [194] H:\PIC\testRD\lcd.h; 22.116 ")" expected
Warning [356] H:\PIC\testRD\LCD.C; 164.8 implicit conversion of float to integer
Warning [356] H:\PIC\testRD\LCD.C; 172.8 implicit conversion of float to integer
Warning [356] H:\PIC\testRD\LCD.C; 185.8 implicit conversion of float to integer
Warning [356] H:\PIC\testRD\LCD.C; 193.8 implicit conversion of float to integer
Error [194] H:\PIC\testRD\LCD.C; 230.109 ")" expected
Warning [374] H:\PIC\testRD\LCD.C; 236.6 missing basic type; int assumed
Error [188] H:\PIC\testRD\LCD.C; 236.14 constant expression required
Warning [374] H:\PIC\testRD\LCD.C; 237.5 missing basic type; int assumed
Error [984] H:\PIC\testRD\LCD.C; 237.5 type redeclared
Error [285] H:\PIC\testRD\LCD.C; 239.1 no identifier in declaration
Warning [374] H:\PIC\testRD\LCD.C; 239.1 missing basic type; int assumed
Error [314] H:\PIC\testRD\LCD.C; 239.1 ";" expected
Warning [374] H:\PIC\testRD\LCD.C; 239.10 missing basic type; int assumed
Error [314] H:\PIC\testRD\LCD.C; 239.10 ";" expected
Warning [374] H:\PIC\testRD\LCD.C; 239.18 missing basic type; int assumed
Error [314] H:\PIC\testRD\LCD.C; 239.18 ";" expected
Warning [374] H:\PIC\testRD\LCD.C; 242.2 missing basic type; int assumed
Error [984] H:\PIC\testRD\LCD.C; 242.2 type redeclared
Error [192] H:\PIC\testRD\LCD.C; 242.3 undefined identifier "sty"
Error [188] H:\PIC\testRD\LCD.C; 242.8 constant expression required
Error [285] H:\PIC\testRD\LCD.C; 243.1 no identifier in declaration
Warning [374] H:\PIC\testRD\LCD.C; 243.1 missing basic type; int assumed
Error [314] H:\PIC\testRD\LCD.C; 243.1 ";" expected
Warning [374] H:\PIC\testRD\LCD.C; 243.10 missing basic type; int assumed
Error [314] H:\PIC\testRD\LCD.C; 243.10 ";" expected
Warning [374] H:\PIC\testRD\LCD.C; 243.18 missing basic type; int assumed
Error [314] H:\PIC\testRD\LCD.C; 243.18 ";" expected
Error [188] H:\PIC\testRD\LCD.C; 246.31 constant expression required
Error [984] H:\PIC\testRD\LCD.C; 246.33 type redeclared
Error [313] H:\PIC\testRD\LCD.C; 246.33 function body expected
Warning [374] H:\PIC\testRD\LCD.C; 247.5 missing basic type; int assumed
Error [984] H:\PIC\testRD\LCD.C; 247.5 type redeclared
Error [314] H:\PIC\testRD\LCD.C; 247.5 ";" expected
Error [285] H:\PIC\testRD\LCD.C; 248.1 no identifier in declaration
Advisory[1] too many errors (21)
Make: The target "H:\PIC\testRD\pic1.p1" is up to date.
Make: The target "H:\PIC\testRD\pic2.p1" is up to date.
********** Build failed! ********** |