SP511e Compile a smaller Release

Hi Guys, my SP511e is still running. Unfortunately I need 280 LED instead 260 max. allowed in the sp511e.bin. How can I compile a relaese with out Alexa Blink and some other. But with a IR interface.
A hardware discription was in the New Controller thread

[env:sp511e]
board = esp_wroom_02
platform = ${common.platform_wled_default}
board_build.ldscript = ${common.ldscript_2m512k}
build_flags = ${common.build_flags_esp8266} -D LEDPIN=3 -D BTNPIN=2 -D IRPIN=5 -D WLED_MAX_BUTTONS=3
lib_deps = ${esp8266.lib_deps}

Any help welcome.

[env:sp511e]
board = esp_wroom_02
platform = ${common.platform_wled_default}
board_build.ldscript = ${common.ldscript_2m512k}
build_flags = ${common.build_flags_esp8266}
  -D LEDPIN=3
  -D BTNPIN=2
  -D IRPIN=5
  -D WLED_MAX_BUTTONS=3
  -D WLED_DISABLE_BLYNK
  -D WLED_DISABLE_CRONIXIE
  -D WLED_DISABLE_HUESYNC
  -D WLED_DISABLE_LOXONE
  -D WLED_DISABLE_MQTT
  -UWLED_USE_MY_CONFIG
lib_deps = ${esp8266.lib_deps}

Thanks for the quick reply. If there an additional space needed between the -U and WLED…
I saw the wled.h file can I do the changes there?

Danke für die schnelle Antwort. Muss da nicht ein Leerzeichen hinter -U WLed…
Kann ich die Ă„nderungen auch in der Datei wled.h vornehmen.
Gruss Roman

Once you have cloned WLED for your own needs, you are free to change any of the files as long as it adheres to the licensing (don’t change files by removing the licensing information - I think).

You don’t need to change anything else. It will compile your code just fine.

I do so and compile the source, but I got a max Memory of 4000. I need a bit more.
The file size of the bin file is 740kb. What is to do:

GPIO3 requires 5x as much memory as other pins.

I got a better way. In wled00/const.h i found a const called “MAX_LED_MEMORY” 4000. I set this to 5000 and it works. Greetings Roman

Ok. But do not complain later.
4000 bytes is there for a reason.

2 Likes