|
| 1 | +#ifndef Pins_Arduino_h |
| 2 | +#define Pins_Arduino_h |
| 3 | + |
| 4 | +#include <stdint.h> |
| 5 | +#include "soc/soc_caps.h" |
| 6 | + |
| 7 | +// BN: ESP32 Family Device |
| 8 | +#define USB_VID 0x303a |
| 9 | +#define USB_PID 0x8287 |
| 10 | + |
| 11 | +#define USB_MANUFACTURER "Waveshare" |
| 12 | +#define USB_PRODUCT "ESP32-S3-Touch-LCD-1.85-Box" |
| 13 | +#define USB_SERIAL "" |
| 14 | + |
| 15 | +// I2C pins |
| 16 | +static const uint8_t SCL = 10; |
| 17 | +static const uint8_t SDA = 11; |
| 18 | + |
| 19 | +static const uint8_t TX = 43; |
| 20 | +static const uint8_t RX = 44; |
| 21 | + |
| 22 | +// Mapping based on the ESP32S3 data sheet - alternate for SPI2 |
| 23 | +static const uint8_t SS = 34; // FSPICS0 |
| 24 | +static const uint8_t MOSI = 35; // FSPID |
| 25 | +static const uint8_t MISO = 37; // FSPIQ |
| 26 | +static const uint8_t SCK = 36; // FSPICLK |
| 27 | + |
| 28 | +static const uint8_t A0 = 1; |
| 29 | +static const uint8_t A1 = 2; |
| 30 | +static const uint8_t A2 = 3; |
| 31 | +static const uint8_t A3 = 4; |
| 32 | +static const uint8_t A4 = 5; |
| 33 | +static const uint8_t A5 = 6; |
| 34 | +static const uint8_t A6 = 7; |
| 35 | +static const uint8_t A7 = 8; |
| 36 | +static const uint8_t A8 = 9; |
| 37 | +static const uint8_t A9 = 10; |
| 38 | +static const uint8_t A10 = 11; |
| 39 | +static const uint8_t A11 = 12; |
| 40 | +static const uint8_t A12 = 13; |
| 41 | +static const uint8_t A13 = 14; |
| 42 | +static const uint8_t A14 = 15; |
| 43 | +static const uint8_t A15 = 16; |
| 44 | +static const uint8_t A16 = 17; |
| 45 | +static const uint8_t A17 = 18; |
| 46 | +static const uint8_t A18 = 19; |
| 47 | +static const uint8_t A19 = 20; |
| 48 | + |
| 49 | +static const uint8_t T1 = 1; |
| 50 | +static const uint8_t T2 = 2; |
| 51 | +static const uint8_t T3 = 3; |
| 52 | +static const uint8_t T4 = 4; |
| 53 | +static const uint8_t T5 = 5; |
| 54 | +static const uint8_t T6 = 6; |
| 55 | +static const uint8_t T7 = 7; |
| 56 | +static const uint8_t T8 = 8; |
| 57 | +static const uint8_t T9 = 9; |
| 58 | +static const uint8_t T10 = 10; |
| 59 | +static const uint8_t T11 = 11; |
| 60 | +static const uint8_t T12 = 12; |
| 61 | +static const uint8_t T13 = 13; |
| 62 | +static const uint8_t T14 = 14; |
| 63 | + |
| 64 | +#endif /* Pins_Arduino_h */ |
0 commit comments