-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathHWProfile.h
84 lines (70 loc) · 2.84 KB
/
HWProfile.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
/*
OpenTroller EX1 Hardware Configuration
*/
#ifndef BT_HWPROFILE
#define BT_HWPROFILE
#include "Config.h"
//**********************************************************************************
// ENCODER TYPE
//**********************************************************************************
// You must uncomment one and only one of the following ENCODER_ definitions
// Use ENCODER_ALPS for ALPS and Panasonic Encoders
// Use ENCODER_CUI for older CUI encoders
//
//#define ENCODER_TYPE ALPS
#define ENCODER_TYPE CUI
//**********************************************************************************
#define ENCA_PIN 3
#define ENCB_PIN 2
#define ENTER_PIN 1
#define ENCODER_ACTIVELOW
#define PVOUT_TYPE_GPIO
#define PVOUT_COUNT 7 //7 Outputs
#define VALVE1_PIN 22 //OUT1
#define VALVE2_PIN 21 //OUT2
#define VALVE3_PIN 20 //OUT3
#define VALVE4_PIN 19 //OUT4
#define VALVE5_PIN 18 //OUT5
#define VALVE6_PIN 15 //OUT6
#define VALVE7_PIN 27 //ALARM
#define HEARTBEAT
#define HEARTBEAT_PIN 0
#define UI_LCD_4BIT
#define LCD_RS_PIN 4
#define LCD_ENABLE_PIN 23
#define LCD_DATA4_PIN 28
#define LCD_DATA5_PIN 29
#define LCD_DATA6_PIN 30
#define LCD_DATA7_PIN 31
#define UI_DISPLAY_SETUP
#define LCD_BRIGHT_PIN 13
#define LCD_CONTRAST_PIN 14
#define LCD_DEFAULT_CONTRAST 100
#define LCD_DEFAULT_BRIGHTNESS 255
//**********************************************************************************
// OneWire Temperature Sensor Options
//**********************************************************************************
// TS_ONEWIRE: Enables use of OneWire Temperature Sensors (Future logic may
// support alternatives temperature sensor options.)
#define TS_ONEWIRE
#define TS_ONEWIRE_I2C
// TS_ONEWIRE_PPWR: Specifies whether parasite power is used for OneWire temperature
// sensors. Parasite power allows sensors to obtain their power from the data line
// but significantly increases the time required to read the temperature (94-750ms
// based on resolution versus 10ms with dedicated power).
#define TS_ONEWIRE_PPWR 1
// TS_ONEWIRE_RES: OneWire Temperature Sensor Resolution (9-bit - 12-bit). Valid
// options are: 9, 10, 11, 12). Unless parasite power is being used the recommended
// setting is 12-bit (for DS18B20 sensors). DS18S20 sensors can only operate at a max
// of 9 bit. When using parasite power decreasing the resolution reduces the
// temperature conversion time:
// 12-bit (0.0625C / 0.1125F) = 750ms
// 11-bit (0.125C / 0.225F ) = 375ms
// 10-bit (0.25C / 0.45F ) = 188ms
// 9-bit (0.5C / 0.9F ) = 94ms
#define TS_ONEWIRE_RES 11
// DS2482_ADDR: I2C Address of DS2482 OneWire Master (used for TS_OneWire_I2C)
// Should be 0x18, 0x19, 0x1A, 0x1B
#define DS2482_ADDR 0x1B
//**********************************************************************************
#endif