Skip to content

Commit b097ae2

Browse files
ci(pre-commit): Apply automatic fixes
1 parent 10c4ac9 commit b097ae2

File tree

2 files changed

+87
-89
lines changed

2 files changed

+87
-89
lines changed

Diff for: variants/huidu_hd_wf2/pins_arduino.h

+24-25
Original file line numberDiff line numberDiff line change
@@ -16,38 +16,37 @@
1616
#define WF2_X1_G2_PIN 7
1717
#define WF2_X1_B1_PIN 10
1818
#define WF2_X1_B2_PIN 11
19-
#define WF2_X1_E_PIN 21
19+
#define WF2_X1_E_PIN 21
2020

2121
#define WF2_X2_R1_PIN 4
2222
#define WF2_X2_R2_PIN 5
2323
#define WF2_X2_G1_PIN 8
2424
#define WF2_X2_G2_PIN 9
2525
#define WF2_X2_B1_PIN 12
2626
#define WF2_X2_B2_PIN 13
27-
#define WF2_X2_E_PIN -1 // Currently unknown, so X2 port will not work (yet) with 1/32 scan panels
27+
#define WF2_X2_E_PIN -1 // Currently unknown, so X2 port will not work (yet) with 1/32 scan panels
2828

29-
#define WF2_A_PIN 39
30-
#define WF2_B_PIN 38
31-
#define WF2_C_PIN 37
32-
#define WF2_D_PIN 36
33-
#define WF2_OE_PIN 35
29+
#define WF2_A_PIN 39
30+
#define WF2_B_PIN 38
31+
#define WF2_C_PIN 37
32+
#define WF2_D_PIN 36
33+
#define WF2_OE_PIN 35
3434
#define WF2_CLK_PIN 34
3535
#define WF2_LAT_PIN 33
3636

37-
#define WF2_BUTTON_TEST 17 // Test key button on PCB, 1=normal, 0=pressed
38-
#define WF2_LED_RUN_PIN 40 // Status LED on PCB
39-
#define WF2_BM8563_I2C_SDA 41 // RTC BM8563 I2C port
40-
#define WF2_BM8563_I2C_SCL 42
41-
#define WF2_USB_DN_PIN 19 // USB D-
42-
#define WF2_USB_DP_PIN 20 // USB D+
37+
#define WF2_BUTTON_TEST 17 // Test key button on PCB, 1=normal, 0=pressed
38+
#define WF2_LED_RUN_PIN 40 // Status LED on PCB
39+
#define WF2_BM8563_I2C_SDA 41 // RTC BM8563 I2C port
40+
#define WF2_BM8563_I2C_SCL 42
41+
#define WF2_USB_DN_PIN 19 // USB D-
42+
#define WF2_USB_DP_PIN 20 // USB D+
4343

44-
#define WF2_PCB1_PIN 45 // open pad on PCB
45-
#define WF2_PCB2_PIN 46 // open pad on PCB
44+
#define WF2_PCB1_PIN 45 // open pad on PCB
45+
#define WF2_PCB2_PIN 46 // open pad on PCB
4646

4747
#define LED_BUILTIN WF2_LED_RUN_PIN
4848
#define BUILTIN_LED LED_BUILTIN // backward compatibility
4949

50-
5150
static const uint8_t TX = 43;
5251
static const uint8_t RX = 44;
5352

@@ -59,15 +58,15 @@ static const uint8_t MOSI = 11;
5958
static const uint8_t MISO = 13;
6059
static const uint8_t SCK = 12;
6160

62-
static const uint8_t T1 = WF2_X1_R1_PIN;
63-
static const uint8_t T2 = WF2_X1_R2_PIN;
64-
static const uint8_t T3 = WF2_X1_G1_PIN;
65-
static const uint8_t T4 = WF2_X1_G2_PIN;
66-
static const uint8_t T5 = WF2_X1_B1_PIN;
67-
static const uint8_t T6 = WF2_X1_B2_PIN;
68-
static const uint8_t T7 = WF2_A_PIN;
69-
static const uint8_t T8 = WF2_B_PIN;
70-
static const uint8_t T9 = WF2_C_PIN;
61+
static const uint8_t T1 = WF2_X1_R1_PIN;
62+
static const uint8_t T2 = WF2_X1_R2_PIN;
63+
static const uint8_t T3 = WF2_X1_G1_PIN;
64+
static const uint8_t T4 = WF2_X1_G2_PIN;
65+
static const uint8_t T5 = WF2_X1_B1_PIN;
66+
static const uint8_t T6 = WF2_X1_B2_PIN;
67+
static const uint8_t T7 = WF2_A_PIN;
68+
static const uint8_t T8 = WF2_B_PIN;
69+
static const uint8_t T9 = WF2_C_PIN;
7170
static const uint8_t T10 = WF2_D_PIN;
7271
static const uint8_t T11 = WF2_X1_E_PIN;
7372
static const uint8_t T12 = WF2_OE_PIN;

Diff for: variants/huidu_hd_wf4/pins_arduino.h

+63-64
Original file line numberDiff line numberDiff line change
@@ -10,74 +10,73 @@
1010
#define USB_VID 0x303a
1111
#define USB_PID 0x1001
1212

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
3030

3131
// 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
3939

4040
// 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
4848

4949
// 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
5757

5858
//#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
6161
//#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
7676

7777
#define LED_BUILTIN WF4_LED_RUN_PIN
7878
#define BUILTIN_LED LED_BUILTIN // backward compatibility
7979

80-
8180
static const uint8_t TX = 43;
8281
static const uint8_t RX = 44;
8382

@@ -89,15 +88,15 @@ static const uint8_t MOSI = 11;
8988
static const uint8_t MISO = 13;
9089
static const uint8_t SCK = 12;
9190

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;
101100
static const uint8_t T10 = WF4_D_PIN;
102101
static const uint8_t T11 = WF4_E_PIN;
103102
static const uint8_t T12 = WF4_OE_PIN;

0 commit comments

Comments
 (0)