Arduino Simulator

PWR SEL PWM PWM PWM PWM PWM PWM TX RX RESET 3V3 AREF GND 3 2 1 1 0 0 9 8 5V Gnd Vin 7 6 5 4 3 2 2 1 0 L TX USB EXT RX DIGITAL Arduino PWD ICSP POWER 1 A B C D E F G H I J 5 10 15 20 25 30 35 40
Blink | Arduino Sketch

/*

    Blink

    Turns on the LED for one second, then off for one second, repeatedly.

    This example code is in the public domain.

/*


// put your setup code here, to run once:

void setup( ) {

// initialize the digital pin as an output (you may chose from 0 till 9)

pinMode(0, OUTPUT ) ;

}


// put your main code here, to run repeatedly:

void loop( ) {

digitalWrite(0, HIGH ) ; // turn the LED on

delay(1000) ; // wait for a second

digitalWrite(0, LOW ) ; // turn the LED off

delay(1000) ; // wait for a second

}

console Messages...