-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpin-map.h
61 lines (49 loc) · 1.09 KB
/
pin-map.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
#ifdef ESP32
#define PRINTED_DROID
#else
#define IA_PARTS
#endif
#ifdef IA_PARTS
#define LIGHTKIT_CENTER_LED_PIN 5
#ifdef USE_ABC_PINS
#define LIGHTKIT_PIN_A 17
#define LIGHTKIT_PIN_B 18
#define LIGHTKIT_PIN_C 19
#endif
#define MAX7221_DATA_PIN 12
#define MAX7221_CLK_PIN 11
#define MAX7221_CS_PIN 10
#elif defined(PRINTED_DROID)
#ifdef ESP32
#define SDA_PIN 21
#define SCL_PIN 22
#define RX_PIN 3
#define TOP_PIN 33
#define LEFT_PIN 16
#define CENTER_PIN 27
#define RIGHT_PIN 25
#define BOTTOM_PIN 17
#define REAR_PIN 26
#define TOGGLE_BUTTON 0
#elif defined(__AVR__)
#define SDA_PIN SDA
#define SCL_PIN SCL
#define RX_PIN 0
#define TOP_PIN 6
#define LEFT_PIN 3
#define CENTER_PIN 5
#define RIGHT_PIN 10
#define REAR_PIN 9
#define BOTTOM_PIN 2
#endif
#ifdef USE_ABC_PINS
#define LIGHTKIT_PIN_A RX_PIN
#define LIGHTKIT_PIN_B SDA_PIN
#define LIGHTKIT_PIN_C SCL_PIN
#endif
#define __ERROR(a) _Pragma(#a)
#define _ERROR( a) __ERROR(GCC error #a)
#if defined(LIGHTKIT_PIN_A) && LIGHTKIT_PIN_A == RX_PIN
#define Serial _ERROR(Cannot use Serial in Uppity Spinner Mode. RX pins used as pin A)
#endif
#endif