Skip to content

Commit

Permalink
Move ledsV to AppModLeds and use as parameter in effects
Browse files Browse the repository at this point in the history
pio.ini: add lolin_d32 (wip)

AppEffects
- add ledsV as parameter in setup and loop
- remove XY (not needed for blur2D anymore), use ledsV.XY

AppLedsV: remove static ledsV

AppModLeds:
- ledsV as local var
- fx: call setEffect with ledsV as parameter
- loop: call effects.loop with ledsV as parameter

AppModPreview, ArtNet and DDP: use lds->ledsV
  • Loading branch information
ewowi committed Jan 25, 2024
1 parent 417fabf commit ba989a8
Show file tree
Hide file tree
Showing 8 changed files with 111 additions and 99 deletions.
30 changes: 30 additions & 0 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,36 @@ build_flags =
lib_deps =
https://github.com/netmindz/WLED-sync#v0.14.0.b16

[env:lolin_d32]
board = lolin_d32 ;https://github.com/platformio/platform-espressif32/blob/develop/boards/esp32dev.json
; recommended to pin to a platform version, see https://github.com/platformio/platform-espressif32/releases
platform = [email protected] ;using platformio/framework-arduinoespressif32 @ ~3.20014.0 / framework-arduinoespressif32 @ 3.20014.231204 (2.0.14)
framework = arduino
monitor_speed = 115200
monitor_filters = esp32_exception_decoder
; board_build.partitions = tools/WLED_ESP32_4MB_256KB_FS.csv ;; 1.8MB firmware, 256KB filesystem (esptool erase_flash needed when changing from "standard WLED" partitions)
board_build.filesystem = littlefs
; board_build.f_flash = 80000000L ; use full 80MHz speed for flash (default = 40Mhz)
; board_build.flash_mode = dio ; (dio = dual i/o; more compatible than qio = quad i/o)
; build_type = debug ;increases flash size!
build_flags =
; -DCONFIG_IDF_TARGET_ESP32=1
; -DCONFIG_ASYNC_TCP_USE_WDT=0
; -DLFS_THREADSAFE ;; enables use of semaphores in LittleFS driver
; -DARDUINO_USB_CDC_ON_BOOT=0 ;; Make sure that the right HardwareSerial driver is picked in arduino-esp32 (needed on "classic ESP32")
${appmod_leds.build_flags}
${usermod_e131.build_flags}
; ${usermod_ha.build_flags}
${usermod_wledaudio.build_flags}
lib_deps =
${starmod.lib_deps}
${appmod_leds.lib_deps}
${usermod_e131.lib_deps}
; ${usermod_ha.lib_deps}
${usermod_wledaudio.lib_deps}
; RAM: [== ] 15.6% (used 51124 bytes from 327680 bytes)
; Flash: [======= ] 68.1% (used 892033 bytes from 1310720 bytes)

[env:esp32dev]
board = esp32dev ;https://github.com/platformio/platform-espressif32/blob/develop/boards/esp32dev.json
; recommended to pin to a platform version, see https://github.com/platformio/platform-espressif32/releases
Expand Down
Loading

0 comments on commit ba989a8

Please sign in to comment.