Hardware Reference
In-Depth Information
tem. This particular function takes two arguments: the value of the pin to be set and the
INPUT
or
OUTPUT
state. In this case, you want pin
13
(the value stored in LED) to be an
OUTPUT. The GPIO pin on Arduino can be configured as input or output, that is, they
can either accept or send a signal.
Now you can compile and verify your code. However, save your code under the file name
first. To do this, click on
File
and then click on
Save As...
. This will open a dialog win-
dow, enter first, and then click on
Save
. Your IDE should now look something like this: