void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
pinMode(19, OUTPUT);
pinMode(21, OUTPUT);
pinMode(22, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(21, HIGH);
Serial.println("Lamp is on");
delay(1000); // this speeds up the simulation
digitalWrite(21, LOW);
Serial.println("Lamp is off");
delay(1000);
digitalWrite(19, HIGH);
Serial.println("Lamp is on");
delay(1000); // this speeds up the simulation
digitalWrite(19, LOW);
Serial.println("Lamp is off");
delay(1000);
digitalWrite(22, HIGH);
Serial.println("Lamp is on");
delay(1000); // this speeds up the simulation
digitalWrite(22, LOW);
Serial.println("Lamp is off");
delay(1000);
}