// led pins
int sposLeft = 2;
int sposRight = 4;
int strbNDrear = 3;
int strbNDleft = 5;
int sposBack = 6;
int CLtop = 7;
// vars
int brNorm = 5;
// initial setup
void setup() {
// initialize digital pins
pinMode(sposBack, OUTPUT);
pinMode(strbNDleft, OUTPUT);
pinMode(strbNDrear, OUTPUT);
pinMode(CLtop, OUTPUT);
pinMode(sposLeft, OUTPUT);
pinMode(sposRight, OUTPUT);
}
// run
void loop() {
// Airbus
pattern();
}
// patterns
void pattern() {
// a380
digitalWrite(sposLeft, HIGH);
digitalWrite(sposBack, HIGH);
digitalWrite(sposRight, HIGH);
//--------------------------------------
analogWrite(strbNDrear, brNorm);
digitalWrite(strbNDrear, HIGH);
digitalWrite(strbNDleft, HIGH);
delay(100);
digitalWrite(strbNDleft, LOW);
digitalWrite(strbNDrear, LOW);
analogWrite(strbNDrear, brNorm);
delay(160);
digitalWrite(strbNDleft, HIGH);
delay(100);
digitalWrite(strbNDleft, LOW);
delay(400);
//--------------------------------------
//--------------------------------------
digitalWrite(CLtop, HIGH);
delay(20);
digitalWrite(CLtop, LOW);
delay(600);
//--------------------------------------
}