4 Replies Latest reply on Dec 22, 2016 12:49 AM by maskrtnik01_1570836

    HSV WS2812 backlight

    maskrtnik01_1570836

      Hello,

         

      I am working on a nixie clock. For backlight I have used Adafruit's Neopixel digital LEDs(based on WS2812). My idea is that color of nixie tube's backlight will reflect which part of minute/hour/day it is. I have taken WS2812 component from somewhere on this forum, and written the code. Also, I did not write color space conversion myself, but I have rewritten some code found on the internet.

         

      The problem is that at 54th second the color does not change as expected, but immediately changes to something like red.

         

      To better diagnose the error, I have rewritten the code to C# Windows Forms appplication. In this form, the code, which is to my knowledge the same, does work as expected.

         

      Can someone take a look at my code, and help me find the difference? I think the difference is not in the code itself, but in the architecture;,but I do not know so much about MCUs.

         

      Thank you,

         

      Stanislav Husár