-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathGlobal.h
37 lines (29 loc) · 935 Bytes
/
Global.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
Copyright (c) 2012-2013 Dominic Clifton. All right reserved.
*/
#ifndef Global_h
#define Global_h
#include "DebouncedInput.h"
#ifdef USE_DIGITAL_BUTTONS
#include "ArduinoDigitalInput.h"
extern ArduinoDigitalInput backInput;
extern ArduinoDigitalInput upInput;
extern ArduinoDigitalInput downInput;
extern ArduinoDigitalInput selectInput;
#else
#include "ArduinoAnalogInput.h"
extern ArduinoAnalogInput backInput;
extern ArduinoAnalogInput upInput;
extern ArduinoAnalogInput downInput;
extern ArduinoAnalogInput selectInput;
#endif
extern DebouncedInput backButton;
extern DebouncedInput upButton;
extern DebouncedInput downButton;
extern DebouncedInput selectButton;
#include "ArduinoDigitalOutput.h"
extern ArduinoDigitalOutput statusLedOutput;
extern ArduinoDigitalOutput redLedOutput;
extern ArduinoDigitalOutput yellowLedOutput;
extern ArduinoDigitalOutput greenLedOutput;
#endif