# How im acess other led pins?

**URL:** <https://wled.discourse.group/t/how-im-acess-other-led-pins/5364>\
**Category:** Questions\
**Created:** [May 12, 2022, 6:47am UTC](https://wled.discourse.group/t/how-im-acess-other-led-pins/5364 "2022-05-12T06:47:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![yudi83](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/yudi83/32/3152_2.png) [@yudi83](https://wled.discourse.group/u/yudi83)\
**Post date:** [May 12, 2022, 6:47am UTC](https://wled.discourse.group/t/how-im-acess-other-led-pins/5364/1 "2022-05-12T06:47:06Z")

</div>

how i can acess button to other my board pin when pushed??  
i have been add 2 pins of led output

 ![Screenshot_20220512-133938](https://global.discourse-cdn.com/free1/uploads/wled/original/2X/a/a7fc18cdce27e86bc53469750c045acbcfa795cb.png)

please help me for example when button pressed im control 2nd strip pins only

---

<div class="post-metadata">

**Author:** ![divsys](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@divsys](https://wled.discourse.group/u/divsys)\
**Post date:** [May 13, 2022, 5:57am UTC](https://wled.discourse.group/t/how-im-acess-other-led-pins/5364/2 "2022-05-13T05:57:41Z")

</div>

In general, you use presets to define LED states and effects you want to display.  
You can create a preset that displays on one or more different strips, whatever pin they have been defined on.  
You choose which segment you want in a preset and then use your button to display that preset.

There are Json API commands you can embed in a preset to scroll between different presets or toggle one on and off (among other things).

Check out: [JSON API - WLED Project](https://kno.wled.ge/interfaces/json-api/)

---

<div class="post-metadata">

**Author:** ![yudi83](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/yudi83/32/3152_2.png) [@yudi83](https://wled.discourse.group/u/yudi83)\
**Post date:** [May 14, 2022, 9:52am UTC](https://wled.discourse.group/t/how-im-acess-other-led-pins/5364/3 "2022-05-14T09:52:39Z")

</div>

but i have other problem that i have 2 switch if i push button after that the 2 segments its out of sync. why??  
how i can fix it?? even i press sync button

---

<div class="post-metadata">

**Author:** ![tonyno](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/tonyno/32/242_2.png) [@tonyno](https://wled.discourse.group/u/tonyno)\
**Post date:** [May 14, 2022, 12:26pm UTC](https://wled.discourse.group/t/how-im-acess-other-led-pins/5364/4 "2022-05-14T12:26:52Z")

</div>

Be aware that sync is not exact across pins/segments.

---

<div class="post-metadata">

**Author:** ![yudi83](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/yudi83/32/3152_2.png) [@yudi83](https://wled.discourse.group/u/yudi83)\
**Post date:** [May 14, 2022, 12:42pm UTC](https://wled.discourse.group/t/how-im-acess-other-led-pins/5364/5 "2022-05-14T12:42:41Z")

</div>

yeah that issue problem / bugs
