From ddde38ec7daeaa3ce171319f4b5d64f02cc6ee56 Mon Sep 17 00:00:00 2001 From: Philipp Matthias Schaefer Date: Sun, 2 Feb 2020 20:18:45 +0100 Subject: [PATCH] Rename constant to reflect new sensor type --- arduino/door_status.ino | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arduino/door_status.ino b/arduino/door_status.ino index 22659a5..5f7f36f 100644 --- a/arduino/door_status.ino +++ b/arduino/door_status.ino @@ -2,7 +2,7 @@ // arduino is Duemilanove // sensor is a reed sensor -#define IR_INPUT_PIN 13 +#define REED_SWITCH_INPUT_PIN 13 #define space_status_red_PIN 12 #define space_status_yellow_PIN 11 @@ -10,7 +10,7 @@ void setup(){ Serial.begin(9600); - pinMode(IR_INPUT_PIN, INPUT); + pinMode(REED_SWITCH_INPUT_PIN, INPUT); pinMode(space_status_red_PIN, OUTPUT); pinMode(space_status_yellow_PIN, OUTPUT); @@ -25,7 +25,7 @@ int delay_time = 1000; void loop(){ int pin_status = 0; - pin_status = digitalRead(IR_INPUT_PIN); + pin_status = digitalRead(REED_SWITCH_INPUT_PIN); Serial.print(" "); Serial.print(space_status_b4); Serial.print(" ");