How to control SMD-LED WS2812B (WS2811 Controller) with Teensy 3.6

Status
Not open for further replies.

AdmiralCrunch

Well-known member
Hi,

for my project I need to have control over 16x WS2812B (or a other RGB-SMD-LED with same size) seperately.

I have bought some of these to test, but I can't figure it out, how to control them(?)

I have looked on the OctoWS2811-library but I just cant get it managed.. so how would I control one single WS2812B ?
 
For only 16 LEDs, use WS2812Serial or Adafruit_NeoPixel. Both of those libraries have examples in the File > Examples menu. Just open the simplest example from each, edit the pin number and number of LEDs, and upload to see it do stuff with your LEDs.

If using WS2812Serial, pay attention to the supported pins. Adafruit_NeoPixel works with any digital pin and uses less memory, but it interferes with interrupts from other libraries. Often that's perfectly fine, but if you are doing other communication or work that Adafruit_NeoPixel disrupts, then use WS2812Serial and make sure you have the LED data connected to one of the supported pins.
 
Status
Not open for further replies.
Back
Top