#define BUTTON_PIN 7
#define BUTTON_PIN1 6
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
pinMode(BUTTON_PIN, INPUT_PULLUP);
pinMode(BUTTON_PIN1, INPUT);
}
int lastState = HIGH;
void loop() {
// put your main code here, to run repeatedly:
int value1 = digitalRead((BUTTON_PIN));
int value2 = digitalRead((BUTTON_PIN1));
Serial.print("Tombol 1:"); Serial.println(value1);
Serial.print("Tombol 2:"); Serial.println(value2);
delay(1000);
//Serial.println(value1);
//if (lastState != value1) {
//lastState = value1;
// if (value1 == HIGH) {
// Serial.println("FALSE");
//}
//if (value1 == LOW) {
//Serial.println("TRUE");
//}
// }
//Serial.println(value2);
//if (lastState != value2) {
//lastState = value2;
//if (value2 == HIGH) {
//Serial.println("FALSE");
//}
//if (value2 == LOW) {
//Serial.println("TRUE");
// }
// }
}