8000 /esp32/boards: Add LOLIN_S3_PRO board definition. by mattytrentini · Pull Request #17290 · micropython/micropython · GitHub
[go: up one dir, main page]

Skip to content

/esp32/boards: Add LOLIN_S3_PRO board definition. #17290

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
28 changes: 28 additions & 0 deletions ports/esp32/boards/LOLIN_S3_PRO/board.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"deploy": [
"../deploy.md"
],
"deploy_options": {
"flash_offset": "0"
},
"docs": "",
"features": [
"BLE",
"Battery Charging",
"External Flash",
"External RAM",
"Feather",
"JST-SH",
"RGB LED",
"USB-C",
"WiFi"
],
"images": [
"lolin_s3_pro.jpg"
],
"mcu": "esp32s3",
"product": "S3 Pro",
"thumbnail": "",
"url": "https://www.wemos.cc/en/latest/s3/s3_pro.html",
"vendor": "Wemos"
}
1 change: 1 addition & 0 deletions ports/esp32/boards/LOLIN_S3_PRO/board.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The following files are firmware for the Wemos Lolin S3 Pro.
1 change: 1 addition & 0 deletions ports/esp32/boards/LOLIN_S3_PRO/manifest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include("$(PORT_DIR)/boards/manifest.py")
12 changes: 12 additions & 0 deletions ports/esp32/boards/LOLIN_S3_PRO/mpconfigboard.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
set(IDF_TARGET esp32s3)

set(SDKCONFIG_DEFAULTS
boards/sdkconfig.base
boards/sdkconfig.usb
boards/sdkconfig.ble
boards/sdkconfig.240mhz
boards/sdkconfig.spiram_oct
boards/LOLIN_S3_PRO/sdkconfig.board
)

set(MICROPY_FROZEN_MANIFEST ${MICROPY_BOARD_DIR}/manifest.py)
10 changes: 10 additions & 0 deletions ports/esp32/boards/LOLIN_S3_PRO/mpconfigboard.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#define MICROPY_HW_BOARD_NAME "LOLIN_S3_PRO"
#define MICROPY_HW_MCU_NAME "ESP32S3"
#define MICROPY_PY_NETWORK_HOSTNAME_DEFAULT "LolinS3Pro"

#define MICROPY_HW_I2C0_SCL (10)
#define MICROPY_HW_I2C0_SDA (9)

#define MICROPY_HW_SPI1_MOSI (11)
#define MICROPY_HW_SPI1_MISO (13)
#define MICROPY_HW_SPI1_SCK (12)
16 changes: 16 additions & 0 deletions ports/esp32/boards/LOLIN_S3_PRO/pins.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
BOOT,GPIO0
RGB_LED,GPIO38
I2C_SCL,GPIO10
I2C_SDA,GPIO9
SPI_CS,GPIO46
SPI_MOSI,GPIO11
SPI_SCK,GPIO12
SPI_MISO,GPIO13
TS_CS,GPIO45
TFT_CS,GPIO48
TFT_DC,GPIO47
TFT_RST,GPIO21
TFT_LED,GPIO14
TF_CS,GPIO46
TX0,GPIO43
RX0,GPIO44
15 changes: 15 additions & 0 deletions ports/esp32/boards/LOLIN_S3_PRO/sdkconfig.board
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
CONFIG_ESPTOOLPY_FLASHMODE_QIO=y
CONFIG_ESPTOOLPY_FLASHFREQ_80M=y

CONFIG_ESPTOOLPY_FLASHSIZE_4MB=
CONFIG_ESPTOOLPY_FLASHSIZE_8MB=
CONFIG_ESPTOOLPY_FLASHSIZE_16MB=y
CONFIG_SPIRAM_MEMTEST=
CONFIG_PARTITION_TABLE_CUSTOM=y
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions-16MiB.csv"

CONFIG_LWIP_LOCAL_HOSTNAME="LolinS3Pro"

CONFIG_TINYUSB_DESC_MANUFACTURER_STRING="Wemos"
CONFIG_TINYUSB_DESC_PRODUCT_STRING="Lolin S3 Pro"
CONFIG_TINYUSB_DESC_SERIAL_STRING="_s3p_"
Loading
0