-
Notifications
You must be signed in to change notification settings - Fork 1
/
Setup.h
37 lines (30 loc) · 923 Bytes
/
Setup.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
#ifndef _SETUP_H_
#define _SETUP_H_
#define X_SIZE 3
#define Y_SIZE 3
#define Z_SIZE 3
#define CUBE_SIZE X_SIZE * Y_SIZE * Z_SIZE
#define STRAIGHT_LENGTH X_SIZE
#define PLAYERS_COUNT 2
#define COLORS_PER_LED 2
enum Color { BLUE = 0, RED };
#define BRIGHTNESS 500 // Time interval (microseconds) in which ONLY an one led is light
#define MANIPULATOR_BLINK_INTERVAL 500
#define ANIMATE_INTERVAL 3000
#define DEBONCE_INTERVAL 20 // Time interval (milliseconds) of the buttons debonce
#define BUTTONS_COUNT 4
#define X_ITERATOR_PIN A5
#define Y_ITERATOR_PIN A2
#define Z_ITERATOR_PIN A4
#define ACTION_PIN A3
#define DECODER_BITS 5 // log2 (X_SIZE * Y_SIZE * COLORS_PER_LED)
#define D0 2
#define D1 3
#define D2 4
#define D3 5
#define D4 6
#define CATHODE_PINS Z_SIZE
#define C0 7
#define C1 8
#define C2 9
#endif