bool status = 0;
void setup() {
pinMode(11, INPUT);
pinMode(3, OUTPUT);
Serial.begin(9600);
}
void loop() {
int pullup = digitalRead(11);
Serial.print("Value Biru: ");
Serial.println(pullup);
if(pullup == 0)
{
status = !status;
digitalWrite(3, status);
delay(500);
}
}