# Adding custom code to wled

**URL:** <https://wled.discourse.group/t/adding-custom-code-to-wled/5824>\
**Category:** Uncategorized\
**Created:** [August 17, 2022, 8:58pm UTC](https://wled.discourse.group/t/adding-custom-code-to-wled/5824 "2022-08-17T20:58:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DeBendeBurcht](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/debendeburcht/32/3490_2.png) [@DeBendeBurcht](https://wled.discourse.group/u/DeBendeBurcht)\
**Post date:** [August 17, 2022, 8:58pm UTC](https://wled.discourse.group/t/adding-custom-code-to-wled/5824/1 "2022-08-17T20:58:17Z")

</div>

I am building a project which needs a wifi repeater, and various other functions to be build into wled, so i can run all functionality on 1 esp.  
For this i have 2 questions:

- I have succesfully compiled wled now, but is there any documentation(apart from the user(loop) function i have to use) on how to implement usermods?
- where does wled store the password and network name it is connected to? i would like to copy it right on over to the wifi repeater im programming

furthermore does wled prefer functions to be programmed as usermods, or am i allowed to code it right in?  
thanks in advance!!

---

<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:** [August 18, 2022, 9:34am UTC](https://wled.discourse.group/t/adding-custom-code-to-wled/5824/2 "2022-08-18T09:34:37Z")

</div>

With your fork you can do whatever you want. 😉

Usermods have their folder and there are plenty of samples there (maintained ones are 4 Line Display ALT, Rotary Encoder ALT, PWM Fan, Temperature, Multi Relay and a few others).  
There is also an example usermod file with a bit more info on how to write one.

---

<div class="post-metadata">

**Author:** ![DeBendeBurcht](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/debendeburcht/32/3490_2.png) [@DeBendeBurcht](https://wled.discourse.group/u/DeBendeBurcht)\
**Post date:** [August 18, 2022, 2:35pm UTC](https://wled.discourse.group/t/adding-custom-code-to-wled/5824/3 "2022-08-18T14:35:14Z")

</div>

thank you very much, ive found what im looking for, ill try to keep it as a usermod so i can share when im done
