10
10
#define USB_VID 0x303a
11
11
#define USB_PID 0x1001
12
12
13
- #define WF4_A_PIN 39
14
- #define WF4_B_PIN 38
15
- #define WF4_C_PIN 37
16
- #define WF4_D_PIN 36
17
- #define WF4_E_PIN 21
18
- #define WF4_OE_PIN 35
19
- #define WF4_CLK_PIN 34
20
- #define WF4_LAT_PIN 33
21
-
22
- // X1
23
- #define WF4_X1_R1_PIN 2
24
- #define WF4_X1_R2_PIN 3
25
- #define WF4_X1_G1_PIN 6
26
- #define WF4_X1_G2_PIN 7
27
- #define WF4_X1_B1_PIN 10
28
- #define WF4_X1_B2_PIN 11
29
- #define WF4_X1_CS_PIN 45 // CS gpio must be set HIGH to enable X1 output
13
+ #define WF4_A_PIN 39
14
+ #define WF4_B_PIN 38
15
+ #define WF4_C_PIN 37
16
+ #define WF4_D_PIN 36
17
+ #define WF4_E_PIN 21
18
+ #define WF4_OE_PIN 35
19
+ #define WF4_CLK_PIN 34
20
+ #define WF4_LAT_PIN 33
21
+
22
+ // X1
23
+ #define WF4_X1_R1_PIN 2
24
+ #define WF4_X1_R2_PIN 3
25
+ #define WF4_X1_G1_PIN 6
26
+ #define WF4_X1_G2_PIN 7
27
+ #define WF4_X1_B1_PIN 10
28
+ #define WF4_X1_B2_PIN 11
29
+ #define WF4_X1_CS_PIN 45 // CS gpio must be set HIGH to enable X1 output
30
30
31
31
// X2
32
- #define WF4_X2_R1_PIN 4
33
- #define WF4_X2_R2_PIN 5
34
- #define WF4_X2_G1_PIN 8
35
- #define WF4_X2_G2_PIN 9
36
- #define WF4_X2_B1_PIN 12
37
- #define WF4_X2_B2_PIN 13
38
- #define WF4_X2_CS_PIN WF4_X1_CS_PIN // CS gpio must be set HIGH to enable X2 output
32
+ #define WF4_X2_R1_PIN 4
33
+ #define WF4_X2_R2_PIN 5
34
+ #define WF4_X2_G1_PIN 8
35
+ #define WF4_X2_G2_PIN 9
36
+ #define WF4_X2_B1_PIN 12
37
+ #define WF4_X2_B2_PIN 13
38
+ #define WF4_X2_CS_PIN WF4_X1_CS_PIN // CS gpio must be set HIGH to enable X2 output
39
39
40
40
// X3
41
- #define WF4_X3_R1_PIN 2
42
- #define WF4_X3_R2_PIN 3
43
- #define WF4_X3_G1_PIN 6
44
- #define WF4_X3_G2_PIN 7
45
- #define WF4_X3_B1_PIN 10
46
- #define WF4_X3_B2_PIN 11
47
- #define WF4_X3_CS_PIN 14 // CS gpio must be set HIGH to enable X3 output
41
+ #define WF4_X3_R1_PIN 2
42
+ #define WF4_X3_R2_PIN 3
43
+ #define WF4_X3_G1_PIN 6
44
+ #define WF4_X3_G2_PIN 7
45
+ #define WF4_X3_B1_PIN 10
46
+ #define WF4_X3_B2_PIN 11
47
+ #define WF4_X3_CS_PIN 14 // CS gpio must be set HIGH to enable X3 output
48
48
49
49
// X4
50
- #define WF4_X4_R1_PIN 4
51
- #define WF4_X4_R2_PIN 5
52
- #define WF4_X4_G1_PIN 8
53
- #define WF4_X4_G2_PIN 9
54
- #define WF4_X4_B1_PIN 12
55
- #define WF4_X4_B2_PIN 13
56
- #define WF4_X4_CS_PIN WF4_X3_CS_PIN // CS gpio must be set HIGH to enable X4 output
50
+ #define WF4_X4_R1_PIN 4
51
+ #define WF4_X4_R2_PIN 5
52
+ #define WF4_X4_G1_PIN 8
53
+ #define WF4_X4_G2_PIN 9
54
+ #define WF4_X4_B1_PIN 12
55
+ #define WF4_X4_B2_PIN 13
56
+ #define WF4_X4_CS_PIN WF4_X3_CS_PIN // CS gpio must be set HIGH to enable X4 output
57
57
58
58
//#define WF4_P1_PIN UART
59
- #define WF4_P2_DATA_PIN 0 // GPIO0 boot
60
- #define WF4_P5_DATA_PIN 16 // temperature
59
+ #define WF4_P2_DATA_PIN 0 // GPIO0 boot
60
+ #define WF4_P5_DATA_PIN 16 // temperature
61
61
//#define WF4_P7_PIN VCC/GND
62
- #define WF4_P11_DATA_PIN 15 // IR
63
- #define WF4_P12_DATA1_PIN 47
64
- #define WF4_P12_DATA2_PIN 18
65
- #define WF4_S1_DATA_PIN 17 // Button
66
- #define WF4_S2_DATA_PIN 48
67
- #define WF4_S3_DATA_PIN 26
68
- #define WF4_S4_DATA_PIN 46
69
-
70
- #define WF4_BUTTON_TEST WF4_S1_PIN // Test key button on PCB, 1=normal, 0=pressed
71
- #define WF4_LED_RUN_PIN 40 // Status LED on PCB
72
- #define WF4_BM8563_I2C_SDA 41 // RTC BM8563 I2C port
73
- #define WF4_BM8563_I2C_SCL 42
74
- #define WF4_USB_DM_PIN 19
75
- #define WF4_USB_DP_PIN 20
62
+ #define WF4_P11_DATA_PIN 15 // IR
63
+ #define WF4_P12_DATA1_PIN 47
64
+ #define WF4_P12_DATA2_PIN 18
65
+ #define WF4_S1_DATA_PIN 17 // Button
66
+ #define WF4_S2_DATA_PIN 48
67
+ #define WF4_S3_DATA_PIN 26
68
+ #define WF4_S4_DATA_PIN 46
69
+
70
+ #define WF4_BUTTON_TEST WF4_S1_PIN // Test key button on PCB, 1=normal, 0=pressed
71
+ #define WF4_LED_RUN_PIN 40 // Status LED on PCB
72
+ #define WF4_BM8563_I2C_SDA 41 // RTC BM8563 I2C port
73
+ #define WF4_BM8563_I2C_SCL 42
74
+ #define WF4_USB_DM_PIN 19
75
+ #define WF4_USB_DP_PIN 20
76
76
77
77
#define LED_BUILTIN WF4_LED_RUN_PIN
78
78
#define BUILTIN_LED LED_BUILTIN // backward compatibility
79
79
80
-
81
80
static const uint8_t TX = 43 ;
82
81
static const uint8_t RX = 44 ;
83
82
@@ -89,15 +88,15 @@ static const uint8_t MOSI = 11;
89
88
static const uint8_t MISO = 13 ;
90
89
static const uint8_t SCK = 12 ;
91
90
92
- static const uint8_t T1 = WF4_X1_R1_PIN ;
93
- static const uint8_t T2 = WF4_X1_R2_PIN ;
94
- static const uint8_t T3 = WF4_X1_G1_PIN ;
95
- static const uint8_t T4 = WF4_X1_G2_PIN ;
96
- static const uint8_t T5 = WF4_X1_B1_PIN ;
97
- static const uint8_t T6 = WF4_X1_B2_PIN ;
98
- static const uint8_t T7 = WF4_A_PIN ;
99
- static const uint8_t T8 = WF4_B_PIN ;
100
- static const uint8_t T9 = WF4_C_PIN ;
91
+ static const uint8_t T1 = WF4_X1_R1_PIN ;
92
+ static const uint8_t T2 = WF4_X1_R2_PIN ;
93
+ static const uint8_t T3 = WF4_X1_G1_PIN ;
94
+ static const uint8_t T4 = WF4_X1_G2_PIN ;
95
+ static const uint8_t T5 = WF4_X1_B1_PIN ;
96
+ static const uint8_t T6 = WF4_X1_B2_PIN ;
97
+ static const uint8_t T7 = WF4_A_PIN ;
98
+ static const uint8_t T8 = WF4_B_PIN ;
99
+ static const uint8_t T9 = WF4_C_PIN ;
101
100
static const uint8_t T10 = WF4_D_PIN ;
102
101
static const uint8_t T11 = WF4_E_PIN ;
103
102
static const uint8_t T12 = WF4_OE_PIN ;
0 commit comments