« Back to the Parças Forum

12/05

Posted by C4

posted

Forum: Parças Group

// C++ code

//

int pinLed[9] = {12,11,10,9,8,7,6,5,4};

int numeroLed;

void setup()

{

  int x;

  for (x = 0; x <=8; x++) {

    pinMode(pinLed[x], OUTPUT);

 }

}

void lopp()

{

  for (numeroLed=0; numeroLed<=8;

       numeroLed=numeroLed+1) {

    digitalWrite(pinLed[numeroLed], HIGH);

     delay(100);

  }

  delay(1000);

}


Report Topic

0 Replies