Skip to content
Prev Previous commit
ci(pre-commit): Apply automatic fixes
  • Loading branch information
pre-commit-ci-lite[bot] authored Mar 28, 2025
commit 1292b0715344c47690f0e30fbe78a702da4c7b05
92 changes: 46 additions & 46 deletions variants/lilygo_tlora_pager/pins_arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
#define USB_PRODUCT "T-LoRa-Pager"

// ST7796
#define DISP_WIDTH (222)
#define DISP_HEIGHT (480)
#define SD_CS (21)
#define DISP_WIDTH (222)
#define DISP_HEIGHT (480)
#define SD_CS (21)

static const uint8_t TX = 43;
static const uint8_t RX = 44;
Expand All @@ -30,61 +30,61 @@ static const uint8_t MOSI = 34;
static const uint8_t MISO = 33;
static const uint8_t SCK = 35;

#define KB_INT (6)
#define KB_BACKLIGHT (46)
#define KB_INT (6)
#define KB_BACKLIGHT (46)

// Rotary
#define ROTARY_A (40)
#define ROTARY_B (41)
#define ROTARY_C (7)
#define ROTARY_A (40)
#define ROTARY_B (41)
#define ROTARY_C (7)

// Interrupt IO port
#define RTC_INT (1)
#define NFC_INT (5)
#define SENSOR_INT (8)
#define NFC_CS (39)

// ES8311
#define I2S_WS (18)
#define I2S_SCK (11)
#define I2S_MCLK (10)
#define I2S_SDOUT (45)
#define I2S_SDIN (17)
#define RTC_INT (1)
#define NFC_INT (5)
#define SENSOR_INT (8)
#define NFC_CS (39)

// ES8311
#define I2S_WS (18)
#define I2S_SCK (11)
#define I2S_MCLK (10)
#define I2S_SDOUT (45)
#define I2S_SDIN (17)

// GPS
#define GPS_TX (12)
#define GPS_RX (4)
#define GPS_PPS (13)
#define GPS_TX (12)
#define GPS_RX (4)
#define GPS_PPS (13)

// LoRa, SD, ST25R3916 card share SPI bus
#define LORA_SCK (SCK) // share spi bus
#define LORA_MISO (MISO) // share spi bus
#define LORA_MOSI (MOSI) // share spi bus
#define LORA_CS (36)
#define LORA_RST (47)
#define LORA_BUSY (48)
#define LORA_IRQ (14)
#define LORA_SCK (SCK) // share spi bus
#define LORA_MISO (MISO) // share spi bus
#define LORA_MOSI (MOSI) // share spi bus
#define LORA_CS (36)
#define LORA_RST (47)
#define LORA_BUSY (48)
#define LORA_IRQ (14)

// SPI interface display
#define DISP_MOSI (MOSI)
#define DISP_MISO (MISO)
#define DISP_SCK (SCK)
#define DISP_RST (-1)
#define DISP_CS (38)
#define DISP_DC (37)
#define DISP_BL (42)
#define DISP_MOSI (MOSI)
#define DISP_MISO (MISO)
#define DISP_SCK (SCK)
#define DISP_RST (-1)
#define DISP_CS (38)
#define DISP_DC (37)
#define DISP_BL (42)

// External expansion chip IO definition
#define EXPANDS_DRV_EN (0)
#define EXPANDS_AMP_EN (1)
#define EXPANDS_KB_RST (2)
#define EXPANDS_LORA_EN (3)
#define EXPANDS_GPS_EN (4)
#define EXPANDS_NFC_EN (5)
#define EXPANDS_DISP_RST (6)
#define EXPANDS_GPS_RST (7)
#define EXPANDS_KB_EN (8)
#define EXPANDS_GPIO_EN (9)
#define EXPANDS_DRV_EN (0)
#define EXPANDS_AMP_EN (1)
#define EXPANDS_KB_RST (2)
#define EXPANDS_LORA_EN (3)
#define EXPANDS_GPS_EN (4)
#define EXPANDS_NFC_EN (5)
#define EXPANDS_DISP_RST (6)
#define EXPANDS_GPS_RST (7)
#define EXPANDS_KB_EN (8)
#define EXPANDS_GPIO_EN (9)

// Peripheral definition exists
#define USING_AUDIO_CODEC
Expand Down
14 changes: 7 additions & 7 deletions variants/lilygo_twatch_ultra/pins_arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#define DISP_TE (6)

// Interrupt IO port
#define TP_INT (12)
#define TP_INT (12)
#define RTC_INT (1)
#define PMU_INT (7)
#define NFC_INT (5)
Expand Down Expand Up @@ -57,8 +57,8 @@ static const uint8_t MOSI = 34;
static const uint8_t MISO = 33;
static const uint8_t SCK = 35;

#define GPS_TX (TX)
#define GPS_RX (RX)
#define GPS_TX (TX)
#define GPS_RX (RX)
#define GPS_PPS (13)

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

// External expansion chip IO definition
#define EXPANDS_DRV_EN (6)
#define EXPANDS_DISP_EN (7)
#define EXPANDS_TOUCH_RST (10)
#define EXPANDS_DISP_RST (11)
#define EXPANDS_DRV_EN (6)
#define EXPANDS_DISP_EN (7)
#define EXPANDS_TOUCH_RST (10)
#define EXPANDS_DISP_RST (11)

// Peripheral definition exists
#define USING_XL9555_EXPANDS
Expand Down