#random LEDs on my ws28xx strip blink when updating.

1 messages · Page 1 of 1 (latest)

crisp glacier
#

random LEDs on my ws28xx strip blink when updating. From the Arduino articles, I realized that I need to turn off interrupts. How to do it

crisp glacier
#

Am I on the right track?

shell oar
#

this is C# .... you don't disable interrupts.... which aren't even accessible from C#

#

what you're seeing above would be used if you were coding Interop or some low level routine in C/C++

crisp glacier
#

I found these lines in the Arduino library

#

are there ways to apply this in nanoframework?

shell oar
#

I don't think you need anything like that at all.... maybe others have already asked, but do you have code to look at?

#

because it's hard to try helping without understanding what is already there, what approach was taken, etc ... otherwise turns into guess work...

crisp glacier
wild craneBOT
#
var ledStrip = new LedStrip(218, new Ws2815b(spi, 218));
crisp glacier
wild craneBOT
#
_ledStrip.ToggleHalf(_stripFlag, _stripFlag ? Color.Red : Color.Blue);
crisp glacier
#

I changed the colors to make the bug easier to see, now Update is simply called with a red color, but in the video you can see multi-colored flashes

#

I had this problem on Arduino, but it was easily solved by setting up the library

#

There is one line in the documentation that throws an exception, I didn't use it, maybe it has something to do with my problem

shell oar
crisp glacier
#

is is very slow

#

veeeery slow

#

1 update for 15 led > 100ms

wild craneBOT
#
transmitter.Send(true);
crisp glacier
#

slow method

#

#targets-esp32 message