From 517d131689feeb2fc9af5a8fb918fdc645d103ad Mon Sep 17 00:00:00 2001 From: Philipp Matthias Schaefer Date: Sun, 2 Feb 2020 20:17:53 +0100 Subject: [PATCH] Consistently use one empty line to separate thematic parts --- arduino/door_status.ino | 8 -------- 1 file changed, 8 deletions(-) diff --git a/arduino/door_status.ino b/arduino/door_status.ino index e1b2897..22659a5 100644 --- a/arduino/door_status.ino +++ b/arduino/door_status.ino @@ -8,8 +8,6 @@ #define space_status_yellow_PIN 11 #define space_status_green_PIN 10 - - void setup(){ Serial.begin(9600); pinMode(IR_INPUT_PIN, INPUT); @@ -19,17 +17,14 @@ void setup(){ pinMode(space_status_green_PIN, OUTPUT); } - int threshold = 20; int space_status = threshold / 2; int space_status_b4 = 0; int delay_time = 1000; - void loop(){ int pin_status = 0; - pin_status = digitalRead(IR_INPUT_PIN); Serial.print(" "); Serial.print(space_status_b4); @@ -37,7 +32,6 @@ void loop(){ Serial.println(space_status); delay(delay_time); - // pin check of the reed sensor and low pass filter if (pin_status == 0){ if (space_status > 0){ @@ -49,7 +43,6 @@ void loop(){ } } - // status check if we can switch the status. // low pass prevents waggling a bit if (space_status >= threshold-3) { @@ -60,7 +53,6 @@ void loop(){ space_status_b4 = 0; } - // ampel / traffic light signals if (space_status_b4 == 1) { // closed