Tinkercad Link: https://www.tinkercad.com/things/gdieL3XfTLq
What I Did:
I added an additional button that triggers the 4 LED’s one at a time with the delay increasing by 100 ms for each.
I added a red LED that stays on unless one of the buttons are pressed (matching the yellow LED).
I changed the delay of the LEDs controlled by button 1 from 500 ms to 250 ms.
I added a slide switch that when on, keeps all 4 LEDs lit (and the buttons keep the same function).
What I Attempted:
I tried to include a potentiometer to change the delay of the blinking LEDs, but I could not figure out the code.
I also tried to have the switch control the entire void loop, so when it was off nothing would happen even when buttons were pressed, though I couldn’t quite figure out the code for that either.