Hi Guys,
I am new to arduino so sorry for my stupid question...
i want a button to start a sequence and wenn the sequence is done you can press the button again and it will do the same secquence again and so on.
this is the code i am talking about:
// the setup function runs once when you press reset or power the board
void setup() {
pinMode(13, OUTPUT);
pinMode(12, OUTPUT);
pinMode(11, OUTPUT);
pinMode(10, OUTPUT);
}
void loop() {
digitalWrite(12, HIGH);
delay(1000);
digitalWrite(11, HIGH);
delay(1000);
digitalWrite(10, HIGH);
delay(1000);
digitalWrite(13, HIGH);
delay(1000);
what is the best way to do this??
thanks for you kind help best regards , Pim