-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.h
39 lines (30 loc) · 849 Bytes
/
config.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
38
39
#ifndef _CONFIG_H
#define _CONFIG_H
// #define DEBUG 1
#define DEFAULT_ID '1'
#define DEFAULT_HOSTNAME "ArduZombie"
// for settings
#define EEPROM_START 100
#define MQTT_HOST "192.168.1.2"
#define BUTTONS 16
#define LIGHTS BUTTONS
// button input pins
#define DEBOUNCE 3
// 1.5 seconds
#define DEBOUNCE_MEDIUM 255
// 6 seconds
#define DEBOUNCE_LONG 1000
#ifdef DEBUG
#define DEBUG_INIT() Serial.begin(115200)
#define DEBUG_PRINT(x) Serial.print(x)
#define DEBUG_PRINTDEC(x) Serial.print(x, DEC)
#define DEBUG_PRINTHEX(x) Serial.print(x, HEX)
#define DEBUG_PRINTLN(x) Serial.println(x)
#else
#define DEBUG_INIT()
#define DEBUG_PRINT(x)
#define DEBUG_PRINTDEC(x)
#define DEBUG_PRINTHEX(x)
#define DEBUG_PRINTLN(x)
#endif
#endif