Tutorial : Hello world (Blinking LED) - mbats/arduino GitHub Wiki
If you do not know how to create a new project have a look to the tutorial How to create a new project ?.
In this tutorial we will see how to create a blinking LED with the Arduino Designer.
Hardware
In this example we use the Arduino Uno platform and hardware components from the DFRobot Ardublock kit.
The hardware is defined as below :
The DFRduino Uno R3
platform is used and the blue LED
module is connected to the pin 13
of the Arduino board.
Sketch
For the sketch, blinking an LED means :
- wait a certain
delay
- set the blue LED to
ON
- wait again
- set the blue LED to
OFF
- loop...
Upload
Finally, click on the Upload
button from the toolbar to upload the code to the Arduino board.
The source of this example are available in: https://github.com/mbats/arduino/tree/master/examples/fr.obeo.dsl.arduino.examples.helloworld