forked from hjd1964/OCS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConstants.h
63 lines (52 loc) · 2.99 KB
/
Constants.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
63
// -----------------------------------------------------------------------------------
// Constants
#pragma once
// Configuration options -----------------------------------------------------------------------------------------------------------
// On/Off, etc.
#define OFF -1
#define ON -2
#define ON_PULLUP -3
#define ON_PULLDOWN -4
#define ON_CC -5
// Time
#define LST 1
#define DST 2
#define UTC 3
#define NTP 1
#define DS3234_RTC 2
#define DS3234_INIT 3
// Units
#define METRIC 1
#define IMPERIAL 2
// Visual --------------------------------------------------------------------------------------------------------------------------
#define REVERSE_WEATHER_CHART_X_AXIS OFF // ON reverses the xaxis of weather charts so new data is to the left
#define FAV_ICON OFF // ON enables website icon in browsers, place favicon.ico file SD card root directory
// Connectivity check --------------------------------------------------------------------------------------------------------------
#define CONNECT_RECHECK_TIME 60 // in seconds
#define CONNECT_RESET_TRIES 5 // connection attempts before Ethernet shield is reset (if available,) must be >= 1
#define CONNECT_REBOOT_TRIES 10 // connection attempts before Watchdog reboot is forced, must be > CONNECT_RESET_TRIES
// Watchdog ------------------------------------------------------------------------------------------------------------------------
#define WATCHDOG_DURING_SD OFF // ON keeps watchdog enabled at all times
// Roof ----------------------------------------------------------------------------------------------------------------------------
#define ROOF_MOMENTARY_BUTTON_PRESS_TIME 1.0 // in seconds, this blocks the main-loop so <= ~2 seconds!
#define ROOF_PRE_MOTION_TIME 1.5 // as above
#define ROOF_POST_MOTION_TIME 2.0 // as above
// Misc ----------------------------------------------------------------------------------------------------------------------------
#define invalid -1000
#define STR_HELPER(x) #x
#define STR(x) STR_HELPER(x)
// EEPROM addresses ----------------------------------------------------------------------------------------------------------------
#define EE_key 0
// control heat & cooling/vent
#define EE_heatSetpoint 120
#define EE_coolSetpoint 124
// roof motion timing
#define EE_timeLeftToOpen 129
#define EE_timeLeftToClose 133
// power status device memory
#define EE_powerDevice_1 200
#define EE_powerDevice_2 201
#define EE_powerDevice_3 202
#define EE_powerDevice_4 203
#define EE_powerDevice_5 204
#define EE_powerDevice_6 205