WS2812B and FastLED not working for MEGA2560
hi all,
does know why code doesn't work on mega works fine on due?
im sure im missing simple here.
does know why code doesn't work on mega works fine on due?
im sure im missing simple here.
code: [select]
#include "fastled.h"
#define num_leds 1
#define data_pin 6
// define array of leds
crgb leds[num_leds];
void setup() {
fastled.addleds<neopixel, data_pin>(leds, num_leds);
}
void loop() {
// turn first led red 1 second
leds[0] = crgb::red;
fastled.show();
delay(1000);
// set first led black 1 second
leds[0] = crgb::black;
fastled.show();
delay(1000);
}
things okay.
show image of wiring.
.
show image of wiring.
.
Arduino Forum > Using Arduino > LEDs and Multiplexing > WS2812B and FastLED not working for MEGA2560
arduino
Comments
Post a Comment