Unverified Commit b4360dc5 authored by WEMOS Electronics's avatar WEMOS Electronics Committed by GitHub

Add LOLIN S3 Pro board def (#8038)

Co-authored-by: default avatarJan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
parent 7693f741
......@@ -6080,6 +6080,158 @@ lolin_s3.menu.EraseFlash.all.upload.erase_cmd=-e
##############################################################
lolin_s3_pro.name=LOLIN S3 Pro
lolin_s3_pro.vid.0=0x303a
lolin_s3_pro.pid.0=0x8161
lolin_s3_pro.bootloader.tool=esptool_py
lolin_s3_pro.bootloader.tool.default=esptool_py
lolin_s3_pro.upload.tool=esptool_py
lolin_s3_pro.upload.tool.default=esptool_py
lolin_s3_pro.upload.tool.network=esp_ota
lolin_s3_pro.upload.maximum_size=1310720
lolin_s3_pro.upload.maximum_data_size=327680
lolin_s3_pro.upload.flags=
lolin_s3_pro.upload.extra_flags=
lolin_s3_pro.upload.use_1200bps_touch=false
lolin_s3_pro.upload.wait_for_upload_port=false
lolin_s3_pro.serial.disableDTR=false
lolin_s3_pro.serial.disableRTS=false
lolin_s3_pro.build.tarch=xtensa
lolin_s3_pro.build.bootloader_addr=0x0
lolin_s3_pro.build.target=esp32s3
lolin_s3_pro.build.mcu=esp32s3
lolin_s3_pro.build.core=esp32
lolin_s3_pro.build.variant=lolin_s3_pro
lolin_s3_pro.build.board=LOLIN_S3_PRO
lolin_s3_pro.build.usb_mode=1
lolin_s3_pro.build.cdc_on_boot=0
lolin_s3_pro.build.msc_on_boot=0
lolin_s3_pro.build.dfu_on_boot=0
lolin_s3_pro.build.f_cpu=240000000L
lolin_s3_pro.build.flash_size=16MB
lolin_s3_pro.build.flash_freq=80m
lolin_s3_pro.build.flash_mode=dio
lolin_s3_pro.build.boot=qio
lolin_s3_pro.build.boot_freq=80m
lolin_s3_pro.build.partitions=default
lolin_s3_pro.build.defines=-DBOARD_HAS_PSRAM
lolin_s3_pro.build.loop_core=
lolin_s3_pro.build.event_core=
lolin_s3_pro.build.psram_type=opi
lolin_s3_pro.build.memory_type={build.boot}_{build.psram_type}
lolin_s3_pro.menu.FlashMode.qio=QIO 80MHz
lolin_s3_pro.menu.FlashMode.qio.build.flash_mode=dio
lolin_s3_pro.menu.FlashMode.qio.build.boot=qio
lolin_s3_pro.menu.FlashMode.qio.build.boot_freq=80m
lolin_s3_pro.menu.FlashMode.qio.build.flash_freq=80m
lolin_s3_pro.menu.FlashMode.qio120=QIO 120MHz
lolin_s3_pro.menu.FlashMode.qio120.build.flash_mode=dio
lolin_s3_pro.menu.FlashMode.qio120.build.boot=qio
lolin_s3_pro.menu.FlashMode.qio120.build.boot_freq=120m
lolin_s3_pro.menu.FlashMode.qio120.build.flash_freq=80m
lolin_s3_pro.menu.LoopCore.1=Core 1
lolin_s3_pro.menu.LoopCore.1.build.loop_core=-DARDUINO_RUNNING_CORE=1
lolin_s3_pro.menu.LoopCore.0=Core 0
lolin_s3_pro.menu.LoopCore.0.build.loop_core=-DARDUINO_RUNNING_CORE=0
lolin_s3_pro.menu.EventsCore.1=Core 1
lolin_s3_pro.menu.EventsCore.1.build.event_core=-DARDUINO_EVENT_RUNNING_CORE=1
lolin_s3_pro.menu.EventsCore.0=Core 0
lolin_s3_pro.menu.EventsCore.0.build.event_core=-DARDUINO_EVENT_RUNNING_CORE=0
lolin_s3_pro.menu.USBMode.hwcdc=Hardware CDC and JTAG
lolin_s3_pro.menu.USBMode.hwcdc.build.usb_mode=1
lolin_s3_pro.menu.USBMode.default=USB-OTG (TinyUSB)
lolin_s3_pro.menu.USBMode.default.build.usb_mode=0
lolin_s3_pro.menu.CDCOnBoot.default=Disabled
lolin_s3_pro.menu.CDCOnBoot.default.build.cdc_on_boot=0
lolin_s3_pro.menu.CDCOnBoot.cdc=Enabled
lolin_s3_pro.menu.CDCOnBoot.cdc.build.cdc_on_boot=1
lolin_s3_pro.menu.MSCOnBoot.default=Disabled
lolin_s3_pro.menu.MSCOnBoot.default.build.msc_on_boot=0
lolin_s3_pro.menu.MSCOnBoot.msc=Enabled (Requires USB-OTG Mode)
lolin_s3_pro.menu.MSCOnBoot.msc.build.msc_on_boot=1
lolin_s3_pro.menu.DFUOnBoot.default=Disabled
lolin_s3_pro.menu.DFUOnBoot.default.build.dfu_on_boot=0
lolin_s3_pro.menu.DFUOnBoot.dfu=Enabled (Requires USB-OTG Mode)
lolin_s3_pro.menu.DFUOnBoot.dfu.build.dfu_on_boot=1
lolin_s3_pro.menu.UploadMode.default=UART0 / Hardware CDC
lolin_s3_pro.menu.UploadMode.default.upload.use_1200bps_touch=false
lolin_s3_pro.menu.UploadMode.default.upload.wait_for_upload_port=false
lolin_s3_pro.menu.UploadMode.cdc=USB-OTG CDC (TinyUSB)
lolin_s3_pro.menu.UploadMode.cdc.upload.use_1200bps_touch=true
lolin_s3_pro.menu.UploadMode.cdc.upload.wait_for_upload_port=true
lolin_s3_pro.menu.PartitionScheme.fatflash=16M Flash (2MB APP/12.5MB FATFS)
lolin_s3_pro.menu.PartitionScheme.fatflash.build.partitions=ffat
lolin_s3_pro.menu.PartitionScheme.fatflash.upload.maximum_size=2097152
lolin_s3_pro.menu.PartitionScheme.app3M_fat9M_16MB=16M Flash (3MB APP/9.9MB FATFS)
lolin_s3_pro.menu.PartitionScheme.app3M_fat9M_16MB.build.partitions=app3M_fat9M_16MB
lolin_s3_pro.menu.PartitionScheme.app3M_fat9M_16MB.upload.maximum_size=3145728
lolin_s3_pro.menu.PartitionScheme.rainmaker=RainMaker
lolin_s3_pro.menu.PartitionScheme.rainmaker.build.partitions=rainmaker
lolin_s3_pro.menu.PartitionScheme.rainmaker.upload.maximum_size=3145728
lolin_s3_pro.menu.CPUFreq.240=240MHz (WiFi)
lolin_s3_pro.menu.CPUFreq.240.build.f_cpu=240000000L
lolin_s3_pro.menu.CPUFreq.160=160MHz (WiFi)
lolin_s3_pro.menu.CPUFreq.160.build.f_cpu=160000000L
lolin_s3_pro.menu.CPUFreq.80=80MHz (WiFi)
lolin_s3_pro.menu.CPUFreq.80.build.f_cpu=80000000L
lolin_s3_pro.menu.CPUFreq.40=40MHz
lolin_s3_pro.menu.CPUFreq.40.build.f_cpu=40000000L
lolin_s3_pro.menu.CPUFreq.20=20MHz
lolin_s3_pro.menu.CPUFreq.20.build.f_cpu=20000000L
lolin_s3_pro.menu.CPUFreq.10=10MHz
lolin_s3_pro.menu.CPUFreq.10.build.f_cpu=10000000L
lolin_s3_pro.menu.UploadSpeed.921600=921600
lolin_s3_pro.menu.UploadSpeed.921600.upload.speed=921600
lolin_s3_pro.menu.UploadSpeed.115200=115200
lolin_s3_pro.menu.UploadSpeed.115200.upload.speed=115200
lolin_s3_pro.menu.UploadSpeed.256000.windows=256000
lolin_s3_pro.menu.UploadSpeed.256000.upload.speed=256000
lolin_s3_pro.menu.UploadSpeed.230400.windows.upload.speed=256000
lolin_s3_pro.menu.UploadSpeed.230400=230400
lolin_s3_pro.menu.UploadSpeed.230400.upload.speed=230400
lolin_s3_pro.menu.UploadSpeed.460800.linux=460800
lolin_s3_pro.menu.UploadSpeed.460800.macosx=460800
lolin_s3_pro.menu.UploadSpeed.460800.upload.speed=460800
lolin_s3_pro.menu.UploadSpeed.512000.windows=512000
lolin_s3_pro.menu.UploadSpeed.512000.upload.speed=512000
lolin_s3_pro.menu.DebugLevel.none=None
lolin_s3_pro.menu.DebugLevel.none.build.code_debug=0
lolin_s3_pro.menu.DebugLevel.error=Error
lolin_s3_pro.menu.DebugLevel.error.build.code_debug=1
lolin_s3_pro.menu.DebugLevel.warn=Warn
lolin_s3_pro.menu.DebugLevel.warn.build.code_debug=2
lolin_s3_pro.menu.DebugLevel.info=Info
lolin_s3_pro.menu.DebugLevel.info.build.code_debug=3
lolin_s3_pro.menu.DebugLevel.debug=Debug
lolin_s3_pro.menu.DebugLevel.debug.build.code_debug=4
lolin_s3_pro.menu.DebugLevel.verbose=Verbose
lolin_s3_pro.menu.DebugLevel.verbose.build.code_debug=5
lolin_s3_pro.menu.EraseFlash.none=Disabled
lolin_s3_pro.menu.EraseFlash.none.upload.erase_cmd=
lolin_s3_pro.menu.EraseFlash.all=Enabled
lolin_s3_pro.menu.EraseFlash.all.upload.erase_cmd=-e
##############################################################
lolin32.name=WEMOS LOLIN32
lolin32.bootloader.tool=esptool_py
......
#ifndef Pins_Arduino_h
#define Pins_Arduino_h
#include <stdint.h>
#define USB_VID 0x303a
#define USB_PID 0x8161
#define EXTERNAL_NUM_INTERRUPTS 46
#define NUM_DIGITAL_PINS 48
#define NUM_ANALOG_INPUTS 18
static const uint8_t LED_BUILTIN = 38;
#define BUILTIN_LED LED_BUILTIN // backward compatibility
#define LED_BUILTIN LED_BUILTIN
#define RGB_BUILTIN LED_BUILTIN
#define RGB_BRIGHTNESS 64
#define analogInputToDigitalPin(p) (((p)<20)?(analogChannelToDigitalPin(p)):-1)
#define digitalPinToInterrupt(p) (((p)<48)?(p):-1)
#define digitalPinHasPWM(p) (p < 46)
static const uint8_t TX = 43;
static const uint8_t RX = 44;
static const uint8_t SDA = 9;
static const uint8_t SCL = 10;
static const uint8_t SS = 0;
static const uint8_t MOSI = 11;
static const uint8_t MISO = 13;
static const uint8_t SCK = 12;
static const uint8_t TF_CS = 46;
static const uint8_t TS_CS = 45;
static const uint8_t TFT_CS = 48;
static const uint8_t TFT_DC = 47;
static const uint8_t TFT_RST = 21;
static const uint8_t TFT_LED = 14;
static const uint8_t A0 = 1;
static const uint8_t A1 = 2;
static const uint8_t A2 = 3;
static const uint8_t A3 = 4;
static const uint8_t A4 = 5;
static const uint8_t A5 = 6;
static const uint8_t A6 = 7;
static const uint8_t A7 = 8;
static const uint8_t A8 = 9;
static const uint8_t A9 = 10;
static const uint8_t A10 = 11;
static const uint8_t A11 = 12;
static const uint8_t A12 = 13;
static const uint8_t A13 = 14;
static const uint8_t A14 = 15;
static const uint8_t A15 = 16;
static const uint8_t A16 = 17;
static const uint8_t A17 = 18;
static const uint8_t T1 = 1;
static const uint8_t T2 = 2;
static const uint8_t T3 = 3;
static const uint8_t T4 = 4;
static const uint8_t T5 = 5;
static const uint8_t T6 = 6;
static const uint8_t T7 = 7;
static const uint8_t T8 = 8;
static const uint8_t T9 = 9;
static const uint8_t T10 = 10;
static const uint8_t T11 = 11;
static const uint8_t T12 = 12;
static const uint8_t T13 = 13;
static const uint8_t T14 = 14;
#endif /* Pins_Arduino_h */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment