Lesson goal: Turn an LED on or off using an Arduino

Home

This lesson will show you how to turn an LED on the Arduino on and off.
pinmode(pin,direction)
digitalwrite(pin,level)
Move the mouse over a dotted box for more information.

Now you try. Can you figure out how to turn the LED on? Off?

Type your code here:


See your results here: