FastLED / FastLED

The FastLED library for colored LED animation on Arduino. Please direct questions/requests for help to the FastLED Reddit community: http://fastled.io/r We'd like to use github "issues" just for tracking library bugs / enhancements.
http://fastled.io
MIT License
6.5k stars 1.65k forks source link

WS2812B issue with teensy 4.0 #1116

Open max246 opened 4 years ago

max246 commented 4 years ago

I have tried to run WS2812B dot leds with teensy and fastled but failed each time ( https://www.aliexpress.com/item/1897830725.html )

I have used the parallel system which I set as follow:

define DATA_PIN 19

FastLED.addLeds<1,WS2812B, DATA_PIN, GRB>(leds, NUM_LEDS); // GRB ordering is typical

But kept flashing first led white and the second one yellow, I did try different combination, strip to 6 then 2, different teensy ( brand new one ) but kept not doing what it is supposed to do.

I have used the same code on an Arduino nano and works perfectly.

i have added a 74HC246 as some people suggested because teensy 4.0 is running at 3.3v but still no luck.

marmilicious commented 4 years ago

Hello @max246 We use github "issues" here mostly just for bugs or improvements in the library itself. For all general discussions, help, and how-to, please use the FastLED Reddit group here: https://www.reddit.com/r/FastLED

Put your test code on pastebin.com and share a link in your post. Also, please provide a link to the level shifter you are using if possible.

lpaolini commented 4 years ago

With Teensy, together with FastLED, use WS2812Serial, which is non-blocking.

include

define USE_WS2812SERIAL

include

Then, when calling FastLED.addLeds use WS2812SERIAL instead of WS2812B. Please note you can only use serial pins. (TX1, TX2, ...)

yajo10 commented 4 years ago

Hey, just for completeness I wanted to add that I had a similar Issue using teensy 4.1. I had the snippet working quite well before on an esp32.

I had constantly withe color even if they should be off. If I wanted to make them red, they got blue-greenish.

Switching to Serial worked like a charm and solved the Issue. Thanks for this thread!