After class, I completed this week's lab today.
Button connection breadboard
Arduino Nano connected to the button and two LEDs
The two lights need to be connected with a 220Ω resistor.
I found that tone(3, 440) needs to be followed by a delay to produce sound. Similarly, tone(4, 440) also needs to be followed by a delay to produce sound.
82f743c86982eb3318c375c4a67f46bf.mp4