diff --git a/include/Commands.h b/include/Commands.h index e0c3a1d..94c048b 100644 --- a/include/Commands.h +++ b/include/Commands.h @@ -1,3 +1,6 @@ +#ifndef COMMANDS_H +#define COMMANDS_H + enum Lights { BACKLIGHT = 0, FRONTLIGHT = 1 @@ -38,4 +41,6 @@ enum Command { typedef enum Command Command; typedef enum Scrolls Scrolls; -typedef enum Lights Lights; \ No newline at end of file +typedef enum Lights Lights; + +#endif \ No newline at end of file diff --git a/include/Config.h b/include/Config.h index 00097a4..89fc58d 100644 --- a/include/Config.h +++ b/include/Config.h @@ -1,3 +1,5 @@ +#ifndef CONFIG_H +#define CONFIG_H /*-------- Pin definitions --------*/ // Vertical motor top @@ -69,4 +71,6 @@ const int SCROLL_ERROR_MS = 500; // if sensor values don't change in this tim #define REC_COUNTDOWN_MS 5000 // In Recording mode, blink LED for the last X milliseconds #define UI_ON_MS 500 // General user interaction blink interval -#define UI_OFF_MS 500 \ No newline at end of file +#define UI_OFF_MS 500 + +#endif \ No newline at end of file diff --git a/include/Motor.h b/include/Motor.h index 03df795..3696e87 100644 --- a/include/Motor.h +++ b/include/Motor.h @@ -1,3 +1,6 @@ +#ifndef MOTOR_H +#define MOTOR_H + #include class Motor @@ -13,3 +16,5 @@ public: void run(uint8_t speed, bool forward); void stop(bool freewheel); }; + +#endif \ No newline at end of file diff --git a/include/States.h b/include/States.h index 80da179..d7d9468 100644 --- a/include/States.h +++ b/include/States.h @@ -1,3 +1,6 @@ +#ifndef STATES_H +#define STATES_H + /*-------- State Definitions --------*/ /** @@ -71,4 +74,6 @@ bool transition_init_wait(); * @return true * @return false */ -bool transition_wait_sercom(); \ No newline at end of file +bool transition_wait_sercom(); + +#endif \ No newline at end of file