Instructions

www.joy-it.net
Pascalstr. 8 47506 Neukirchen-Vluyn
Lesson 6: Key-controlled LED
I/O-Port is an interface, which can be used as input and output. So far,
we've only used it as the output. In this experiment we will try to use the
input to read the output value of the connected device. We will use a key
as input and a LED as output to get a better understanding of the I/O
functions.Key switches, which many people probably know, have a
switching value (digital value). When the switch is pressed, the circuit
closes and is in a conducting state.
For this we need:
1x
Mega2560 board
1x
USB cable
1x
Red M5 LED
1x
220 Ω resistor
1x
10 kΩ resistor
1x
Key switch
1x
Breadboard
6x
Jumper cable