|
| 1 | +#ifndef Pins_Arduino_h |
| 2 | +#define Pins_Arduino_h |
| 3 | + |
| 4 | +#include <stdint.h> |
| 5 | + |
| 6 | +#define USB_VID 0x239A |
| 7 | +#define USB_PID 0x8147 |
| 8 | + |
| 9 | +#define USB_MANUFACTURER "Adafruit" |
| 10 | +#define USB_PRODUCT "Qualia ESP32-S3 RGB666" |
| 11 | +#define USB_SERIAL "" // Empty string for MAC adddress |
| 12 | + |
| 13 | +#define EXTERNAL_NUM_INTERRUPTS 46 |
| 14 | +#define NUM_DIGITAL_PINS 48 |
| 15 | +#define NUM_ANALOG_INPUTS 2 |
| 16 | + |
| 17 | +#define analogInputToDigitalPin(p) (((p)<NUM_ANALOG_INPUTS)?(analogChannelToDigitalPin(p)):-1) |
| 18 | +#define digitalPinToInterrupt(p) (((p)<EXTERNAL_NUM_INTERRUPTS)?(p):-1) |
| 19 | +#define digitalPinHasPWM(p) (p < 46) |
| 20 | + |
| 21 | +static const uint8_t PCA_TFT_SCK = 0; |
| 22 | +static const uint8_t PCA_TFT_CS = 1; |
| 23 | +static const uint8_t PCA_TFT_RESET = 2; |
| 24 | +static const uint8_t PCA_CPT_IRQ = 3; |
| 25 | +static const uint8_t PCA_TFT_BACKLIGHT = 4; |
| 26 | +static const uint8_t PCA_BUTTON_UP = 5; |
| 27 | +static const uint8_t PCA_BUTTON_DOWN = 6; |
| 28 | +static const uint8_t PCA_TFT_MOSI = 7; |
| 29 | + |
| 30 | +static const uint8_t TX = 16; |
| 31 | +static const uint8_t RX = 17; |
| 32 | +#define TX1 TX |
| 33 | +#define RX1 RX |
| 34 | + |
| 35 | +static const uint8_t SDA = 8; |
| 36 | +static const uint8_t SCL = 18; |
| 37 | + |
| 38 | +static const uint8_t SS = 15; |
| 39 | +static const uint8_t MOSI = 7; |
| 40 | +static const uint8_t MISO = 6; |
| 41 | +static const uint8_t SCK = 5; |
| 42 | + |
| 43 | +static const uint8_t A0 = 17; |
| 44 | +static const uint8_t A1 = 16; |
| 45 | + |
| 46 | +static const uint8_t T3 = 3; // Touch pin IDs map directly |
| 47 | +static const uint8_t T8 = 8; // to underlying GPIO numbers NOT |
| 48 | +static const uint8_t T9 = 9; // the analog numbers on board silk |
| 49 | +static const uint8_t T10 = 10; |
| 50 | +static const uint8_t T11 = 11; |
| 51 | +static const uint8_t T12 = 12; |
| 52 | + |
| 53 | + |
| 54 | + static const uint8_t TFT_R1 = 11; |
| 55 | + static const uint8_t TFT_R2 = 10; |
| 56 | + static const uint8_t TFT_R3 = 9; |
| 57 | + static const uint8_t TFT_R4 = 46; |
| 58 | + static const uint8_t TFT_R5 = 3; |
| 59 | + static const uint8_t TFT_G0 = 48; |
| 60 | + static const uint8_t TFT_G1 = 47; |
| 61 | + static const uint8_t TFT_G2 = 21; |
| 62 | + static const uint8_t TFT_G3 = 14; |
| 63 | + static const uint8_t TFT_G4 = 13; |
| 64 | + static const uint8_t TFT_G5 = 12; |
| 65 | + static const uint8_t TFT_B1 = 40; |
| 66 | + static const uint8_t TFT_B2 = 39; |
| 67 | + static const uint8_t TFT_B3 = 38; |
| 68 | + static const uint8_t TFT_B4 = 0; |
| 69 | + static const uint8_t TFT_B5 = 45; |
| 70 | + static const uint8_t TFT_PCLK = 1; |
| 71 | + static const uint8_t TFT_DE = 2; |
| 72 | + static const uint8_t TFT_HSYNC = 41; |
| 73 | + static const uint8_t TFT_VSYNC = 42; |
| 74 | + |
| 75 | +#endif /* Pins_Arduino_h */ |
0 commit comments