bigjosh / SimpleNeoPixelDemo

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

made changes for ws2812b #10

Open drvkmr opened 5 years ago

drvkmr commented 5 years ago

So the neopixel strip I had was ws2812b, and your code only worked after making these few changes. Also, I am not very familiar with github's way of contributing, so here is an attempt.

Also, I used your code to build https://github.com/drvkmr/LED_projector.

bigjosh commented 5 years ago

Your pull request is perfect, and your project looks very cool!

I am not going to merge this request, but not because there is anything wrong with your code.

There are lots of different WS2812B-style pixels available, and different ones have different timing requirements. the timing numbers in my code reflect the values that I've found work best with the original World Semi WS2812B chips.

You should keep the timing values that work for your LEDs, and I will leave this PR open so other people can see your numbers and try them in case my numbers do not work with their chip.

Thanks!

thoughtfulhedon commented 4 years ago

I ran into the same problem with WS2813, these are the numbers that worked for me, based on the data sheet. I haven't tried tweaking them to test the outer bounds.

T1H 800
T1L 200
T0H 400
T0L 200 RES 400000