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 {
|
||||
BACKLIGHT = 0,
|
||||
FRONTLIGHT = 1
|
||||
|
@ -39,3 +42,5 @@ enum Command {
|
|||
typedef enum Command Command;
|
||||
typedef enum Scrolls Scrolls;
|
||||
typedef enum Lights Lights;
|
||||
|
||||
#endif
|
|
@ -1,3 +1,5 @@
|
|||
#ifndef CONFIG_H
|
||||
#define CONFIG_H
|
||||
/*-------- Pin definitions --------*/
|
||||
|
||||
// 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_OFF_MS 500
|
||||
|
||||
#endif
|
|
@ -1,3 +1,6 @@
|
|||
#ifndef MOTOR_H
|
||||
#define MOTOR_H
|
||||
|
||||
#include <Arduino.h>
|
||||
|
||||
class Motor
|
||||
|
@ -13,3 +16,5 @@ public:
|
|||
void run(uint8_t speed, bool forward);
|
||||
void stop(bool freewheel);
|
||||
};
|
||||
|
||||
#endif
|
|
@ -1,3 +1,6 @@
|
|||
#ifndef STATES_H
|
||||
#define STATES_H
|
||||
|
||||
/*-------- State Definitions --------*/
|
||||
|
||||
/**
|
||||
|
@ -72,3 +75,5 @@ bool transition_init_wait();
|
|||
* @return false
|
||||
*/
|
||||
bool transition_wait_sercom();
|
||||
|
||||
#endif
|
Loading…
Reference in a new issue