forked from bracci/Qlockthree
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Boards.h
199 lines (182 loc) · 4.8 KB
/
Boards.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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
/**
Boards
Defines for the various boards and LED drivers.
@mc Arduino
@autor
@version 1.1
@created 20.01.2017
*/
#ifndef BOARDS_H
#define BOARDS_H
/******************************************************************************
Board: DEFAULT
A4 = I2C SDA
A5 = I2C SCL
D10 = Data
D11 = Clock
D12 = Load
D3 = OutputEnable
******************************************************************************/
#ifdef BOARD_DEFAULT
#define PIN_MODE 7
#define PIN_H_PLUS 6
#define PIN_M_PLUS 5
#define BUTTONS_PRESSING_AGAINST HIGH
#define PIN_IR_RECEIVER A1
#define PIN_LDR A3
#define PIN_SQW_SIGNAL 2
#define PIN_DCF77_SIGNAL 9
#define PIN_DCF77_PON A0
#define PIN_SQW_LED -1
#define PIN_DCF77_LED -1
#define PIN_SPEAKER -1
#define PIN_TEMP_SENS A2
#define PIN_LEDS_CLOCK 11
#define PIN_LEDS_DATA 10
#define PIN_LEDS_LOAD 12
#define PIN_LEDS_OUTPUT_ENABLE 3
#endif
/******************************************************************************
Board: UEBERPIXEL
A4 = I2C SDA
A5 = I2C SCL
D5 = Data
D6 = Clock
D7 = Load
******************************************************************************/
#ifdef BOARD_UEBERPIXEL
#define PIN_MODE 8
#define PIN_H_PLUS 4
#define PIN_M_PLUS 3
#define BUTTONS_PRESSING_AGAINST HIGH
#define PIN_IR_RECEIVER A1
#define PIN_LDR A3
#define PIN_SQW_SIGNAL 2
#define PIN_DCF77_SIGNAL 9
#define PIN_DCF77_PON A0
#define PIN_SQW_LED 10
#define PIN_DCF77_LED 11
#define PIN_SPEAKER 13
#define PIN_TEMP_SENS A2
#define PIN_LEDS_CLOCK 6
#define PIN_LEDS_DATA 5
#define PIN_LEDS_LOAD 7
#endif
/******************************************************************************
Board: AMBBRTCB
A4 = I2C SDA
A5 = I2C SCL
D0 = Data
******************************************************************************/
#ifdef BOARD_AMBBRTCAD
#define PIN_MODE 5
#define PIN_H_PLUS 6
#define PIN_M_PLUS 7
#define BUTTONS_PRESSING_AGAINST LOW
#define PIN_IR_RECEIVER A1
#define PIN_LDR A0
#define PIN_SQW_SIGNAL 10
#define PIN_DCF77_SIGNAL 3
#define PIN_DCF77_PON -1
#define PIN_SQW_LED 1
#define PIN_DCF77_LED 2
#define PIN_SPEAKER -1
#define PIN_TEMP_SENS -1
#define PIN_LEDS_DATA 0
#endif
/******************************************************************************
Board: BBRTCAD
A4 = I2C SDA
A5 = I2C SCL
D6 = Data
D7 = Clock
******************************************************************************/
#ifdef BOARD_BBRTCAD
#define PIN_MODE 11
#define PIN_H_PLUS 12
#define PIN_M_PLUS 13
#define BUTTONS_PRESSING_AGAINST LOW
#define PIN_IR_RECEIVER A1
#define PIN_LDR A0
#define PIN_SQW_SIGNAL 2
#define PIN_DCF77_SIGNAL 3
#define PIN_DCF77_PON 4
#define PIN_SQW_LED 9
#define PIN_DCF77_LED 10
#define PIN_SPEAKER -1
#define PIN_TEMP_SENS A2
#define PIN_LEDS_CLOCK 7
#define PIN_LEDS_DATA 6
#endif
/******************************************************************************
Board: 303UNIVERSAL
A4 = I2C SDA
A5 = I2C SCL
D10 = Data
******************************************************************************/
#ifdef BOARD_303UNIVERSAL
#define PIN_MODE 7
#define PIN_H_PLUS 6
#define PIN_M_PLUS 5
#define BUTTONS_PRESSING_AGAINST HIGH
#define PIN_IR_RECEIVER A1
#define PIN_LDR A3
#define PIN_SQW_SIGNAL 2
#define PIN_DCF77_SIGNAL 9
#define PIN_DCF77_PON A0
#define PIN_SQW_LED -1
#define PIN_DCF77_LED 12
#define PIN_SPEAKER -1
#define PIN_TEMP_SENS -1
#define PIN_LEDS_DATA 10
#endif
/******************************************************************************
Board: CLT2
A4 = I2C SDA
A5 = I2C SCL
D13 = Data
D11 = Clock
******************************************************************************/
#ifdef BOARD_CLT2
#define PIN_MODE 7
#define PIN_M_PLUS 5
#define PIN_H_PLUS 6
#define BUTTONS_PRESSING_AGAINST HIGH
#define PIN_IR_RECEIVER 10
#define PIN_LDR A3
#define PIN_SQW_SIGNAL 2
#define PIN_DCF77_SIGNAL 9
#define PIN_DCF77_PON -1
#define PIN_SQW_LED 4
#define PIN_DCF77_LED 8
#define PIN_SPEAKER -1
#define PIN_TEMP_SENS -1
#define PIN_LEDS_CLOCK 11
#define PIN_LEDS_DATA 13
#endif
/******************************************************************************
Board: NANO
A4 = I2C SDA
A5 = I2C SCL
D2 = SQW Interrupt
D6 = Data
D5 = Clock
******************************************************************************/
#ifdef BOARD_NANO
#define PIN_MODE 10
#define PIN_H_PLUS 9
#define PIN_M_PLUS 8
#define BUTTONS_PRESSING_AGAINST LOW
#define PIN_IR_RECEIVER A1
#define PIN_LDR A0
#define PIN_SQW_SIGNAL 2
#define PIN_DCF77_SIGNAL 3
#define PIN_DCF77_PON 4
#define PIN_SQW_LED 13
#define PIN_DCF77_LED 12
#define PIN_SPEAKER 11
#define PIN_TEMP_SENS A2
#define PIN_LEDS_CLOCK 5
#define PIN_LEDS_DATA 6
#endif
#endif