TWANG icon indicating copy to clipboard operation
TWANG copied to clipboard

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

Open Primy-games opened this issue 5 years ago • 1 comments

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?

Primy-games avatar Feb 25 '20 10:02 Primy-games

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

Sonosus avatar Oct 22 '20 17:10 Sonosus