|
void setup() {
/*
pinMode(6,OUTPUT);
pinMode(7,OUTPUT);
pinMode(8,OUTPUT);
pinMode(9,OUTPUT);
pinMode(10,OUTPUT);
pinMode(11,OUTPUT);
*/
for(int i=6;i<=11;i++)
{
pinMode(i,OUTPUT);
}
}
void loop() {
digitalWrite(6,LOW);
digitalWrite(7,HIGH);
delay(200);
digitalWrite(7,LOW);
digitalWrite(8,HIGH);
delay(1000);
digitalWrite(8,LOW);
digitalWrite(9,HIGH);
delay(1000);
digitalWrite(9,LOW);
digitalWrite(10,HIGH);
delay(1000);
digitalWrite(10,LOW);
digitalWrite(11,HIGH);
delay(1000);
digitalWrite(11,LOW);
digitalWrite(6,HIGH);
delay(1000);
}
一起学习 q:1269107076 |
|