set running false
start of loop
while running is true //infinite loop doing nothing
end of while
if buttonPin is HIGH
set running true
code to do whatever you want with the LEDs
end of if
end of loop
set running false
start of loop
while running is true //infinite loop doing nothing
end of while
if buttonPin is HIGH
set running true
code to do whatever you want with the LEDs
end of if
end of loop