Hardware Reference
In-Depth Information
You have added the digitalWrite(led, HIGH); statement to your loop. This is
another function that is available from the standard Arduino library. This will, each time
through the loop, tell the pin 13 (defined with the pinMode(led, OUTPUT); state-
ment) to go high or low. Save your file, and this time you can compile and upload your
code by navigating to File | Upload . You can also use the Upload button.
This selection will compile your code and upload it to Arduino. If everything went as it
should, your Arduino's orange LED should be solidly lit. Now, you can add a bit more
code to make it blink. Change your code and add the following lines of code to the
loop() function:
Search WWH ::




Custom Search