Skip to content

Correct syntax for WS2812B and ESP32 #572

Answered by Makuna
ghost asked this question in Q&A
Discussion options

You must be logged in to vote

(This was not an issue, issues are for bugs, not questions, it was moved to discussions)

The Wiki area for the API includes the constructors and Begin.

The signatures are not correct at all. WS2812b are not DotStars (two wire smart LEDS). This library supports both Two Wire and One Wire. NeoPixels likes WS2812 are one wire smart LED. The features and methods are different for the two, and the constructor and Begin that you call are also different. If you review the wiki and examples you can see examples uses for both.

Using the more specific method name (the one you uses would work also)....

NeoPixelBus<NeoGrbFeature, NeoEsp32I2s1Ws2812xMethod> strip(PixelCount, PixelPin);

void setup() {…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Makuna
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant
Converted from issue

This discussion was converted from issue #571 on May 21, 2022 14:55.