# Updated my Neopixel library (rgb-order!)

**URL:** <https://forum.xod.io/t/updated-my-neopixel-library-rgb-order/6365>\
**Category:** Look What I’ve Done\
**Created:** [December 6, 2022, 6:19pm UTC](https://forum.xod.io/t/updated-my-neopixel-library-rgb-order/6365 "2022-12-06T18:19:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![awgrover](https://avatars.discourse-cdn.com/v4/letter/a/74df32/32.png) [@awgrover](https://forum.xod.io/u/awgrover)\
**Post date:** [December 6, 2022, 6:19pm UTC](https://forum.xod.io/t/updated-my-neopixel-library-rgb-order/6365/1 "2022-12-06T18:19:10Z")

</div>

My [awgrover/neopixel](https://xod.io/libs/awgrover/adafruitneopixel) library has all the features of the Adafruit neopixel library. Because I mechanically converted it. But, setting the “t” (rgb order) was arcane.

A second person asked about how to set the RGB order (“t”). So, I provided a more friendly way.

 ![color-order](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/0/0df63b3a079a9dc4b12285f6be17b29ff3a554e6.png)  
This is certainly more friendly than trying to read Adafruit’s code, and copy the value. But, does someone have a better idea (the other XOD neopixel libraries don’t have a way to set the rgb-order?)?

I also added the “polymorphic” nodes to allow `equal`, `if-else`, `defer`, etc.

And updated the instructions for the examples.

---

<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:** [June 4, 2023, 6:19pm UTC](https://forum.xod.io/t/updated-my-neopixel-library-rgb-order/6365/2 "2023-06-04T18:19:12Z")

</div>

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