Skip to content

Commit

Permalink
separate physical and virtual driver builds
Browse files Browse the repository at this point in the history
package.json updates

pio.ini
- separate physical and virtual driver builds
  • Loading branch information
ewowi committed Dec 16, 2024
1 parent f5f9021 commit 3b05adc
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 37 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "StarBase",
"version": "0.0.0",
"description": "Tools for StarBase",
"name": "starlight",
"version": "0.6.0",
"description": "Tools for StarLight",
"main": "tools/cdata.js",
"directories": {
"lib": "lib",
Expand All @@ -13,14 +13,14 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/ewowi/StarBase.git"
"url": "git+https://github.com/MoonModules/StarLight.git"
},
"author": "MoonModules",
"license": "GPL-3.0-only",
"bugs": {
"url": "https://github.com/ewowi/StarBase/issues"
"url": "https://github.com/MoonModules/StarLight/issues"
},
"homepage": "https://github.com/ewowi/StarBase#readme",
"homepage": "https://github.com/MoonModules/StarLight#readme",
"dependencies": {
"clean-css": "^4.2.3",
"html-minifier-terser": "^5.1.1",
Expand Down
92 changes: 65 additions & 27 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -203,33 +203,14 @@ board = esp32dev ;https://github.com/platformio/platform-espressif32/blob/develo
; 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)
upload_speed = 1500000
build_flags =
${env.build_flags}
-D CONFIG_IDF_TARGET_ESP32=1
-D ARDUINO_USB_CDC_ON_BOOT=0 ; Make sure that the right HardwareSerial driver is picked in arduino-esp32 (needed on "classic ESP32")
-D STARBASE_BOOT_BUTTON_PIN=0 ; boot pin on the esp32 board
${STARLIGHT_CLOCKLESS_LED_DRIVER.build_flags}
lib_deps =
${env.lib_deps}
${STARLIGHT_CLOCKLESS_LED_DRIVER.lib_deps}

; ;LEDs specific builds
[env:esp32devICVLD]
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
platform = [email protected] ;using platformio/framework-arduinoespressif32 @ ~3.20014.0 / framework-arduinoespressif32 @ 3.20014.231204 (2.0.14)
upload_speed = 1500000
build_flags =
${env.build_flags}
-D CONFIG_IDF_TARGET_ESP32=1
-D ARDUINO_USB_CDC_ON_BOOT=0 ; Make sure that the right HardwareSerial driver is picked in arduino-esp32 (needed on "classic ESP32")
-D STARBASE_BOOT_BUTTON_PIN=0 ; boot pin on the esp32 board
-D STARLIGHT_MAXLEDS=12288 ;LEDs specific
${STARLIGHT_CLOCKLESS_VIRTUAL_LED_DRIVER.build_flags}
-D STARLIGHT_LIVE_MAPPING
lib_deps =
${env.lib_deps}
${STARLIGHT_CLOCKLESS_VIRTUAL_LED_DRIVER.lib_deps}

; https://github.com/platformio/platform-espressif32/issues/1360
; https://community.platformio.org/t/support-esp32-wrover-module/17717
Expand All @@ -247,16 +228,10 @@ build_flags =
-DBOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
-D STARBASE_BOOT_BUTTON_PIN=0 ; boot pin on the esp32 board, works!
; ${STARLIGHT_CLOCKLESS_LED_DRIVER.build_flags}
${STARLIGHT_CLOCKLESS_VIRTUAL_LED_DRIVER.build_flags}
-D STARLIGHT_MAXLEDS=12288 ;LEDs specific
; -D STARLIGHT_LIVE_MAPPING
lib_deps =
${env.lib_deps}
; ${STARLIGHT_CLOCKLESS_LED_DRIVER.lib_deps}
${STARLIGHT_CLOCKLESS_VIRTUAL_LED_DRIVER.lib_deps}

;End LEDs specific builds

[env:pico32]
board = pico32 ;https://github.com/platformio/platform-espressif32/blob/develop/boards/pico32.json
Expand Down Expand Up @@ -373,17 +348,80 @@ build_flags =
-D STARBASE_LOLIN_WIFI_FIX ; shouldn't be necessary, but otherwise WiFi issues on my board
-D STARBASE_BOOT_BUTTON_PIN=0 ; boot pin on the esp32 board
-D STARLIGHT_MAXLEDS=16384 ;LEDs specific
${STARLIGHT_CLOCKLESS_VIRTUAL_LED_DRIVER.build_flags}
lib_deps =
${env.lib_deps}
${STARLIGHT_CLOCKLESS_VIRTUAL_LED_DRIVER.lib_deps}

; RAM: [== ] 18.7% (used 61404 bytes from 327680 bytes)
; Flash: [===== ] 48.7% (used 1530457 bytes from 3145728 bytes)




; LEDs specific builds (Physical and virtual driver)

[env:esp32devPD]
extends = env:esp32dev
build_flags =
${env:esp32dev.build_flags}
; ${STARLIGHT_CLOCKLESS_LED_DRIVER.build_flags}
lib_deps =
${env:esp32dev.lib_deps}
; ${STARLIGHT_CLOCKLESS_LED_DRIVER.lib_deps}

[env:esp32devVD]
extends = env:esp32dev
build_flags =
${env:esp32dev.build_flags}
${STARLIGHT_CLOCKLESS_VIRTUAL_LED_DRIVER.build_flags}
-D STARLIGHT_LIVE_MAPPING
lib_deps =
${env:esp32dev.lib_deps}
${STARLIGHT_CLOCKLESS_VIRTUAL_LED_DRIVER.lib_deps}

[env:esp-wrover-kitPD]
extends = env:esp-wrover-kit
build_flags =
${env:esp-wrover-kit.build_flags}
${STARLIGHT_CLOCKLESS_LED_DRIVER.build_flags}
lib_deps =
${env:esp-wrover-kit.lib_deps}
${STARLIGHT_CLOCKLESS_LED_DRIVER.lib_deps}

[env:esp-wrover-kitVD]
extends = env:esp-wrover-kit
build_flags =
${env:esp-wrover-kit.build_flags}
${STARLIGHT_CLOCKLESS_VIRTUAL_LED_DRIVER.build_flags}
-D STARLIGHT_LIVE_MAPPING
lib_deps =
${env:esp-wrover-kit.lib_deps}
${STARLIGHT_CLOCKLESS_VIRTUAL_LED_DRIVER.lib_deps}


[env:esp32-s3-devkitc-1-n16r8vVD]
extends = env:esp32-s3-devkitc-1-n16r8v
build_flags =
${env:esp32-s3-devkitc-1-n16r8v.build_flags}
${STARLIGHT_CLOCKLESS_VIRTUAL_LED_DRIVER.build_flags}
; -D STARLIGHT_LIVE_MAPPING
lib_deps =
${env:esp32-s3-devkitc-1-n16r8v.lib_deps}
${STARLIGHT_CLOCKLESS_VIRTUAL_LED_DRIVER.lib_deps}

;End LEDs specific builds















; [env:lolin_c3_mini]
Expand Down

0 comments on commit 3b05adc

Please sign in to comment.