TWANG
TWANG copied to clipboard
no matching function for call to 'CFastLED::addLeds<WS2812, 3, 4, BGR>(CRGB [144], int)'
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?
Try removing CLOCK_PIN from the line with WS2812 as Neopixels don't have a clock pin.