Skip to content

Commit 6199eba

Browse files
committed
MM environment for ESP32-C3 "mini" and "super mini" ( #101)
1 parent f7bfaf0 commit 6199eba

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

platformio.ini

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ default_envs =
7777
;; esp32s2_tinyUF2_PSRAM_S ;; experimental - only for adafruit -S2 boards with tinyUF2 bootloader !!!
7878
esp32s2_PSRAM_M ;; experimental
7979
esp32c3dev_4MB_M ;; experimental
80+
esp32c3mini_dio_4MB_M ;; for boards that need "dio" flash mode (instead of qio)
8081
seeed_esp32c3_4MB_S ;; experimental
8182
esp32_4MB_V4_S ;; experimental
8283
esp32_16MB_V4_S ;; experimental, optimized for speed
@@ -1966,6 +1967,23 @@ lib_ignore =
19661967
; RAM: [== ] 23.7% (used 77780 bytes from 327680 bytes)
19671968
; Flash: [========= ] 93.9% (used 1477456 bytes from 1572864 bytes)
19681969

1970+
;; MM environment for ESP32-C3 "mini" and "super mini" -> flash mode "dio" instead of "qio" (see #101)
1971+
[env:esp32c3mini_dio_4MB_M]
1972+
extends = env:esp32c3dev_4MB_M
1973+
board = lolin_c3_mini
1974+
board_build.flash_mode = dio ;; some super-mini boards are unstable with "qio" mode
1975+
;; board_build.partitions = tools/WLED_ESP32_4MB_256KB_FS.csv ;; optional: 1.8MB firmware, 256KB filesystem (esptool erase_flash needed when changing from "standard WLED" partitions)
1976+
;;; replace WLED_RELEASE_NAME, disable CDC_ON_BOOT
1977+
build_unflags = ${env:esp32c3dev_4MB_M.build_unflags}
1978+
-DARDUINO_USB_CDC_ON_BOOT=1
1979+
-D WLED_RELEASE_NAME=esp32c3dev_4MB_M
1980+
build_flags = ${env:esp32c3dev_4MB_M.build_flags}
1981+
-DARDUINO_USB_CDC_ON_BOOT=0
1982+
-D WLED_RELEASE_NAME=esp32c3mini_dio_4MB_M
1983+
-D WLED_DISABLE_BROWNOUT_DET ;; the board only has a 500mA LDO, better to disable brownout detection
1984+
-D WLED_DISABLE_ADALIGHT ;; to disable serial protocols for boards with CDC USB (Serial RX will receive junk commands, unless its pulled down by resistor)
1985+
-D HW_PIN_SDA=0 -D HW_PIN_SCL=1 ;; avoid pin conflicts
1986+
19691987
;; MM environment for "seeed xiao -C3" boards
19701988
[env:seeed_esp32c3_4MB_S]
19711989
extends = env:esp32c3dev_4MB_M

0 commit comments

Comments
 (0)