Skip to content

Commit

Permalink
ports/esp32/boards: Add WAVESHARE_ESP32_S3_PICO board configuration.
Browse files Browse the repository at this point in the history
Signed-off-by: eng33 <[email protected]>
  • Loading branch information
eng33 committed Oct 31, 2024
1 parent 18c9abc commit 429728b
Show file tree
Hide file tree
Showing 7 changed files with 95 additions and 0 deletions.
23 changes: 23 additions & 0 deletions ports/esp32/boards/WAVESHARE_ESP32_S3_PICO/board.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"deploy": [
"../deploy_s3.md"
],
"docs": "",
"features": [
"BLE",
"External Flash",
"External RAM",
"WiFi"
],
"images": [
"generic_s3.jpg"
],
"mcu": "esp32s3",
"product": "Waveshare ESP32-S3-Pico",
"thumbnail": "",
"url": "https://www.waveshare.com/ESP32-S3-Pico.htm",
"vendor": "Waveshare",
"variants": {
"SPIRAM_OCT": "Support for SPIRAM"
}
}
1 change: 1 addition & 0 deletions ports/esp32/boards/WAVESHARE_ESP32_S3_PICO/board.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The following files are firmware for the WAVESHARE_ESP32_S3_PICO.
2 changes: 2 additions & 0 deletions ports/esp32/boards/WAVESHARE_ESP32_S3_PICO/manifest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include("$(PORT_DIR)/boards/manifest.py")
freeze("modules")
37 changes: 37 additions & 0 deletions ports/esp32/boards/WAVESHARE_ESP32_S3_PICO/modules/pico_gpio.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@

from micropython import const

D0 = const(11)
D1 = const(12)
D2 = const(13)
D3 = const(14)
D4 = const(15)
D5 = const(16)
D6 = const(17)
D7 = const(18)
D8 = const(33)
D9 = const(34)
D10= const(35)
D11= const(36)
D12= const(37)
D13= const(38)
D14= const(39)
D15= const(40)
D16= const(42)
D17= const(41)
D18= const(1)
D19= const(2)
D20= const(4)
D21= const(5)
D22= const(6)
D26= const(7)
D27= const(8)
D28= const(9)

A1= const(7)
A2= const(8)
A3= const(9)

RGB_PIN= const(21)
USB_ADC= const(3)

12 changes: 12 additions & 0 deletions ports/esp32/boards/WAVESHARE_ESP32_S3_PICO/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
${SDKCONFIG_IDF_VERSION_SPECIFIC}
boards/sdkconfig.usb
boards/sdkconfig.ble
boards/sdkconfig.spiram_sx
${MICROPY_BOARD_DIR}/sdkconfig.board
)

set(MICROPY_FROZEN_MANIFEST ${MICROPY_BOARD_DIR}/manifest.py)
11 changes: 11 additions & 0 deletions ports/esp32/boards/WAVESHARE_ESP32_S3_PICO/mpconfigboard.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#ifndef MICROPY_HW_BOARD_NAME
// Can be set by mpconfigboard.cmake.
#define MICROPY_HW_BOARD_NAME "WAVESHARE_ESP32_S3_PICO"
#endif
#define MICROPY_HW_MCU_NAME "ESP32S3"

#define MICROPY_HW_I2C0_SCL (7)
#define MICROPY_HW_I2C0_SDA (6)

// Enable UART REPL for modules that have an external USB-UART and don't use native USB.
#define MICROPY_HW_ENABLE_UART_REPL (1)
9 changes: 9 additions & 0 deletions ports/esp32/boards/WAVESHARE_ESP32_S3_PICO/sdkconfig.board
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
CONFIG_ESPTOOLPY_FLASHMODE_QIO=y
CONFIG_ESPTOOLPY_FLASHFREQ_80M=y
CONFIG_ESPTOOLPY_AFTER_NORESET=y

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

0 comments on commit 429728b

Please sign in to comment.