mirror of
https://github.com/meshtastic/firmware.git
synced 2025-10-27 23:12:39 +00:00
44 lines
988 B
C
44 lines
988 B
C
#ifndef Pins_Arduino_h
|
|
#define Pins_Arduino_h
|
|
|
|
#include <stdint.h>
|
|
|
|
#define USB_VID 0x303a
|
|
#define USB_PID 0x1001
|
|
|
|
#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;
|
|
|
|
// Default SPI will be mapped to Radio
|
|
static const uint8_t SS = 46;
|
|
static const uint8_t MOSI = 13;
|
|
static const uint8_t MISO = 21;
|
|
static const uint8_t SCK = 14;
|
|
|
|
#define SPI_MOSI (13)
|
|
#define SPI_SCK (14)
|
|
#define SPI_MISO (21)
|
|
#define SPI_CS (12)
|
|
|
|
#endif
|
|
|
|
#endif /* Pins_Arduino_h */
|