const int pinled = 13;
void setup() {
Serial.begin(9600);
pinMode(pinled, OUTPUT);
Serial.println("akan mulai bekerja");
// put your setup code here, to run once:
}
void loop() {
digitalWrite(pinled, HIGH);
Serial.println("lampu menyala");
delay(100);
digitalWrite(pinled, LOW);
Serial.print("lampu mati");
delay(100);
// put your main code here, to run repeatedly:
}