Skip to content

Refactor platformio.ini - #721

Merged
Aircoookie merged 64 commits into
wled:masterfrom
Def3nder:refactorPIO
Feb 26, 2020
Merged

Aircoookie merged 64 commits into
wled:masterfrom
Def3nder:refactorPIO

Conversation

@Def3nder

Copy link
Copy Markdown
Contributor

Hi @Aircoookie,

I just couldn't get the IR remote from one of my strips working this morning...
...until I noticed that the -D WLED_DISABLE_INFRARED was in the build_flags 😢

...so I decided to refactor the platformio.ini based on the one from ESPurna.

The environments are very small now:

[env:d1_mini]
board = d1_mini
platform = ${common.platform_latest}
board_build.ldscript = ${common.ldscript_4m1m}
build_flags = ${common.build_flags_esp8266}

Do you like this approach ?

Def3nder and others added 30 commits November 5, 2019 15:55
When adding an RGBW device to Alexa and then selecting a white color tone, Alexa will send CT values to the device. Having a warm white or cold white strip should use 100% of that strip and then add the RGB colors to get either a warmer color or a colder one.
Added IR remote with 40 keys to use with RGBW stripes.
...not implemented for ESP32 yet
ESP32 Solid RGBW defines

moved from env:esp32dev to env:esp32
ESP32 Solid RGBW defines
Update readme.md
To turn off IR remote use "0" in the settings, use 1 to 4 for different IR remote types.
adapt the logic to use CW and WW for different CT-values
Changed code from #define WLED_DISABLE_ANALOG_LEDS to #define WLED_USE_ANALOG_LEDS
NightLight used to brighten the light combined with fading from the actual (primary) color to the secondary color
RLYPIN definition dependant on WLED_USE_ANALOG_LEDS

Corrected list-item indents (readme.md)

updated to match upstream master (briLast in wled00.ino)
RLYPIN definition dependant on WLED_USE_ANALOG_LEDS

Fixed headline and corrected list-item indents (readme.md)

updated to match upstream master (briLast in wled00.ino)
@Aircoookie

Copy link
Copy Markdown
Member

I love this style! It is a lot more readable and easy to use!

Just two things before I merge:

  • There are special Travis environments in the bottom to test against different arduino core versions. That can be useful, but I don't think we need them for now. The 2.3.0 causes the build to fail, as WLED doesn't run on Core earlier than 2.4.2.

  • It seems like you accidentally commited wled00.ino.cpp?

Other than that, this is awesome! Thank you :)

@Def3nder

Def3nder commented Feb 26, 2020 •

Copy link
Copy Markdown
Contributor Author

Hi @Aircoookie,

yes - Xose Pérez, the developer behind ESPurna does write really well structured code.
At least I can learn a lot from this 😄

I agree - did just a copy&paste for the travis section - I removed this section as well as the accidently pushed wled00.ino.cpp

@Aircoookie

Copy link
Copy Markdown
Member

Awesome!

@Aircoookie
Aircoookie merged commit a776b8a into wled:master Feb 26, 2020
aenertia pushed a commit to aenertia/WLED that referenced this pull request Aug 18, 2026
* Override script updated accordingly

* ldscriipt for 1m0 adjusted

* backup files deleted

* deletion of wled00,ino.cpp

* remove travis build from PIO
aenertia pushed a commit to aenertia/WLED that referenced this pull request Aug 18, 2026
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