adapt pins for v1/v2

This commit is contained in:
Manuel
2025-10-19 21:41:44 +02:00
parent 1cc096fe2b
commit d29d02ce36
4 changed files with 51 additions and 46 deletions

View File

@@ -6,7 +6,24 @@
#define USB_VID 0x303a
#define USB_PID 0x1001
// The default Wire will be mapped to RTC and Touch
#if defined(T5_S3_EPAPER_PRO_V1)
// The default Wire will be mapped to RTC, Touch, BQ25896, and BQ27220
static const uint8_t SDA = 6;
static const uint8_t SCL = 5;
// Default SPI will be mapped to Radio
static const uint8_t SS = 46;
static const uint8_t MOSI = 17;
static const uint8_t MISO = 8;
static const uint8_t SCK = 18;
#define SPI_MOSI (17)
#define SPI_SCK (18)
#define SPI_MISO (8)
#define SPI_CS (16)
#else // T5_S3_EPAPER_PRO_V2
// The default Wire will be mapped to RTC, Touch, PCA9535, BQ25896, and BQ27220
static const uint8_t SDA = 39;
static const uint8_t SCL = 40;
@@ -21,4 +38,6 @@ static const uint8_t SCK = 14;
#define SPI_MISO (21)
#define SPI_CS (12)
#endif
#endif /* Pins_Arduino_h */