[#ARDUINO] Hello world


as we are in Seattle, next to the offices of Microsoft, the best thing we can do is get to program in C a couple of Arduinoboards. This is very simple, you desembolsas the €20, which leaves a plate, for example the Arduino UNO, you install the IDE for programming and ready.

In coming posts ire detailing step by step how to recognize the COM port where you can connect and download programs, such as debug, and even more > how to use Visual Studio 2012 to work with Arduino. For now I just leave these lines of code to which makes is

  • In the Setup() method to initialize our program you need
  • In the Loop() method, run the script that will be executed over and over during the time he is ON the arduino
   1: /*
   2:   Blink
   3:   Turns on an LED on for one second, then off for one second, repeatedly.
   5:   This example code is in the public domain.
   6:  */
   8: // Pin 13 has an LED connected on most Arduino boards.
   9: // give it a name:
  10: int led = 13;
  12: // the setup routine runs once when you press reset:
  13: void setup() {                
  14:   // initialize the digital pin as an output.
  15:   pinMode(led, OUTPUT);     
  16: }
  18: // the loop routine runs over and over again forever:
  19: void loop() {
  20:   digitalWrite(led, HIGH);   // turn the LED on (HIGH is the voltage level)
  21:   delay(1000);               // wait for a second
  22:   digitalWrite(led, LOW);    // turn the LED off by making the voltage LOW
  23:   delay(1000);               // wait for a second
  24: }

Because it’s simple, were able to turn ON / OFF the led on the arduino Board Open-mouthed smile

Greetings @ Seattle

El Bruno

image image image

Leave a comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: