improve support for -S2
got myself an adafruit "qt py -S2" with tinyUF2 bootloader. So I wanted to get that working. And it does work :-). FFT time = 10ms (instead of 2ms on classic ESP32) is a very good result, also virtual USB runs much better now.
This commit is contained in:
@@ -134,6 +134,7 @@ build_flags =
|
||||
-D DECODE_SONY=true
|
||||
-D DECODE_SAMSUNG=true
|
||||
-D DECODE_LG=true
|
||||
-D DECODE_RC5=true
|
||||
; -Dregister= # remove warnings in C++17 due to use of deprecated register keyword by the FastLED library
|
||||
-DWLED_USE_MY_CONFIG
|
||||
; -D USERMOD_SENSORSTOMQTT
|
||||
@@ -616,7 +617,7 @@ lib_deps_min =
|
||||
|
||||
build_flags_max =
|
||||
-D WLED_MAX_USERMODS=9 ; default only 4-6
|
||||
-D ARDUINO_USB_CDC_ON_BOOT=0 ; needed for arduino-esp32 >=2.0.4 ewowi to softhack: move to build_flags_min?
|
||||
;; -D ARDUINO_USB_CDC_ON_BOOT=0 ; needed for arduino-esp32 >=2.0.4 ewowi to softhack: move to build_flags_min? - We need a different solution
|
||||
-D WLED_USE_MY_CONFIG ; include custom my_config.h ewowi to softhack: redundant as also in build_flags_min?
|
||||
-D USERMOD_DALLASTEMPERATURE
|
||||
-D USE_ALT_DISPLAY ; new versions of USERMOD_FOUR_LINE_DISPLAY and USERMOD_ROTARY_ENCODER_UI
|
||||
@@ -874,6 +875,67 @@ board_build.flash_mode = qio
|
||||
; RAM: [== ] 24.7% (used 80856 bytes from 327680 bytes)
|
||||
; Flash: [======= ] 66.9% (used 1403489 bytes from 2097152 bytes)
|
||||
|
||||
;; MM max for Adafruit QT Py ESP32-S2 -> 4MB flash, PSRAM, and tinyUF2 bootloader
|
||||
;; to ewowi - i'll optimize this entry later, as a few things can be inherited for sure
|
||||
[env:esp32s2_tinyUF2_PSRAM_max]
|
||||
extends = esp32_4MB_V4_min_base
|
||||
platform = ${esp32.platformV4}
|
||||
platform_packages = ${esp32.platformV4_packages}
|
||||
|
||||
board = adafruit_qtpy_esp32s2
|
||||
board_build.partitions = tools/partitions-4MB-tinyuf2_spiffs.csv ;; this is needed for tinyUF2 bootloader!
|
||||
board_build.f_flash = 80000000L
|
||||
board_build.flash_mode = qio
|
||||
upload_speed = 256000 ;; 921600
|
||||
build_unflags = ${common.build_unflags}
|
||||
-D USERMOD_DALLASTEMPERATURE ;; disabled because it hangs during usermod setup on -S2 (autodetect broken?)
|
||||
-D USE_ALT_DISPLAY ;; four line display seems to have problems with I2C - it hangs during usermod setup
|
||||
-D USERMOD_FOUR_LINE_DISPLAY ;; see above
|
||||
-D USERMOD_ROTARY_ENCODER_UI ;; see above
|
||||
-D WLED_ENABLE_DMX ;; disabled because it does not work with ESP-IDF 4.4.x (buggy driver in SparkFunDMX)
|
||||
|
||||
build_flags = ${common.build_flags} ${esp32.build_flagsV4} ${esp32s2.build_flags}
|
||||
-D WLED_WATCHDOG_TIMEOUT=0 -D CONFIG_ASYNC_TCP_USE_WDT=0
|
||||
${common_mm.build_flags_min} ${common_mm.build_flags_max}
|
||||
-Wno-misleading-indentation -Wno-format-truncation
|
||||
-D WLED_RELEASE_NAME=esp32S2_4MB_UF2_max
|
||||
-DARDUINO_USB_CDC_ON_BOOT=1 ;; mandatory, otherwise USB does not work!!
|
||||
-DARDUINO_USB_MSC_ON_BOOT=0 -DARDUINO_USB_DFU_ON_BOOT=0
|
||||
-D SERVERNAME='"WLED-S2"'
|
||||
-D WLED_USE_PSRAM
|
||||
-D WLED_DISABLE_INFRARED ;; save flash space
|
||||
-D WLED_DISABLE_ALEXA ;; save flash space
|
||||
-D LEDPIN=39 ;; onboard neopixel LED. Attach your own LEDs to GPIO 7 or GPIO 6
|
||||
-D BTNPIN=0
|
||||
;-D RLYPIN=6
|
||||
;-D IRPIN=7
|
||||
-D HW_PIN_SCL=40
|
||||
-D HW_PIN_SDA=41
|
||||
-D HW_PIN_DATASPI=35
|
||||
-D HW_PIN_CLOCKSPI=36
|
||||
-D HW_PIN_MISOSPI=37
|
||||
-D AUDIOPIN=-1
|
||||
-D SR_DMTYPE=1
|
||||
-D I2S_SDPIN=9
|
||||
-D I2S_WSPIN=8
|
||||
-D I2S_CKPIN=17
|
||||
-D MCLK_PIN=18
|
||||
;-D STATUSLED=-1
|
||||
-D WLED_USE_MY_CONFIG
|
||||
; -D WLED_DEBUG_HOST='"192.168.xxx.xxx"' ;; to send debug messages over network to host 192.168.x.y - FQDN is also possible
|
||||
; -D WLED_DEBUG_NET_PORT=1768 ;; port for network debugging. default = 7868
|
||||
; -D WLED_DEBUG
|
||||
; -D SR_DEBUG
|
||||
; -D MIC_LOGGER
|
||||
lib_deps = ${env.lib_deps} ${esp32s2.lib_deps} ${common_mm.lib_deps_min} ${common_mm.lib_deps_max}
|
||||
paulstoffregen/OneWire@ ^2.3.7 ; used for USERMOD_DALLASTEMPERATURE -> need newer release with bugfixes for -S3; still requires TEMPERATURE_PIN < 46
|
||||
olikraus/U8g2@ ^2.34.5 ; used for USERMOD_FOUR_LINE_DISPLAY -> need newer version with bugfixes for arduino-esp32 v2.0.4 (Wire inititialization)
|
||||
ElectronicCats/MPU6050 @ 0.6.0 ; used for USERMOD_MPU6050_IMU
|
||||
lib_ignore = IRremoteESP8266 ; use with WLED_DISABLE_INFRARED for faster compilation
|
||||
monitor_filters = esp32_exception_decoder
|
||||
; RAM: [=== ] 25.6% (used 83796 bytes from 327680 bytes)
|
||||
; Flash: [==========] 97.7% (used 1408626 bytes from 1441792 bytes)
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# custom board configurations
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user