# How to create platform\_override.ini

**URL:** <https://wled.discourse.group/t/how-to-create-platform-override-ini/9528>\
**Category:** Questions\
**Created:** [October 17, 2023, 11:18am UTC](https://wled.discourse.group/t/how-to-create-platform-override-ini/9528 "2023-10-17T11:18:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fatecasino](https://avatars.discourse-cdn.com/v4/letter/f/f4b2a3/32.png) [@fatecasino](https://wled.discourse.group/u/fatecasino)\
**Post date:** [October 17, 2023, 11:18am UTC](https://wled.discourse.group/t/how-to-create-platform-override-ini/9528/1 "2023-10-17T11:18:06Z")

</div>

Hi all,  
I am new to the world of platformio. I have imported successfully the source code from [Aircoookie](https://github.com/Aircoookie) in VSC and I have some basic questions about modifying an existing usermod.

1. platformio\_override.ini  
My board is esp32dev. I want to compile and upload for example the LCD screen with the rotary encoder. According to the instructions I copy/paste into platform\_override.ini the sample:

```auto
[platformio]
default_envs = WLED_tasmota_1M
[env:WLED_tasmota_1M]
board = esp01_1m
platform = ${common.platform_wled_default}
platform_packages = ${common.platform_packages}
board_build.ldscript = ${common.ldscript_1m128k}
lib_deps = ${esp8266.lib_deps}
build_unflags = ${common.build_unflags}
build_flags = ${common.build_flags_esp8266}
; *********************************************************************
; *** Use custom settings from file my_config.h
   -DWLED_USE_MY_CONFIG
; *********************************************************************

```

and then I add:

```auto
  -D USERMOD_FOUR_LINE_DISPLAY
  -D USERMOD_ROTARY_ENCODER_UI
  -D USE_ALT_DISPlAY

```

**QUESTION: What is the [env:WLED\_tasmota\_1M]?**  
If I insert  
`[env:esp32dev]`  
I get  
`Error: Unknown board ID 'esp32dev'`  
If I insert ( i found this in another question in the forum)  
`[env:franz_esp32dev]`  
it compiles fine.

1. Where is my .bin file?  
After successful compile I get:

```auto
...
...
Retrieved `.pio/build/esp32dev/firmware.bin' from cache
============================================= [SUCCESS] Took 9.57 seconds =============================================

Environment Status Duration
------------- -------- ------------
esp32dev SUCCESS 00:00:09.566

```

but all my WLED/build\_output folders are all empty!

1. How does upload work in general?  
I suppose I find somewhere the .bin file. Then I will upload it, I expect to see some configuration menu in WLED usermods menu. Now let’s say I want to change something in the same usermod, I recompile and I reupload the bin. What happens then? Will the upload replace my previous version of the same usermod?  
In the same way, if I compile the source code of the latest WLED and I make a small change, like increase the number of buttons, what happens after uploading the new bin? Will my previous WLED (with all my custom usermods) get erased with all its configurations or it will just increase the number of buttons?

Sorry for the long post!

---

<div class="post-metadata">

**Author:** ![blazoncek](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/blazoncek/32/1886_2.png) [@blazoncek](https://wled.discourse.group/u/blazoncek)\
**Post date:** [October 17, 2023, 11:31am UTC](https://wled.discourse.group/t/how-to-create-platform-override-ini/9528/2 "2023-10-17T11:31:22Z")

</div>

[https://docs.platformio.org/en/stable/projectconf/index.html](https://docs.platformio.org/en/stable/projectconf/index.html)
