Загрузка данных


int j=0;
int boozer=10;

int last_pin=10;
void setup() {
  // put your setup code here, to run once:
 for(int i=0; i < last_pin; i+=2)
pinMode(i, OUTPUT);
pinMode(boozer, INPUT);
}

void loop() {
  // put your main code here, to run repeatedly:
    digitalWrite(boozer, HIGH);
    delay(5000);
    digitalWrite(boozer, LOW);


    for(int j=0; j < last_pin; j++) {
        digitalWrite(j, HIGH);
        delay(300);
        digitalWrite(j, LOW);
    }
    for(int j=last_pin-1; j > 0; j--) 
    {
        digitalWrite(j, HIGH);
        delay(300);
        digitalWrite(j, LOW);
    
    }
}