Below is the link to my week1 Digital Electronics circuit
https://www.tinkercad.com/things/2HnyPpRjt6N
In my circuit, first I took the first button and made it so that by pressing the button it would make only the yellow LED light up.
Then, I added another button. This button was coded so that by pressing it, it would light both yellow and green LED. However, when this button is not pressed, I coded it so that the green and blue LED would blink on at a time.
Finally, I added a switch that would trigger a red light to turn on when its switched to HIGH.
I wanted to make it so that if the switch was on, the green and blue LEDs would stop blinking and only the red LED would turn on and blink, but I wasn’t able to figure out where to put in the switch code along the “else” code.