-
Notifications
You must be signed in to change notification settings - Fork 0
/
configs.txt
84 lines (68 loc) · 1.83 KB
/
configs.txt
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
// CREDENTIALS...
#define FIREBASE_HOST "myproject.firebaseio.com"
#define FIREBASE_AUTH "123ABC"
String WIFI_SSID[] = {
"Wifi Name",
"Mobile Hotspot"
};
String WIFI_PASSWORD[] = {
"Wifi Password",
"Hotspot Password"
};
// HARDWARE...
const uint8_t TRIGGER_PIN = D8,
BTN1_PULLUP = D7,
BTN2_PULLUP = D6,
ANALOG_PIN = A0;
const int displayRS = D5,
displayEN = D0,
displayD4 = D1,
displayD5 = D2,
displayD6 = D3,
displayD7 = D4;
// DATA STRUCTURE...
String FORTUNES_PATH = "/fortunes";
String INTERACTIONS_PATH = "/interactions";
String QUESTION_PATH = "/questions";
String FIRST_QUESTION_ID = "first";
char* FIELD_TEXT = "text";
char* FIELD_CATEGORY = "category";
char* FIELD_NEXT_YES = "nextYes";
char* FIELD_NEXT_NO = "nextNo";
char* FIELD_VOTES = "votes";
char* FIELD_SHOWN = "shown";
char* FIELD_ACCURATE = "accurate";
char* FIELD_FORTUNE_ID = "fortune";
char* FIELD_VERSION = "version";
char* FIELD_SENSOR = "sensor";
char* FIELD_RANDOM = "random";
char* FIELD_MACHINE = "machine";
char* FIELD_CREATED = "created";
std::string MACHINE_ID = "homegame";
// SETTINGS...
boolean CHROME = true;
boolean FREEPLAY = false;
#define DEBUG false
#define TESTING false
#define SAVING true
#define FORTUNE_INDEX_MAX 5
#define FORTUNE_GET_MAX 5
#define QUESTION_LIST_LENGTH 15
#define WIDTH 20
#define HEIGHT 4
uint16_t DELAY_NONE = 0,
DELAY_MSG = 4000,
DELAY_QUICK_MSG = 2500,
DELAY_ANIMATION = 180,
DELAY_FORTUNE = 9000,
DELAY_SLEEP = 40, // Loop count.
QUESTION_TIMEOUT = 30000,
FAST_TIMEOUT = 1500,
READ_TIMEOUT = 20000,
WIFI_RETRY_DELAY = 3000;
#define SERIAL_RATE 1000000
#define FIREBASE_MAX_TRY 5
#define FIREBASE_BUFFER_SIZE_SEND 2048
#define FIREBASE_BUFFER_SIZE_RECEIVE 4096
#define FIREBASE_RESPONSE_SIZE 4096
#define JSON_DOC_BYTES 4096