int apin=8;int bpin=9;int cpin=10;int dpin=11;int delaytime=2;//延迟,可调整转速voidsetup(){// put your setup code here, to run once:pinMode(apin,OUTPUT);pinMode(bpin,OUTPUT);pinMode(cpin,OUTPUT);pinMode(dpin,OUTPUT);//引脚输出}voidloop(){// put your main code here, to run repeatedly:digitalWrite(apin,HIGH);delay(delaytime);digitalWrite(apin,LOW);digitalWrite(bpin,HIGH);delay(delaytime);digitalWrite(bpin,LOW);digitalWrite(cpin,HIGH);delay(delaytime);digitalWrite(cpin,LOW);digitalWrite(dpin,HIGH);delay(delaytime);digitalWrite(dpin,LOW);}