void setup() {
Serial.begin(115200);
pinMode(23, INPUT_PULLUP);
}
void loop() {
if(digitalRead(23) == LOW){
Serial.println("Knapp trykka inn");
delay(500);
}
else{
Serial.println("Ikke trykka");
delay(500);
}
}
void setup() {
Serial.begin(115200);
pinMode(23, INPUT_PULLUP);
}
void loop() {
if(digitalRead(23) == LOW){
Serial.println("Knapp trykka inn");
delay(500);
}
else{
Serial.println("Ikke trykka");
delay(500);
}
}