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
|
||||
|
@ -38,4 +41,6 @@ enum Command {
|
|||
|
||||
typedef enum Command Command;
|
||||
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 --------*/
|
||||
|
||||
// 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
|
||||
#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 --------*/
|
||||
|
||||
/**
|
||||
|
@ -71,4 +74,6 @@ bool transition_init_wait();
|
|||
* @return true
|
||||
* @return false
|
||||
*/
|
||||
bool transition_wait_sercom();
|
||||
bool transition_wait_sercom();
|
||||
|
||||
#endif
|
Loading…
Reference in a new issue