It seems OP only wants to start the loop with a button.
Try a While() loop at the end of setup().
while(digitalRead(buttonPin)); // connect button between pin and ground, with pull up enabled in pinMode
Leo..
It seems OP only wants to start the loop with a button.
Try a While() loop at the end of setup().
while(digitalRead(buttonPin)); // connect button between pin and ground, with pull up enabled in pinMode
Leo..