HomeWaterLeaksDetection
Setup.h
Go to the documentation of this file.
1 #ifndef SETUP_H
2 #define SETUP_H
3 
4 //===================Unit testing=======================
5 
6 // #define UNIT_TEST
7 
8 //===============General functionality==================
9 
10 #ifndef UNIT_TEST
11 //# define DEBUG ///< enable debugging
12 //# define HOME_ALARM_SETTINGS ///< allow home alarm settings
13 # define WEB_SERVER
14 # define LCD_DISPLAY
15 #else
16 # define GENERATE_PULSES
17 # define EMAIL_NOTIFICATION
18 #endif
19 
20 #define SENSOR_PULSE_IN_LITERS 10
21 
22 #define DAILY_OVERVIEW_INIT_HOUR 15
23 #define DAILY_OVERVIEW_INIT_MIN 00
24 
25 #define SERIAL_BAUD_RATE 9600
26 
27 #define SETTINGS_FILE_NAME "CONFIG.TXT"
28 #define BACKUP_SETTINGS_FILE_NAME "backup.txt"
29 
30 #define SS_SD_CARD 4
31 #define SS_ETHERNET 10
32 
33 //===============Email notifications====================
34 
35 #ifdef WEB_SERVER
36 //# define EMAIL_NOTIFICATION ///< enable e-mail notifications
37 #endif
38 
39 //================Pulse genearator======================
40 
41 #ifdef GENERATE_PULSES
42 # define PG_DELAY_HIGH 100
43 # define PG_DELAY_LOW 60000
44 # define PG_PIN A15
45 #endif
46 
47 #endif