From a6f16ab515777d4571e23281bd305346c60318b3 Mon Sep 17 00:00:00 2001 From: Vladimir Garistov Date: Sun, 1 Nov 2020 15:17:10 +0000 Subject: [PATCH] Update external_interrupt.ino --- external_interrupt/external_interrupt.ino | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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; -- 2.39.5