Arduino Example Snippet
#define BUTTON_PIN 14
void setup() {
Serial.begin(9600);
pinMode(BUTTON_PIN, INPUT);
}
void loop() {
int buttonValue = digitalRead(BUTTON_PIN);
Serial.print("Button Value: ");
Serial.println(buttonValue);
delay(10);
}
