This commit is contained in:
2026-05-22 21:52:50 +03:00
commit be7c60e4dd
1854 changed files with 583428 additions and 0 deletions
@@ -0,0 +1,66 @@
#ifndef Pins_Arduino_h
#define Pins_Arduino_h
#include <stdint.h>
#define USB_VID 0x239A
#define USB_PID 0x8147
#define USB_MANUFACTURER "Adafruit"
#define USB_PRODUCT "Qualia ESP32-S3 RGB666"
#define USB_SERIAL "" // Empty string for MAC address
static const uint8_t PCA_TFT_SCK = 0;
static const uint8_t PCA_TFT_CS = 1;
static const uint8_t PCA_TFT_RESET = 2;
static const uint8_t PCA_CPT_IRQ = 3;
static const uint8_t PCA_TFT_BACKLIGHT = 4;
static const uint8_t PCA_BUTTON_UP = 5;
static const uint8_t PCA_BUTTON_DOWN = 6;
static const uint8_t PCA_TFT_MOSI = 7;
static const uint8_t TX = 16;
static const uint8_t RX = 17;
#define TX1 TX
#define RX1 RX
static const uint8_t SDA = 8;
static const uint8_t SCL = 18;
static const uint8_t SS = 15;
static const uint8_t MOSI = 7;
static const uint8_t MISO = 6;
static const uint8_t SCK = 5;
static const uint8_t A0 = 17;
static const uint8_t A1 = 16;
static const uint8_t T3 = 3; // Touch pin IDs map directly
static const uint8_t T8 = 8; // to underlying GPIO numbers NOT
static const uint8_t T9 = 9; // the analog numbers on board silk
static const uint8_t T10 = 10;
static const uint8_t T11 = 11;
static const uint8_t T12 = 12;
static const uint8_t TFT_R1 = 11;
static const uint8_t TFT_R2 = 10;
static const uint8_t TFT_R3 = 9;
static const uint8_t TFT_R4 = 46;
static const uint8_t TFT_R5 = 3;
static const uint8_t TFT_G0 = 48;
static const uint8_t TFT_G1 = 47;
static const uint8_t TFT_G2 = 21;
static const uint8_t TFT_G3 = 14;
static const uint8_t TFT_G4 = 13;
static const uint8_t TFT_G5 = 12;
static const uint8_t TFT_B1 = 40;
static const uint8_t TFT_B2 = 39;
static const uint8_t TFT_B3 = 38;
static const uint8_t TFT_B4 = 0;
static const uint8_t TFT_B5 = 45;
static const uint8_t TFT_PCLK = 1;
static const uint8_t TFT_DE = 2;
static const uint8_t TFT_HSYNC = 41;
static const uint8_t TFT_VSYNC = 42;
#endif /* Pins_Arduino_h */
Binary file not shown.
@@ -0,0 +1,35 @@
/*
* The MIT License (MIT)
*
* Copyright (c) 2021 Ha Thach (tinyusb.org) for Adafruit Industries
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#include "esp32-hal-gpio.h"
#include "pins_arduino.h"
extern "C" {
// Initialize variant/board, called before setup()
void initVariant(void) {
// default SD_CS to input pullup
pinMode(SS, INPUT_PULLUP);
}
}