Go to the documentation of this file.
8 # define SENSOR_PIN A14
15 #define VALVE_LED_PIN 9
18 #define VALVE_MANUAL_CLOSE_PIN 23
22 #define HOME_ALARM_PIN 24
25 #define HIGH_BYPASS_PIN 49
26 #define HIGH_ILOCK_LED_PIN 48
29 #define LOW_BYPASS_PIN 47
30 #define LOW_ILOCK_LED_PIN 46
33 #define TOTAL_BYPASS_PIN 45
34 #define TOTAL_ILOCK_LED_PIN 44
38 pinMode(SENSOR_PIN, INPUT); \
39 pinMode(HIGH_BYPASS_PIN, INPUT); \
40 pinMode(LOW_BYPASS_PIN, INPUT); \
41 pinMode(RESET_PIN, INPUT); \
42 pinMode(TOTAL_BYPASS_PIN, INPUT); \
43 pinMode(HOME_ALARM_PIN, INPUT); \
44 pinMode(VALVE_PIN, OUTPUT); \
45 pinMode(VALVE_MANUAL_CLOSE_PIN, INPUT); \
46 pinMode(HIGH_ILOCK_LED_PIN, OUTPUT); \
47 pinMode(LOW_ILOCK_LED_PIN, OUTPUT); \
48 pinMode(TOTAL_ILOCK_LED_PIN, OUTPUT); \
49 pinMode(VALVE_LED_PIN, OUTPUT); \
50 digitalWrite(VALVE_PIN, HIGH); // don't close the main valve when booting up