From: Vladimir Garistov Date: Sun, 1 Nov 2020 15:17:10 +0000 (+0000) Subject: Update external_interrupt.ino X-Git-Url: https://kolegite.com/gitweb/?a=commitdiff_plain;h=a6f16ab515777d4571e23281bd305346c60318b3;p=vmks.git Update external_interrupt.ino --- diff --git a/external_interrupt/external_interrupt.ino b/external_interrupt/external_interrupt.ino index 77ba930..597aa50 100644 --- a/external_interrupt/external_interrupt.ino +++ b/external_interrupt/external_interrupt.ino @@ -20,18 +20,18 @@ void loop() slow_computation(); if (led_state) - Serial.println("LED in on."); + Serial.println("LED in on."); else - Serial.println("LED in off."); + Serial.println("LED in off."); } void button_pressed_ISR(void) { if (led_state) - { - led_state = 0; - digitalWrite(LED_PIN, LOW); - } + { + led_state = 0; + digitalWrite(LED_PIN, LOW); + } else { led_state = 1;