# LED bar sequence. need help to shorten it

**URL:** <https://forum.xod.io/t/led-bar-sequence-need-help-to-shorten-it/6181>\
**Category:** XOD Programming Questions\
**Created:** [July 21, 2022, 5:20am UTC](https://forum.xod.io/t/led-bar-sequence-need-help-to-shorten-it/6181 "2022-07-21T05:20:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![newtcdr](https://avatars.discourse-cdn.com/v4/letter/n/b19c9b/32.png) [@newtcdr](https://forum.xod.io/u/newtcdr)\
**Post date:** [July 21, 2022, 5:20am UTC](https://forum.xod.io/t/led-bar-sequence-need-help-to-shorten-it/6181/1 "2022-07-21T05:20:00Z")

</div>

it just a simple 10led array running light sequence in a loop. This already working like what i wanted it to do but is there a way to shorten this ?

 ![loop](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/a/aebd30adc730454db3434a946d72563952fba9dd.png)

---

<div class="post-metadata">

**Author:** ![gweimer](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@gweimer](https://forum.xod.io/u/gweimer)\
**Post date:** [July 22, 2022, 2:13am UTC](https://forum.xod.io/t/led-bar-sequence-need-help-to-shorten-it/6181/2 "2022-07-22T02:13:16Z")

</div>

Probably not. You need all the LED nodes to control them individually. Since all the delays have same value, you might be able to recode using one delay node, but you would need just as many nodes (and probably more) to select which LED is on.

If this is too be part of a larger program, you could put it into its own patch so it doesn’t clutter the main program.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/eb7348baa04192c2ef932d1db54d44f09f8a7888.png) [@system](https://forum.xod.io/u/system)\
**Post date:** [August 21, 2022, 2:13am UTC](https://forum.xod.io/t/led-bar-sequence-need-help-to-shorten-it/6181/3 "2022-08-21T02:13:27Z")

</div>

Closed on August 21, 2022, 2:13am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
