Skip to content

Commit

Permalink
Updated environment FW esp32s3 v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bangnguyendev committed Jun 6, 2024
1 parent 08bd478 commit 28281d2
Showing 1 changed file with 57 additions and 6 deletions.
63 changes: 57 additions & 6 deletions platformio_override.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@
# Please visit documentation: https://docs.platformio.org/page/projectconf.html

[platformio]
default_envs = d1_mini
; default_envs = d1_mini
; default_envs = esp32dev
; default_envs = d1_mini, esp32dev
default_envs = esp32s3dev_8MB_PSRAM_opi
; default_envs = esp32dev, esp32s3dev_8MB_PSRAM_opi
; default_envs = d1_mini, esp32dev, esp32s3dev_8MB_PSRAM_opi

[env:d1_mini]
board = d1_mini
Expand All @@ -19,6 +21,7 @@ build_unflags = ${common.build_unflags}
build_flags = ${common.build_flags_esp8266} -D WLED_RELEASE_NAME=ESP8266
-D USERMOD_AUTO_SAVE
-D AUTOSAVE_AFTER_SEC=10
-D AUTOSAVE_PRESET_NUM=100
-D USERMOD_AUTO_SAVE_ON_BOOT=true
-D USERMOD_ANALOG_CLOCKQ
; -D USERMOD_MODE_SORT
Expand All @@ -27,7 +30,11 @@ build_flags = ${common.build_flags_esp8266} -D WLED_RELEASE_NAME=ESP8266
; -D WLED_DISABLE_INFRARED # IR dieu khien hong ngoai
-D WLED_ADD_EEPROM_SUPPORT
-D DEFAULT_LED_COLOR_ORDER=COL_ORDER_GRB
-D LEDPIN=12
; #if defined(ESP8266) || (defined(ARDUINO_ARCH_ESP32) && defined(WLED_USE_PSRAM)) || defined(CONFIG_IDF_TARGET_ESP32C3) || defined(ARDUINO_ESP32_PICO)
; #define LEDPIN 2 // GPIO2 (D4) on Wemos D1 mini compatible boards, and on boards where GPIO16 is not available
; #else
; #define LEDPIN 16 // aligns with GPIO2 (D4) on Wemos D1 mini32 compatible boards
-D LEDPIN=2
-D BTNPIN=0
-D TOUCHPIN=T0
-D IRPIN=4
Expand All @@ -36,14 +43,14 @@ lib_deps = ${esp8266.lib_deps}
; change MCU frequency
board_build.f_cpu = 160000000L
; setupCOM
upload_port = COM[3]
; upload_port = COM[4]

[env:esp32dev]
board = esp32dev
platform = ${esp32.platform}
platform_packages = ${esp32.platform_packages}
build_unflags = ${common.build_unflags}
build_flags = ${common.build_flags_esp32} -D WLED_RELEASE_NAME=ESP32 #-D WLED_DISABLE_BROWNOUT_DET
build_flags = ${common.build_flags_esp32} -D WLED_RELEASE_NAME=ESP32 #-D WLED_DISABLE_BROWNOUT_DET ${esp32s3.build_flags}
-D USERMOD_AUTO_SAVE
-D AUTOSAVE_AFTER_SEC=10
-D USERMOD_AUTO_SAVE_ON_BOOT=true
Expand All @@ -53,7 +60,51 @@ lib_deps = ${esp32.lib_deps}
monitor_filters = esp32_exception_decoder
board_build.partitions = ${esp32.default_partitions}
; setupCOM
upload_port = COM[5]
; upload_port = COM[5]

[env:esp32s3dev_8MB_PSRAM_opi]
;; ESP32-S3 development board, with 8MB FLASH and >= 8MB PSRAM (memory_type: qio_opi)
board = esp32-s3-devkitc-1 ;; generic dev board; the next line adds PSRAM support
board_build.arduino.memory_type = qio_opi ;; use with PSRAM: 8MB or 16MB
platform = ${esp32s3.platform}
platform_packages = ${esp32s3.platform_packages}
upload_speed = 921600
build_unflags = ${common.build_unflags}
build_flags = ${common.build_flags} ${esp32s3.build_flags} -D WLED_RELEASE_NAME=ESP32_S3_N8R8
-D CONFIG_LITTLEFS_FOR_IDF_3_2
-D WLED_WATCHDOG_TIMEOUT=0
-D ARDUINO_USB_CDC_ON_BOOT=0 ;; -D ARDUINO_USB_MODE=1 ;; for boards with serial-to-USB chip
; -D ARDUINO_USB_CDC_ON_BOOT=1 -D ARDUINO_USB_MODE=1 ;; for boards with USB-OTG connector only (USBCDC or "TinyUSB")
; -D WLED_RELEASE_NAME=ESP32-S3_PSRAM
-D WLED_USE_PSRAM
-D BOARD_HAS_PSRAM ; tells WLED that PSRAM shall be used
-D USERMOD_AUTO_SAVE
-D AUTOSAVE_AFTER_SEC=10
-D AUTOSAVE_PRESET_NUM=100
-D USERMOD_AUTO_SAVE_ON_BOOT=true
; -D USERMOD_ANALOG_CLOCKQ
-D TEMPERATURE_PIN=12
-D IRPIN=15
-D LEDPIN=16
-D BTNPIN=17
; -D RLYPIN=18
; -D HW_PIN_SCL=35
; -D HW_PIN_SDA=33
; -D HW_PIN_CLOCKSPI=7
; -D HW_PIN_DATASPI=11
; -D HW_PIN_MISOSPI=9
-D USERMOD_DALLASTEMPERATURE
; -D USERMOD_FOUR_LINE_DISPLAY

; -D USE_ALT_DISPlAY ; new versions of USERMOD_FOUR_LINE_DISPLAY and USERMOD_ROTARY_ENCODER_UI
; -D USERMOD_AUDIOREACTIVE
lib_deps = ${esp32s3.lib_deps}
OneWire@~2.3.5
olikraus/U8g2 @ ^2.28.8
board_build.partitions = tools/WLED_ESP32_8MB.csv
board_build.f_flash = 80000000L
board_build.flash_mode = qio
monitor_filters = esp32_exception_decoder

; [env:WLED_tasmota_1M]
; board = esp01_1m
Expand Down

0 comments on commit 28281d2

Please sign in to comment.