-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.h
39 lines (31 loc) · 1.36 KB
/
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
#ifndef LED_BUILTIN
#define LED_BUILTIN D0
#endif
// Network configuration.
const char* WIFI_AP_SSID = "FlowTimeFlag"; // The name of the wireless network to create if cannot connect using the previously saved credentials.
const char* WIFI_AP_PASSWORD = "FlowTime!"; // The password required to connect to the wireless network used to configure the network parameters.
// Time server configuration.
const char* NTP_SERVER_HOST = "hu.pool.ntp.org";
const float TIME_ZONE = 1.0; // Time zone in floating point (e.g. for India).
const int DST_ADJUSTMENT = 1; // 1 for European summer time; 2 for US daylight saving time; 0 for no DST adjustment.
// Time server access.
const int NTP_MAX_RETRY_COUNT = 10;
const int NTP_RETRY_DELAY_MSEC = 3000;
// Define this constant to log debug messages from the NTPTimeESP library.
// #define DEBUG_ON
// Time period configuration.
const byte FLOWTIME1_BEGIN_HOUR = 9;
const byte FLOWTIME1_BEGIN_MINUTE = 0;
const byte FLOWTIME1_END_HOUR = 11;
const byte FLOWTIME1_END_MINUTE = 0;
const byte FLOWTIME2_BEGIN_HOUR = 17;
const byte FLOWTIME2_BEGIN_MINUTE = 0;
const byte FLOWTIME2_END_HOUR = 19;
const byte FLOWTIME2_END_MINUTE = 0;
// Pin configuration.
const uint8_t PIN_SERVO = D7;
// Positions.
const int FLOWTIME_START_POSITION = 100;
const int FLOWTIME_END_POSITION = 10;
const int WAVE_START_POSITION = 130;
const int WAVE_END_POSITION = 70;