From af86687e432614ed5689b844f121538377be8276 Mon Sep 17 00:00:00 2001 From: Philipp Matthias Schaefer Date: Sun, 2 Feb 2020 20:26:50 +0100 Subject: [PATCH] Use const for constants --- arduino/door_status.ino | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arduino/door_status.ino b/arduino/door_status.ino index a1910a4..e2f136f 100644 --- a/arduino/door_status.ino +++ b/arduino/door_status.ino @@ -2,11 +2,11 @@ // arduino is Duemilanove // sensor is a reed sensor -#define REED_SWITCH_INPUT_PIN 13 +const int REED_SWITCH_INPUT_PIN = 13; -#define RED_LED_OUTPUT_PIN 12 -#define YELLOW_LED_OUTPUT_PIN 11 -#define GREEN_LED_OUTPUT_PIN 10 +const int RED_LED_OUTPUT_PIN = 12; +const int YELLOW_LED_OUTPUT_PIN = 11; +const int GREEN_LED_OUTPUT_PIN = 10; void setup(){ Serial.begin(9600);