Examples - Electronic Bricks - Electronic Brick 1

Hello World

Your 1st program that should run on your Arduino. If you set it up all correctly, a "Hello World" should appear in the Arduino's black console after resetting the Micro-controller.

/*
Hello World
Example: Use of debug/ console

*/


void setup()
{
        Serial.begin(9600);                // Start Serial RS232 Interface with 9600 baud
}

void loop()
{
        Serial.print("Hello");             // Print into console
        Serial.print(" ");                 // Print into console
        Serial.println("World");           // Println into console

        delay(500);                        // Busy wait for 500ms
}