SKYLAR123 发表于 2021-12-10 11:18
Uchar Out dat a-0xfc, cnt :这个最起码应该是Uchar Outdata=0xfc, cnt;然后Dly05s(); }}你确定编译没有提 ...
复制过来有问题,是这个
#include<reg51. h>
#include<intrins. h>
#include <Dly05s. h>
typedef usigned char Uchar ;
sbit K1=P3 2;
void INT0sev() interrupt 0
{while(K1==0) ;
while(K1==1);
IE0=0;}
void maind
{Uchar Outdata=0xfc, cnt ;
EA=1;
EX0=1;
IT0= 1;
for (cnt=0: cnt<7; cnt1+1)
{P1=0utdata;
Outdata _ crol _(Outdata, 1)
Dly05s();
}} |