void setup() {
// put your setup code here, to run once:
pinMode(13,OUTPUT);
// Taster
pinMode(9, INPUT_PULLUP);
}
void loop() {
// put your main code here, to run repeatedly:
int variable = digitalRead(9);
int led_read = digitalRead(13);
if (variable == LOW && led_read == HIGH){
digitalWrite(13,LOW);
} else if (variable == LOW) {
digitalWrite(13, HIGH);
}
}