-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.h
62 lines (53 loc) · 1.45 KB
/
app.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#ifndef APP_H
#define APP_H
/*
* -user_config:
* this pin will be high while delay in setup function and in case of
* error after setup.
*/
#define INDICATOR_PIN 13
/*
* -user_config:
* if digitalRead(DEFAULT_CONTROL_PIN) returns BUTTON_DOWN on system startup,
* all application parameters will be set to default values.
*/
#define DEFAULT_CONTROL_PIN 2
/*
* -user_config:
* application will wait APP_UPLOAD_DELAY_MS before running main program.
* This prevents from new sketch upload failure in case of some errors in
* old sketch. You can always upload new sketch during APP_UPLOAD_DELAY_MS.
*/
#define APP_UPLOAD_DELAY_MS 5000
/*
* -user_config:
* uncomment the following line if you want to enable serial server,
* this allows you to communicate with device over serial interface
*/
#define SERIAL_SERVER
/*
* -user_config:
* uncomment the following line if you want to enable Application Object IDs,
* this allows you to configure this application over serial server
*/
#define USE_AOIDS
/*
* -user_config:
* uncomment the following line if you want to enable Network Object IDs,
* this makes your application objects accessible over serial network
*/
#define USE_NOIDS
/*
* -user_config:
* uncomment serial interfaces you want to use:
*/
//#define WANT_SERIAL0
#define WANT_SERIAL1
//#define WANT_SERIAL2
//#define WANT_SERIAL3
/*
* -user_config:
* uncomment the following line if you need debug messages:
*/
//#define MODE_DEBUG
#endif