Merge branch 'mdev' into pr/163
This commit is contained in:
35
.github/workflows/wled-ci.yml
vendored
35
.github/workflows/wled-ci.yml
vendored
@@ -8,15 +8,15 @@ jobs:
|
|||||||
name: Gather Environments
|
name: Gather Environments
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- name: Cache pip
|
- name: Cache pip
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ~/.cache/pip
|
path: ~/.cache/pip
|
||||||
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
|
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-pip-
|
${{ runner.os }}-pip-
|
||||||
- uses: actions/setup-python@v4
|
- uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.9'
|
python-version: '3.9'
|
||||||
- name: Install PlatformIO
|
- name: Install PlatformIO
|
||||||
@@ -38,21 +38,24 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
environment: ${{ fromJSON(needs.get_default_envs.outputs.environments) }}
|
environment: ${{ fromJSON(needs.get_default_envs.outputs.environments) }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- name: Cache pip
|
- name: Cache pip
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ~/.cache/pip
|
path: ~/.cache/pip
|
||||||
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
|
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-pip-
|
${{ runner.os }}-pip-
|
||||||
- name: Cache PlatformIO
|
- name: Cache PlatformIO
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ~/.platformio
|
path: ~/.platformio
|
||||||
key: ${{ runner.os }}-${{ matrix.environment}}-${{ hashFiles('platformio.ini') }}
|
key: ${{ runner.os }}-${{ matrix.environment}}-${{ hashFiles('platformio.ini') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-${{ matrix.environment}}
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.9'
|
python-version: '3.9'
|
||||||
- name: Install PlatformIO
|
- name: Install PlatformIO
|
||||||
@@ -61,16 +64,16 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
WLED_RELEASE: True
|
WLED_RELEASE: True
|
||||||
run: pio run -e ${{ matrix.environment }}
|
run: pio run -e ${{ matrix.environment }}
|
||||||
- uses: actions/upload-artifact@v2
|
- name: Rename Bin
|
||||||
|
run: mv -v .pio/build/${{ matrix.environment }}/firmware.bin firmware-${{ matrix.environment }}.bin
|
||||||
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: firmware-${{ matrix.environment }}
|
name: firmware-${{ matrix.environment }}
|
||||||
path: |
|
path: firmware-${{ matrix.environment }}.bin
|
||||||
build_output/firmware/*.bin
|
- uses: actions/upload-artifact@v4
|
||||||
build_output/firmware/*.gz
|
|
||||||
- uses: actions/upload-artifact@v2
|
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
with:
|
with:
|
||||||
name: firmware-release
|
name: firmware-release-${{ matrix.environment }}
|
||||||
path: build_output/release/*.bin
|
path: build_output/release/*.bin
|
||||||
release:
|
release:
|
||||||
name: Create Release
|
name: Create Release
|
||||||
@@ -78,9 +81,11 @@ jobs:
|
|||||||
needs: [get_default_envs, build]
|
needs: [get_default_envs, build]
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/download-artifact@v2
|
- uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: firmware-release
|
name: firmware-release-*
|
||||||
|
- name: List Artifacts
|
||||||
|
run: find ./
|
||||||
- name: Create draft release
|
- name: Create draft release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -248,7 +248,7 @@ lib_deps =
|
|||||||
;;makuna/NeoPixelBus @ 2.7.5 ;; WLEDMM will be added in board specific sections
|
;;makuna/NeoPixelBus @ 2.7.5 ;; WLEDMM will be added in board specific sections
|
||||||
;;https://github.com/Aircoookie/ESPAsyncWebServer.git @ ~2.0.7
|
;;https://github.com/Aircoookie/ESPAsyncWebServer.git @ ~2.0.7
|
||||||
;; https://github.com/lost-hope/ESPAsyncWebServer.git#master ;; WLEDMM to display .log and .wled files in /edit
|
;; https://github.com/lost-hope/ESPAsyncWebServer.git#master ;; WLEDMM to display .log and .wled files in /edit
|
||||||
https://github.com/Aircoookie/ESPAsyncWebServer.git @ 2.2.1 ;; newer with bugfixes and stability improvements
|
https://github.com/Aircoookie/ESPAsyncWebServer.git#v2.2.1 ;; newer with bugfixes and stability improvements
|
||||||
#For use of the TTGO T-Display ESP32 Module with integrated TFT display uncomment the following line
|
#For use of the TTGO T-Display ESP32 Module with integrated TFT display uncomment the following line
|
||||||
#TFT_eSPI
|
#TFT_eSPI
|
||||||
#For compatible OLED display uncomment following
|
#For compatible OLED display uncomment following
|
||||||
@@ -297,6 +297,37 @@ lib_deps =
|
|||||||
makuna/NeoPixelBus @ 2.7.5
|
makuna/NeoPixelBus @ 2.7.5
|
||||||
${env.lib_deps}
|
${env.lib_deps}
|
||||||
|
|
||||||
|
;; compatibilty flags - same as 0.14.0 which seems to work better on some 8266 boards. Not using PIO_FRAMEWORK_ARDUINO_MMU_CACHE16_IRAM48
|
||||||
|
build_flags_compat =
|
||||||
|
-DESP8266
|
||||||
|
-DFP_IN_IROM
|
||||||
|
;;-Wno-deprecated-declarations
|
||||||
|
-Wno-misleading-indentation
|
||||||
|
;;-Wno-attributes ;; silence warnings about unknown attribute 'maybe_unused' in NeoPixelBus
|
||||||
|
-DPIO_FRAMEWORK_ARDUINO_ESPRESSIF_SDK22x_190703
|
||||||
|
-DPIO_FRAMEWORK_ARDUINO_LWIP_HIGHER_BANDWIDTH
|
||||||
|
-DVTABLES_IN_FLASH
|
||||||
|
-DMIMETYPE_MINIMAL
|
||||||
|
-DWLED_SAVE_IRAM ;; needed to prevent linker error
|
||||||
|
|
||||||
|
;; this platform version was used for WLED 0.14.0
|
||||||
|
platform_compat = espressif8266@4.2.0
|
||||||
|
platform_packages_compat =
|
||||||
|
platformio/toolchain-xtensa @ ~2.100300.220621 #2.40802.200502
|
||||||
|
platformio/tool-esptool #@ ~1.413.0
|
||||||
|
platformio/tool-esptoolpy #@ ~1.30000.0
|
||||||
|
|
||||||
|
;; experimental - for using older NeoPixelBus 2.7.9
|
||||||
|
lib_deps_compat =
|
||||||
|
ESPAsyncTCP @ 1.2.2
|
||||||
|
ESPAsyncUDP
|
||||||
|
ESP8266PWM
|
||||||
|
fastled/FastLED @ 3.6.0
|
||||||
|
IRremoteESP8266 @ 2.8.2
|
||||||
|
makuna/NeoPixelBus @ 2.7.9
|
||||||
|
https://github.com/Aircoookie/ESPAsyncWebServer.git#v2.2.1
|
||||||
|
|
||||||
|
|
||||||
[esp32]
|
[esp32]
|
||||||
#platform = https://github.com/tasmota/platform-espressif32/releases/download/v2.0.2.3/platform-espressif32-2.0.2.3.zip
|
#platform = https://github.com/tasmota/platform-espressif32/releases/download/v2.0.2.3/platform-espressif32-2.0.2.3.zip
|
||||||
platform = espressif32@3.5.0
|
platform = espressif32@3.5.0
|
||||||
|
|||||||
@@ -2558,6 +2558,7 @@ bool WS2812FX::deserializeMap(uint8_t n) {
|
|||||||
uint16_t maxHeight = atoi(cleanUpName(fileName));
|
uint16_t maxHeight = atoi(cleanUpName(fileName));
|
||||||
//DEBUG_PRINTF(" (\"height\": %s) \n", fileName)
|
//DEBUG_PRINTF(" (\"height\": %s) \n", fileName)
|
||||||
|
|
||||||
|
#ifndef WLEDMM_NO_MAP_RESET
|
||||||
//WLEDMM: support ledmap file properties width and height: if found change segment
|
//WLEDMM: support ledmap file properties width and height: if found change segment
|
||||||
if (maxWidth * maxHeight > 0) {
|
if (maxWidth * maxHeight > 0) {
|
||||||
Segment::maxWidth = maxWidth;
|
Segment::maxWidth = maxWidth;
|
||||||
@@ -2566,6 +2567,7 @@ bool WS2812FX::deserializeMap(uint8_t n) {
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
setUpMatrix(); //reset segment sizes to panels
|
setUpMatrix(); //reset segment sizes to panels
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
USER_PRINTF("deserializeMap %d x %d\n", Segment::maxWidth, Segment::maxHeight);
|
USER_PRINTF("deserializeMap %d x %d\n", Segment::maxWidth, Segment::maxHeight);
|
||||||
|
|||||||
Reference in New Issue
Block a user