-----------------------------------
int solenoid = 13;
int tempo = 100;
void setup(){
pinMode(solenoid,OUTPUT);
}
void loop(){
for (int k=0; k<3; k++){
for (int i=0;i<3;i++){
digitalWrite(solenoid,HIGH);
delay(tempo);
digitalWrite(solenoid,LOW);
delay(tempo);
}
delay(tempo*3);
}
digitalWrite(solenoid,HIGH);
delay(tempo);
digitalWrite(solenoid,LOW);
delay(tempo);
delay(tempo*9);
}
-------------------------------
0 件のコメント:
コメントを投稿