bigjosh / SimpleNeoPixelDemo

A demonstration showing how easy it can be to drive WS2812 NeoPixels
MIT License
221 stars 60 forks source link

Needs of the datasheet #11

Open maludwig opened 5 years ago

maludwig commented 5 years ago

Hey, so I bought some "NeoPixels" from AliExpress, and while they're obviously a Chinese clone, it turns out that they actually do follow the datasheet.

I took this code and put in these values:


#define T1H  700    // Width of a 1 bit in ns
#define T1L  600    // Width of a 1 bit in ns

#define T0H  350    // Width of a 0 bit in ns
#define T0L  800    // Width of a 0 bit in ns

#define RES 50000    // Width of the low gap between bits to cause a frame to latch

Which is what the datasheet says, and now the Chinese clones work. Not sure if you want to do something with this knowledge? Maybe a comment? Maybe if your NeoPixels work with these values, then maybe have these be the thing?

bigjosh commented 5 years ago

Did you need to change the T* values, or maybe it is just you needed a longer RES then 6000?