Unverified Commit b8c9b59b authored by Lewis He's avatar Lewis He Committed by GitHub

Added LILYGO T-Watch-S3 & T-Watch-Ultra variants (#10175)

* Added LILYGO T-Watch-S3 & T-Watch-Ultra variants

* Remove extra line breaks

* Change the maximum upload limit of the rainmaker partition table

* ci(pre-commit): Apply automatic fixes

---------
Co-authored-by: default avatarpre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
parent f53f2dc9
This diff is collapsed.
#ifndef Pins_Arduino_h
#define Pins_Arduino_h
#include <stdint.h>
#define USB_VID 0x303a
#define USB_PID 0x821B
#define USB_MANUFACTURER "LILYGO"
#define USB_PRODUCT "T-Watch-S3"
#define DISP_WIDTH (240)
#define DISP_HEIGHT (240)
#define DISP_MOSI (13)
#define DISP_MISO (-1)
#define DISP_SCK (18)
#define DISP_RST (-1)
#define DISP_CS (12)
#define DISP_DC (38)
#define DISP_BL (45)
// touch screen
#define TP_INT (16)
#define TP_SDA (39)
#define TP_SCL (40)
// Interrupt IO port
#define RTC_INT (17)
#define PMU_INT (21)
#define SENSOR_INT (14)
// PDM microphone
#define MIC_SCK (44)
#define MIC_DAT (47)
// MAX98357A
#define I2S_BCLK (48)
#define I2S_WCLK (15)
#define I2S_DOUT (46)
#define IR_SEND (2)
// TX, RX pin connected to GPS
static const uint8_t TX = 42;
static const uint8_t RX = 41;
//BHI260,PCF85063,AXP2101,DRV2605L,PN532 share I2C Bus
static const uint8_t SDA = 10;
static const uint8_t SCL = 11;
// Default sd cs pin
static const uint8_t SS = 5;
static const uint8_t MOSI = 1;
static const uint8_t MISO = 4;
static const uint8_t SCK = 3;
// LoRa and SD 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 (5)
#define LORA_RST (8)
#define LORA_BUSY (7)
#define LORA_IRQ (9)
#define GPS_TX (TX)
#define GPS_RX (RX)
#endif /* Pins_Arduino_h */
#ifndef Pins_Arduino_h
#define Pins_Arduino_h
#include <stdint.h>
#ifndef digitalPinToInterrupt
#define digitalPinToInterrupt(p) (((p) < 48) ? (p) : -1)
#endif
#define USB_VID 0x303a
#define USB_PID 0x8227
#define USB_MANUFACTURER "LILYGO"
#define USB_PRODUCT "T-Watch-Ultra"
#define DISP_WIDTH (240)
#define DISP_HEIGHT (296)
#define DISP_D0 (39)
#define DISP_D1 (40)
#define DISP_D2 (45)
#define DISP_D3 (42)
#define DISP_SCK (41)
#define DISP_RST (6)
#define DISP_CS (38)
#define DISP_TE (37)
// touch screen
#define TP_INT (12)
#define TP_RST (46)
// Interrupt IO port
#define RTC_INT (1)
#define PMU_INT (7)
#define NFC_INT (5)
#define SENSOR_INT (8)
#define NFC_RST (4)
// PDM microphone
#define MIC_SCK (17)
#define MIC_DAT (18)
// MAX98357A
#define I2S_BCLK (9)
#define I2S_WCLK (10)
#define I2S_DOUT (11)
#define SD_CS (21)
// TX, RX pin connected to GPS
static const uint8_t TX = 43;
static const uint8_t RX = 44;
//BHI260,PCF85063,AXP2101,DRV2605L,PN532 share I2C Bus
static const uint8_t SDA = 2;
static const uint8_t SCL = 3;
// Default sd cs pin
static const uint8_t SS = SD_CS;
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 TP_SDA (SDA)
#define TP_SCL (SCL)
// LoRa and SD 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)
#endif /* Pins_Arduino_h */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment