I'm setting up the basic LED strip example from the sundfound r4 kit.
Photo of the wiring here. It's only 3 wires. yellow to pin 6. Red to 5v and black to ground. The exact code from the example is uploaded.
I can't figure out what I missed. I've used this r4 for other projects and it's been fine. For what it's worth, I also tried getting this to work on an Nano and it also didn't work. But that wasn't the example given.
code
/*
The code controls a chain of 8 NeoPixel LEDs using the FastLED library. It
lights up each LED in the chain one at a time, in a blue color, with a small
delay between each LED. After lighting up an LED, it turns it off ("Black")
before moving to the next one.
Board: Arduino Uno R4
Component: WS2812 RGB LEDs Strip
Library: https://github.com/FastLED/FastLED (FastLED by Daniel Garcia)
*/
#include <FastLED.h> // Include FastLED library
#define NUM_LEDS 8 // Number of LEDs in the chain
#define DATA_PIN 6 // Data pin for LED control
CRGB leds[NUM_LEDS]; // Array to hold LED color data
void setup() {
FastLED.addLeds<NEOPIXEL, DATA_PIN>(leds, NUM_LEDS); // Initialize LEDs
}
void loop() {
// Loop through each LED and set it to blue
for (int dot = 0; dot < NUM_LEDS; dot++) {
leds[dot] = CRGB::Blue; // Set the current LED to blue
FastLED.show(); // Update LEDs
leds[dot] = CRGB::Black; // Clear the current LED
delay(30); // Wait for a short period before moving to the next LED
}
}
Well I'm sorry that you think I'm ungrateful. When your first response was "Deleted." and your second response was "Not Readable". That made it tough to give you a bit more.
I think I could have started off my response by saying thank you. And I think you could have said "Hey I think a wiring diagram would be helpful, also the photo is a bit hard to see, maybe take a closer picture".
In a world where we have less and less actual human interaction, I think we can all do a bit more. Me included.
I think you might be right that this LED strip is connected to the output not the input. But it literally came in the kit this way, and it's heat shrinked, so it's not just un plug and plug in the other side. But the sunfounder website has it plugged in the way I have it.