mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-20 17:52:35 +00:00
adapt pins for v1/v2
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user