Skip to content

Commit 1292b07

Browse files
ci(pre-commit): Apply automatic fixes
1 parent 2c71846 commit 1292b07

File tree

2 files changed

+53
-53
lines changed

2 files changed

+53
-53
lines changed

Diff for: variants/lilygo_tlora_pager/pins_arduino.h

+46-46
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
#define USB_PRODUCT "T-LoRa-Pager"
1414

1515
// ST7796
16-
#define DISP_WIDTH (222)
17-
#define DISP_HEIGHT (480)
18-
#define SD_CS (21)
16+
#define DISP_WIDTH (222)
17+
#define DISP_HEIGHT (480)
18+
#define SD_CS (21)
1919

2020
static const uint8_t TX = 43;
2121
static const uint8_t RX = 44;
@@ -30,61 +30,61 @@ static const uint8_t MOSI = 34;
3030
static const uint8_t MISO = 33;
3131
static const uint8_t SCK = 35;
3232

33-
#define KB_INT (6)
34-
#define KB_BACKLIGHT (46)
33+
#define KB_INT (6)
34+
#define KB_BACKLIGHT (46)
3535

3636
// Rotary
37-
#define ROTARY_A (40)
38-
#define ROTARY_B (41)
39-
#define ROTARY_C (7)
37+
#define ROTARY_A (40)
38+
#define ROTARY_B (41)
39+
#define ROTARY_C (7)
4040

4141
// Interrupt IO port
42-
#define RTC_INT (1)
43-
#define NFC_INT (5)
44-
#define SENSOR_INT (8)
45-
#define NFC_CS (39)
46-
47-
// ES8311
48-
#define I2S_WS (18)
49-
#define I2S_SCK (11)
50-
#define I2S_MCLK (10)
51-
#define I2S_SDOUT (45)
52-
#define I2S_SDIN (17)
42+
#define RTC_INT (1)
43+
#define NFC_INT (5)
44+
#define SENSOR_INT (8)
45+
#define NFC_CS (39)
46+
47+
// ES8311
48+
#define I2S_WS (18)
49+
#define I2S_SCK (11)
50+
#define I2S_MCLK (10)
51+
#define I2S_SDOUT (45)
52+
#define I2S_SDIN (17)
5353

5454
// GPS
55-
#define GPS_TX (12)
56-
#define GPS_RX (4)
57-
#define GPS_PPS (13)
55+
#define GPS_TX (12)
56+
#define GPS_RX (4)
57+
#define GPS_PPS (13)
5858

5959
// LoRa, SD, ST25R3916 card share SPI bus
60-
#define LORA_SCK (SCK) // share spi bus
61-
#define LORA_MISO (MISO) // share spi bus
62-
#define LORA_MOSI (MOSI) // share spi bus
63-
#define LORA_CS (36)
64-
#define LORA_RST (47)
65-
#define LORA_BUSY (48)
66-
#define LORA_IRQ (14)
60+
#define LORA_SCK (SCK) // share spi bus
61+
#define LORA_MISO (MISO) // share spi bus
62+
#define LORA_MOSI (MOSI) // share spi bus
63+
#define LORA_CS (36)
64+
#define LORA_RST (47)
65+
#define LORA_BUSY (48)
66+
#define LORA_IRQ (14)
6767

6868
// SPI interface display
69-
#define DISP_MOSI (MOSI)
70-
#define DISP_MISO (MISO)
71-
#define DISP_SCK (SCK)
72-
#define DISP_RST (-1)
73-
#define DISP_CS (38)
74-
#define DISP_DC (37)
75-
#define DISP_BL (42)
69+
#define DISP_MOSI (MOSI)
70+
#define DISP_MISO (MISO)
71+
#define DISP_SCK (SCK)
72+
#define DISP_RST (-1)
73+
#define DISP_CS (38)
74+
#define DISP_DC (37)
75+
#define DISP_BL (42)
7676

7777
// External expansion chip IO definition
78-
#define EXPANDS_DRV_EN (0)
79-
#define EXPANDS_AMP_EN (1)
80-
#define EXPANDS_KB_RST (2)
81-
#define EXPANDS_LORA_EN (3)
82-
#define EXPANDS_GPS_EN (4)
83-
#define EXPANDS_NFC_EN (5)
84-
#define EXPANDS_DISP_RST (6)
85-
#define EXPANDS_GPS_RST (7)
86-
#define EXPANDS_KB_EN (8)
87-
#define EXPANDS_GPIO_EN (9)
78+
#define EXPANDS_DRV_EN (0)
79+
#define EXPANDS_AMP_EN (1)
80+
#define EXPANDS_KB_RST (2)
81+
#define EXPANDS_LORA_EN (3)
82+
#define EXPANDS_GPS_EN (4)
83+
#define EXPANDS_NFC_EN (5)
84+
#define EXPANDS_DISP_RST (6)
85+
#define EXPANDS_GPS_RST (7)
86+
#define EXPANDS_KB_EN (8)
87+
#define EXPANDS_GPIO_EN (9)
8888

8989
// Peripheral definition exists
9090
#define USING_AUDIO_CODEC

Diff for: variants/lilygo_twatch_ultra/pins_arduino.h

+7-7
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#define DISP_TE (6)
2626

2727
// Interrupt IO port
28-
#define TP_INT (12)
28+
#define TP_INT (12)
2929
#define RTC_INT (1)
3030
#define PMU_INT (7)
3131
#define NFC_INT (5)
@@ -57,8 +57,8 @@ static const uint8_t MOSI = 34;
5757
static const uint8_t MISO = 33;
5858
static const uint8_t SCK = 35;
5959

60-
#define GPS_TX (TX)
61-
#define GPS_RX (RX)
60+
#define GPS_TX (TX)
61+
#define GPS_RX (RX)
6262
#define GPS_PPS (13)
6363

6464
#define TP_SDA (SDA)
@@ -74,10 +74,10 @@ static const uint8_t SCK = 35;
7474
#define LORA_IRQ (14)
7575

7676
// External expansion chip IO definition
77-
#define EXPANDS_DRV_EN (6)
78-
#define EXPANDS_DISP_EN (7)
79-
#define EXPANDS_TOUCH_RST (10)
80-
#define EXPANDS_DISP_RST (11)
77+
#define EXPANDS_DRV_EN (6)
78+
#define EXPANDS_DISP_EN (7)
79+
#define EXPANDS_TOUCH_RST (10)
80+
#define EXPANDS_DISP_RST (11)
8181

8282
// Peripheral definition exists
8383
#define USING_XL9555_EXPANDS

0 commit comments

Comments
 (0)