After class, I completed this week's lab today.

d509d93304a33be8bdb18098fe119ca3.jpg

image.png

Button connection breadboard

image.png

d82025a2590e0da5bf008737895b3481.jpg

Arduino Nano connected to the button and two LEDs

fad019b5065855e61072c490cac1093a.jpg

The two lights need to be connected with a 220Ω resistor.

af4906b88b6601102cf49586f3ffed9a.jpg

image.png

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

8ecad7560d8db1a9f58ab80bf463ab57.mp4