打印

大家帮忙看一下PIC18F8527

[复制链接]
3400|1
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
庄庄|  楼主 | 2010-9-18 21:22 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
加上这段程序后,报错
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! **********
沙发
yewuyi| | 2010-9-20 08:58 | 只看该作者
你某个地方输入错了。

重点检查},);这些关键符号的输入错误。

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

个人签名:本人QQ群:35882490,职业:单片机开发 工作地点:西安

33

主题

205

帖子

1

粉丝