LEDGQ.C(10): error C129: missing ';' before '_at_0x003b'

段氏 2015-07-14 07:03:55
#define uchar unsigned char
#define uint unsigned int
#define ulong unsigned long
#include<reg52.h>
char code dx516[3]_at_0x003b ;
#define WriteDeviceAddress 0xa0
#define ReadDviceAddress 0xa1
sbit SCL=P2^7;
sbit SDA=P2^6;
sbit P10=P1^0;
void delayms(uint x)
{
uchar temp;
for(; x!=0;x--)
{
for(temp=112;temp!=0;temp--);
}
}
void Start()
{
SDA=1;
SCL=1;
SDA=0;
SCL=0;
}
void Stop()
{
SCL=0;
SDA=0;
SCL=1;
SDA=1;
}
bit TestAck()
{
bit ErrorBit;
SDA=1;
SCL=1;
Errorbit=SDA;
SCL=0;
return(ErrorBit);
}
Write8Bit(uchar input)
{
uchar temp;
for(temp=8;temp!=0;temp--)
{
SDA=(bit)(input&0x80);
SCL=1;
SCL=0;
input=input<<1;
}
}
void Write24c02(uchar ch,uchar address)
{
Start();
Write8Bit(WriteDevice Address);
TestAck();
Write8Bit(adress);
TestAck();

Write8Bit(ch);
TestAck();
Stop();
delayms(10);
}
uchar code dami[]={"321-|3.2_1-|3231|3_6.5|3_5_665|65-3_2_|122_3_2|12--|"} ;
void main(void)
{
uchar i;
for(i=0;dami[i]!=0;i++)
{
Write24c02(dami[i],i);
}
Wriet24c02(0x00,i);
P10=0;
while(1);
}
...全文
464 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

3,423

社区成员

发帖
与我相关
我的任务
社区描述
其他开发语言 其他开发语言
社区管理员
  • 其他开发语言社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧