Two are better than one.
So let’s add a second button to your circuit and program that new input.
First, make a copy of your Tinkercad circuit that has one button and three LEDs. Click here to learn how to make a copy of an entire circuit.
- Add a second button to your duplicate circuit. You can wire the new button next to your original button.
- In your program, add the second button as a new input with it’s own variable.
- Change your program so that pressing the second button will make the the LEDs blink in a different pattern from the first button.
- Use the Serial Monitor to have your code show this info:
-that the first button was pressed
-that the second button was pressed
-each time one of the LEDs turns on
This is what Serial Monitor looks like when press the first button:
