At the end of this lesson, you will be able to:
create a program that will make a single LED light up
making a single LED light up, on a breadboard
now we need to power the LED, not with 3.0 V but with a "digital write" pin from the Micro:bit that we can turn on (3.0 V) and off (0.0 V)
when we hit A, turn on
when we hit B, turn off
to do this we need to set a pin to "digital out":
we will use pin 16
build the above
click on provided link to create a new GitHub repo
call the repo: TEJ2O.1-Unit2-06
create a program that will do the following:
when the user clicks the "A" button, the Micro:bit powers on a single LED on a breadboard
when the user clicks the "B" button, the Micro:bit powers off a single LED on a breadboard
do the above assignment but in Python
Click the "A" button to turn pin 16 toĀ +3.0 V.
Click the "B" button to turn pin 16 to 0 V.