Minor fixes:
- Added boilerplate to header files to avoid multiple includes
This commit is contained in:
parent
d7199b7b63
commit
3d8f614906
4 changed files with 22 additions and 3 deletions
|
@ -1,3 +1,6 @@
|
||||||
|
#ifndef COMMANDS_H
|
||||||
|
#define COMMANDS_H
|
||||||
|
|
||||||
enum Lights {
|
enum Lights {
|
||||||
BACKLIGHT = 0,
|
BACKLIGHT = 0,
|
||||||
FRONTLIGHT = 1
|
FRONTLIGHT = 1
|
||||||
|
@ -39,3 +42,5 @@ enum Command {
|
||||||
typedef enum Command Command;
|
typedef enum Command Command;
|
||||||
typedef enum Scrolls Scrolls;
|
typedef enum Scrolls Scrolls;
|
||||||
typedef enum Lights Lights;
|
typedef enum Lights Lights;
|
||||||
|
|
||||||
|
#endif
|
|
@ -1,3 +1,5 @@
|
||||||
|
#ifndef CONFIG_H
|
||||||
|
#define CONFIG_H
|
||||||
/*-------- Pin definitions --------*/
|
/*-------- Pin definitions --------*/
|
||||||
|
|
||||||
// Vertical motor top
|
// Vertical motor top
|
||||||
|
@ -70,3 +72,5 @@ const int SCROLL_ERROR_MS = 500; // if sensor values don't change in this tim
|
||||||
|
|
||||||
#define UI_ON_MS 500 // General user interaction blink interval
|
#define UI_ON_MS 500 // General user interaction blink interval
|
||||||
#define UI_OFF_MS 500
|
#define UI_OFF_MS 500
|
||||||
|
|
||||||
|
#endif
|
|
@ -1,3 +1,6 @@
|
||||||
|
#ifndef MOTOR_H
|
||||||
|
#define MOTOR_H
|
||||||
|
|
||||||
#include <Arduino.h>
|
#include <Arduino.h>
|
||||||
|
|
||||||
class Motor
|
class Motor
|
||||||
|
@ -13,3 +16,5 @@ public:
|
||||||
void run(uint8_t speed, bool forward);
|
void run(uint8_t speed, bool forward);
|
||||||
void stop(bool freewheel);
|
void stop(bool freewheel);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#endif
|
|
@ -1,3 +1,6 @@
|
||||||
|
#ifndef STATES_H
|
||||||
|
#define STATES_H
|
||||||
|
|
||||||
/*-------- State Definitions --------*/
|
/*-------- State Definitions --------*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -72,3 +75,5 @@ bool transition_init_wait();
|
||||||
* @return false
|
* @return false
|
||||||
*/
|
*/
|
||||||
bool transition_wait_sercom();
|
bool transition_wait_sercom();
|
||||||
|
|
||||||
|
#endif
|
Loading…
Reference in a new issue