-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConfig.h
67 lines (51 loc) · 1.84 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
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
64
65
66
67
// This is a configuration file for the thermostat project.
#ifndef THERMOSTAT_CONFIG_H_
#define THERMOSTAT_CONFIG_H_
//-----------------------------------------------------------
// DHT Pins
//-----------------------------------------------------------
//#define DHT_VCC_PIN A1
#define DHT_DATA_PIN A1
//#define DHT_GND_PIN A3
#define DHT_TYPE DHT22
//-----------------------------------------------------------
// LCD Pins
//-----------------------------------------------------------
// Pins used in LiquidCrystal()
#define LCD_PIN_0 8
#define LCD_PIN_1 9
#define LCD_PIN_2 4
#define LCD_PIN_3 5
#define LCD_PIN_4 6
#define LCD_PIN_5 7
#define LCD_BACKLIGHT_PIN 10
// Pin where the LCD buttons are attached
#define LCD_BUTTONS_PIN 0
#define RED_LED_PIN 11
//-----------------------------------------------------------
// Thermostat Settings
//-----------------------------------------------------------
// This temperature will be the heater set point until a more clever application
// connects
#define HEAT_TEMP_DETACHED 68.0
// When the temperature is this amount more than the set point, the heat will
// turn off.
#define HEAT_SHUTOFF_HYSTERESIS 0.75
// When the temperature is this amount less than the set point, the heat will
// turn on.
#define HEAT_TURNON_HYSTERESIS 0.5
// This temperature will be the cooler set point until a more clever application
// connects
#define COOL_TEMP_DETACHED 80.0
// When the temperature is this amount more than the set point, the ac will
// turn off.
#define COOL_SHUTOFF_HYSTERESIS 0.75
// When the temperature is this amount less than the set point, the ac will
// turn on.
#define COOL_TURNON_HYSTERESIS 0.5
//-----------------------------------------------------------
// Relay Settings
//-----------------------------------------------------------
#define HEAT_PIN A2
#define COOL_PIN A4
#endif // include guard