int BUTTON = 35;
int LED = 14;
void setup() {
pinMode (LED, OUTPUT);
pinMode(BUTTON, INPUT_PULLUP);
}
void loop() {
// baca button
int input = digitalRead(BUTTON);
if (input == LOW) {
digitalWrite(LED, HIGH);
}
else {
digitalWrite(LED, LOW);
}
}