Hello there!
Recently I bought a Arduino UNO R4 Wifi wanting to use it to control a WS2811 LED pixel strip.
I am a bit familiar with the FastLED library thus I wanted to use it to do this project.
The FastLED library doesn't support the UNO R4 yet though.
Therefor I installed a version of the library which is supposed to support the R4.
Yet when I upload my sketch to the arduino the LED strip stays white.
I am using a 12V 3A PSU for the LED strip.
The Arduino is powerd through USB.
I checked the Arduino through the build in LED-matrix which works fine.
(BTW the strip does flicker a bit if the data pin is disconected and the white (data) wire is touched)
Below is my code, it's just a simple code to check if the LED strip works.
#include <FastLED.h>
#define NUM_LEDS 50
#define BRIGHTNESS 100
#define DATA_PIN 5
CRGB leds[NUM_LEDS];
void setup() {
delay(2000);
FastLED.addLeds<ws2811, DATA_PIN, RGB>(leds, NUM_LEDS);
FastLED.clear();
}
void loop() {
leds[0] = CRGB::Red;
FastLED.show();
}
Does anyone have any idea why the strip doesn't respond?