O'Reilly logo

Arduino Robotic Projects by Richard Grimmett

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The Arduino IDE and LED code

To create the LED code, start the Arduino IDE. Then, recall the code you wrote in Chapter 1, Powering on Arduino. The IDE should look like the following screenshot:

The Arduino IDE and LED code

In this code, setting led 13 lit the orange LED on the board. It turns out that the led output pin 13 is also the connection to pin 13 on the connector of the Arduino Uno. If you upload and run this program, the LED connected to pin 13 should flash at the same rate as the LED on the Arduino Uno, as shown in the following image:

The Arduino IDE and LED code

You'll need to add a similar bit ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required