Hardware Reference
In-Depth Information
It might be helpful to show you what happens when you make a mistake. If I type
LO
in-
stead of
LOW
in the second
digitalWrite(led, LO);
function and tried the upload,
I would see something like the following screenshot:
Note
Note that the yellow band shows me the line I mistyped, and tells me:
'LO' was not de-
clared in this scope
. Misspellings are one of the biggest reasons why your code might not
compile, so check your spellings when you see something like this.
You now know the details behind your first sketch! Play with different values of the argu-
ment in the
delay(1000)
function, and your LED should flash at different rates.