LED Switching
Last updated
Last updated
In this lesson we will learn how to switch two LED’s on and off one at a time. It will work in the following sequence
Turn Red LED ON
Wait for 1 second
Turn Red LED OFF and Yellow LED ON
Wait for 1 second
Run the above code for 8 times.
Please ensure that you have mBlock setup on you computer. Click here to setup mBlock
You purchased your Arduino kit from here
You will need the following parts:
1x arduino uno
1x arduino USB Cable
1x Breadboard
3x Jumper Wire
2x LED (RED and Yellow)
2x Resistor
Ensure that the LED are the right way around, with the longer positive leads (anodes) to the left.
Launch the mBlock IDE (https://ide.mblock.cc/#/) and select the Arduino Uno Device and install the Kids Code Extension