void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
pinMode(8, OUTPUT);
pinMode(9, OUTPUT);
pinMode(2, INPUT_PULLUP);
pinMode(3, INPUT);
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(8, digitalRead(2));
digitalWrite(9, digitalRead(3));
Serial.print("Data Digital Tombol : ");
Serial.print(digitalRead(2));
Serial.print(" Data Digital Tombol 2: ");
Serial.print(digitalRead(3));
Serial.println();
// delay(500);
// digitalWrite(8, LOW);
// delay(500);
}