RGB LED cube 5x5x5  1.0
Martin Stejskal, Schmidt Dominik
 All Files Functions Variables Macros Groups Pages
settings.h
Go to the documentation of this file.
1 
11 // Trick for multiply include this file
12 #ifndef _settings_library_
13 #define _settings_library_
14 
20 #define F_CPU 16000000UL
21 
29 #define column_delay 500
30 
39 #define animation_delay_timer 156
40 
51 #define pwm_support enabled
52 #define enabled 1
53 #define disabled 0
54 
63 #define version debug
64 #define debug 0
65 #define release 1
66 
98 #define D_R0_PORT G
99 #define D_R0_pin 4
100 #define D_R1_PORT G
101 #define D_R1_pin 3
102 #define D_R2_PORT B
103 #define D_R2_pin 7
104 #define D_R3_PORT B
105 #define D_R3_pin 6
106 #define D_R4_PORT B
107 #define D_R4_pin 5
108 
113 #define D_G0_PORT B
114 #define D_G0_pin 4
115 #define D_G1_PORT B
116 #define D_G1_pin 3
117 #define D_G2_PORT B
118 #define D_G2_pin 2
119 #define D_G3_PORT B
120 #define D_G3_pin 1
121 #define D_G4_PORT B
122 #define D_G4_pin 0
123 
128 #define D_B0_PORT E
129 #define D_B0_pin 7
130 #define D_B1_PORT E
131 #define D_B1_pin 6
132 #define D_B2_PORT A
133 #define D_B2_pin 5
134 #define D_B3_PORT A
135 #define D_B3_pin 4
136 #define D_B4_PORT A
137 #define D_B4_pin 3
138 
144 #define WALL0_PORT A
145 #define WALL0_pin 6
146 #define WALL1_PORT A
147 #define WALL1_pin 7
148 #define WALL2_PORT C
149 #define WALL2_pin 7
150 #define WALL3_PORT C
151 #define WALL3_pin 5
152 #define WALL4_PORT C
153 #define WALL4_pin 3
154 
160 #define COLUMN0_PORT D
161 #define COLUMN0_pin 5
162 #define COLUMN1_PORT D
163 #define COLUMN1_pin 7
164 #define COLUMN2_PORT G
165 #define COLUMN2_pin 0
166 #define COLUMN3_PORT G
167 #define COLUMN3_pin 1
168 #define COLUMN4_PORT C
169 #define COLUMN4_pin 1
170 
176 #define PWM_R_PORT E
177 #define PWM_R_pin 3
178 #define PWM_G_PORT E
179 #define PWM_G_pin 4
180 #define PWM_B_PORT E
181 #define PWM_B_pin 5
182 
188 #define KBRD_RD0_PORT F
189 #define KBRD_RD0_pin 5
190 #define KBRD_RD1_PORT F
191 #define KBRD_RD1_pin 4
192 #define KBRD_RD2_PORT F
193 #define KBRD_RD2_pin 3
194 #define KBRD_RD3_PORT F
195 #define KBRD_RD3_pin 2
196 #define KBRD_RD4_PORT F
197 #define KBRD_RD4_pin 1
198 #define KBRD_RD5_PORT F
199 #define KBRD_RD5_pin 0
200 
201 #define KBRD_PWR0_PORT A
202 #define KBRD_PWR0_pin 2
203 #define KBRD_PWR1_PORT A
204 #define KBRD_PWR1_pin 1
205 #define KBRD_PWR2_PORT A
206 #define KBRD_PWR2_pin 0
207 #define KBRD_PWR3_PORT F
208 #define KBRD_PWR3_pin 7
209 #define KBRD_PWR4_PORT F
210 #define KBRD_PWR4_pin 6
211 
217 #define RX_PC_PORT D
218 #define RX_PC_pin 3
219 #define TX_PC_PORT D
220 #define TX_PC_pin 2
221 
240 #define anim_run 7
241 #define anim_change 6
242 
243 #define anim_random 5
244 
245 // Note: anim_cnt* must be "near" to each other. Example: 7,6 or 1,0 and so on
246 #define anim_cnt1 3
247 #define anim_cnt0 2
248 
249 #define anim_SRAM_valid 1
250 #define anim_read_FLASH 0
251 
258 #define anim_random_max_address_flash 6000
259 
260 #endif