Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Waveshare ESP32-S3-Tiny base on ESP32-S3FH4R2 chip (Closes #10633) #10634

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 77 additions & 0 deletions variants/waveshare_esp32_s3_tiny/pins_arduino.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
#ifndef Pins_Arduino_h
#define Pins_Arduino_h

#include <stdint.h>

#define USB_VID 0x303a
#define USB_PID 0x1001
#define USB_MANUFACTURER "Waveshare"
#define USB_PRODUCT "ESP32-S3-Tiny"
#define USB_SERIAL "" // Empty string for MAC address

#define RGB_BUILTIN 38
#define RGB_BRIGHTNESS 64

#define MTDO 45
#define MTDI 47
#define MTMS 48
#define MTCK 44

// UART0 pins
static const uint8_t TX = 49;
static const uint8_t RX = 50;

static const uint8_t SDA = -1;
static const uint8_t SCL = -1;

// Mapping based on the ESP32S3 data sheet - alternate for SPI2
static const uint8_t SS = 32; // FSPICS0
static const uint8_t MOSI = 35; // FSPID
static const uint8_t MISO = 34; // FSPIQ
static const uint8_t SCK = 33; // FSPICLK

//static const uint8_t XTAL_32K_N = 22;
//static const uint8_t XTAL_32K_P = 21;

//static const uint8_t SPIWP = 31;
//static const uint8_t SPIHD = 30;

// Mapping based on the ESP32S3 data sheet - alternate for OUTPUT
static const uint8_t GPIO1 = 1;
static const uint8_t GPIO2 = 2;
static const uint8_t GPIO3 = 3;
static const uint8_t GPIO4 = 4;
static const uint8_t GPIO5 = 5;
static const uint8_t GPIO6 = 6;
static const uint8_t GPIO7 = 7;
static const uint8_t GPIO8 = 8;
static const uint8_t GPIO9 = 9;
static const uint8_t GPIO10 = 10;
static const uint8_t GPIO11 = 11;
static const uint8_t GPIO12 = 12;
static const uint8_t GPIO13 = 13;
static const uint8_t GPIO14 = 14;
static const uint8_t GPIO15 = 15;
static const uint8_t GPIO16 = 16;
static const uint8_t GPIO17 = 17;
static const uint8_t GPIO18 = 18;

static const uint8_t GPIO21 = 21;

static const uint8_t GPIO33 = 33;
static const uint8_t GPIO34 = 34;
static const uint8_t GPIO35 = 35;
static const uint8_t GPIO36 = 36;
static const uint8_t GPIO37 = 37;
static const uint8_t GPIO38 = 38;
static const uint8_t GPIO39 = 39;
static const uint8_t GPIO40 = 40;
static const uint8_t GPIO41 = 41;
static const uint8_t GPIO42 = 42;

static const uint8_t GPIO45 = 45;

static const uint8_t GPIO47 = 47;
static const uint8_t GPIO48 = 48;

#endif /* Pins_Arduino_h */