Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no matching function for call to 'CFastLED::addLeds<WS2812, 3, 4, BGR>(CRGB [144], int)' #9

Open
Primy-games opened this issue Feb 25, 2020 · 1 comment

Comments

@Primy-games
Copy link

Hello good day.
I am working on a TWANG, with my son, but compiling the arduino software gives me this error.

no matching function for call to 'CFastLED::addLeds<WS2812, 3, 4, BGR>(CRGB [144], int)'

It happens since I change these lines:

// Fast LED
FastLED.addLeds<APA102, DATA_PIN, CLOCK_PIN, LED_COLOR_ORDER>(leds, NUM_LEDS);
FastLED.setBrightness(BRIGHTNESS);
FastLED.setDither(1);

For this other line.

// Fast LED
FastLED.addLeds<WS2812, DATA_PIN, CLOCK_PIN, LED_COLOR_ORDER>(leds, NUM_LEDS);
FastLED.setBrightness(BRIGHTNESS);
FastLED.setDither(1);

Could you help me understand the problem?

@Sonosus
Copy link
Contributor

Sonosus commented Oct 22, 2020

Try removing CLOCK_PIN from the line with WS2812 as Neopixels don't have a clock pin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants