void setup()
{
Serial.begin(115200);
pinMode(23, OUTPUT);
pinMode(22, OUTPUT);
pinMode(21, OUTPUT);
pinMode(19, OUTPUT);
pinMode(18, OUTPUT);
pinMode(5, OUTPUT);
pinMode(4, OUTPUT);
pinMode(2, OUTPUT);
}
void loop() {
Serial.println("Afisare în binar numarul 12");
digitalWrite(23, LOW);
Serial.println("Led is off");
delay(500);
digitalWrite(22, LOW);
Serial.println("Led is off");
delay(500);
digitalWrite(21, LOW);
Serial.println("Led is off");
delay(500);
digitalWrite(19, LOW);
Serial.println("Led is off");
delay(500);
digitalWrite(18, HIGH);
Serial.println("Led is on");
delay(500);
digitalWrite(5, HIGH);
Serial.println("Led is on");
delay(500);
digitalWrite(4, LOW);
Serial.println("Led is off");
delay(500);
digitalWrite(2, LOW);
Serial.println("Led is off");
delay(500);
}