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