Tell us about yourself!

Complete Your Profile
  • Multiple Blinking LED on the Arduino

    far more elegantint led3 = 3;int led4 = 4;int led5 = 5;// the setup routine runs once when you press reset:void setup() { // initialize the digital pin as an output. pinMode(led3, OUTPUT); pinMode(led4, OUTPUT);pinMode(led5, OUTPUT); }// the loop routine runs over and over again forever:void loop() {for(int counter =3;counter<=6;counter++){digitalWrite("led"+counter, HIGH); delay(100); digitalWrite("led"+counter, LOW); delay(100); }}

    View Instructable »