Skip to content

esp32/boards: Added LOLIN_S2_MINI ESP32-S2 Board #7803

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

Closed
wants to merge 2 commits into from
Closed
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
2 changes: 2 additions & 0 deletions ports/esp32/boards/LOLIN_S2_MINI/manifest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include("$(PORT_DIR)/boards/manifest.py")
freeze("./modules")
33 changes: 33 additions & 0 deletions ports/esp32/boards/LOLIN_S2_MINI/modules/s2mini.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# LOLIN S2 MINI MicroPython Helper Library


from micropython import const
from machine import Pin

# Pin Assignments


# SPI
SPI_MOSI = const(11)
SPI_MISO = const(9)
SPI_CLK = const(7)

# I2C
I2C_SDA = const(33)
I2C_SCL = const(35)

# DAC
DAC1 = const(17)
DAC2 = const(18)

# LED
LED = const(15)

# BUTTON
BUTTON = const(0)

# Helper methods for built in sensors

led = Pin(LED, Pin.OUT, value=0)

button = Pin(BUTTON, Pin.IN, Pin.PULL_UP)
10 changes: 10 additions & 0 deletions ports/esp32/boards/LOLIN_S2_MINI/mpconfigboard.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
set(IDF_TARGET esp32s2)
set(SDKCONFIG_DEFAULTS
boards/sdkconfig.base
boards/sdkconfig.spiram_sx
boards/sdkconfig.usb
)

if(NOT MICROPY_FROZEN_MANIFEST)
set(MICROPY_FROZEN_MANIFEST ${MICROPY_BOARD_DIR}/manifest.py)
endif()
12 changes: 12 additions & 0 deletions ports/esp32/boards/LOLIN_S2_MINI/mpconfigboard.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#define MICROPY_HW_BOARD_NAME "LOLIN_S2_MINI"
#define MICROPY_HW_MCU_NAME "ESP32-S2FN4R2"

#define MICROPY_PY_BLUETOOTH (0)
#define MICROPY_HW_ENABLE_SDCARD (0)

#define MICROPY_HW_I2C0_SCL (35)
#define MICROPY_HW_I2C0_SDA (33)

#define MICROPY_HW_SPI1_MOSI (11)
#define MICROPY_HW_SPI1_MISO (9)
#define MICROPY_HW_SPI1_SCK (7)
6 changes: 6 additions & 0 deletions ports/esp32/boards/LOLIN_S2_MINI/sdkconfig.board
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
CONFIG_FLASHMODE_QIO=y
CONFIG_ESPTOOLPY_FLASHFREQ_80M=y
CONFIG_USB_AND_UART=y
# LWIP
CONFIG_LWIP_LOCAL_HOSTNAME="LOLIN_S2_MINI"
# end of LWIP
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy