Skip to content

Buildenv update - #27

Merged
SteveEisner merged 3 commits into
SteveEisner:mainfrom
craiglink:buildenv-update
Jul 1, 2024
Merged

SteveEisner merged 3 commits into
SteveEisner:mainfrom
craiglink:buildenv-update

Conversation

@craiglink

Copy link
Copy Markdown
Collaborator
  • add support for ESP32S3
    
  • add support for ESP32-S3-Matrix
    
  • update Build Environment to latest Ardunio-Espressif32 PlatformIO build 6.7.0 / 3.20017.0
    
  • update libraries include FastLED which supports Hardware SPI for ESP32
    

add support for ESP32-S3-Matrix
update Build Environment to latest Ardunio-Espressif32 PlatformIO build 6.7.0 / 3.20017.0
update libraries include FastLED which supports Hardware SPI for ESP32
@craiglink

Copy link
Copy Markdown
Collaborator Author

@SteveEisner is issue I was seeing this weekend is from another code change / optimization that is not present in the pull request

@@ -0,0 +1,6 @@
# Name, Type, SubType, Offset, Size, Flags

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wow. I don't know how to review this ;)

Comment thread usermods/Tubes/debug.h
freeMemory(),
LITTLEFS.usedBytes(),
LITTLEFS.totalBytes(),
WLED_FS.usedBytes(),

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can rebase this out now


#ifdef UM_AUDIOREACTIVE_USE_NEW_FFT
FFT.majorPeak(FFT_MajorPeak, FFT_Magnitude); // let the effects know which freq was most dominant
FFT.majorPeak(&FFT_MajorPeak, &FFT_Magnitude); // let the effects know which freq was most dominant

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should contribute this upstream? or I wonder if I merge the branch to a later version if they've found and fixed this

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like they've done something similar already: ecc9443

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've just merged this into the WLEDtubes/main branch, so you should be able to rebase/merge your PR branch and remove this fix

Comment thread usermods/Tubes/Tubes.h
pinMode(LEGACY_PIN, INPUT_PULLUP);
if (digitalRead(MASTER_PIN) == LOW) {

if (pinManager.isPinOk(MASTER_PIN)) {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is great - I assume we need to fix code in master.h too, where it reads button pins etc

Comment thread platformio.ini
@@ -47,8 +47,9 @@ default_envs = nodemcuv2, esp8266_2m, esp01_1m_full, nodemcuv2_160, esp8266_2m_1
src_dir = ./wled00
data_dir = ./wled00/data
build_cache_dir = ~/.buildcache

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll pull this into my branch, it's mostly unreviewed
I suspect we should just contribute this part upstream to get a good review on it
and so we don't have to continuously merge

@SteveEisner

SteveEisner commented Jun 30, 2024 •

Copy link
Copy Markdown
Owner

Looks like it fails on two builds due to VSPI being missing. I'll try bringing it local to understand why that's not available, unless you know of an obvious reason based on your changes!

Builds failing: lolin_s2_mini, esp32c3dev (but for instance esp32s3dev_8MB passes!)

@craiglink

craiglink commented Jul 1, 2024 via email

Copy link
Copy Markdown
Collaborator Author

@SteveEisner

Copy link
Copy Markdown
Owner

I'd like to be able to contribute back parts of this. Not immediately but eventually.

There are some simple things - like the bug you found in audioreactive - that seem like easy candidates. Changing the platformio.ini will be harder, but having their review on it will be useful and I think they'd appreciate the help upgrading to later FastLED and so on.

@SteveEisner

Copy link
Copy Markdown
Owner

For now, I'd just like to get the build process fixed so that I can merge the PR. I could merge it broken but then it'll continue to break for all future PRs, might as well investigate to see what's wrong!

@SteveEisner

Copy link
Copy Markdown
Owner

Seems related to: FastLED/FastLED#1615

Comment thread platformio.ini
-DCONFIG_IDF_TARGET_ESP32C3=1
-D ARDUINO_ARCH_ESP32
-D ARDUINO_ARCH_ESP32C3
-D FASTLED_ALL_PINS_HARDWARE_SPI

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and -D FASTLED_ESP32_SPI_BUS=HSPI in this case

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this plus -D FASTLED_ESP32_SPI_BUS=FSPI for the lolin_s2_mini target gets past the build errors.

@SteveEisner
SteveEisner merged commit 2f3eac8 into SteveEisner:main Jul 1, 2024
@craiglink
craiglink deleted the buildenv-update branch August 9, 2024 16:51
SteveEisner added a commit that referenced this pull request Feb 20, 2026
Buildenv update to support later FastLED versions
SteveEisner added a commit that referenced this pull request Feb 20, 2026
Buildenv update to support later FastLED versions

(cherry picked from commit 60ac971a003467937d56eace14d12a5d737ef5b5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants