New to this, don't know any programming.

New to this, don’t know any programming. have 3 Neopixel rings on 3 different data outputs. I can cut and paste a little code to light them up, but having trouble understanding how to write some basic code to address all three rings. Everything I can dig up out there either addresses a single ring, or is way over my head in code language. Anywhere I can get help with functions such as initializing 3 rings and getting each ring to flash all the pixels?

Are all the rings the same size and do you want them all to show the same color?

All the rings are the same size, 12 pixels. I was able to turn them all on, each ring with all red, blue, and green as each is on its own data pin. I would like to know how to make them flash, similar to a camera flash. Thanks for responding.

I’ve used this (rough) method in the past, however, it also uses a single data pin for programming simplicity rather than multiple pins. It could be converted to multiple pins if that’s the method you’d like to use.

untested code, I’m on my cellphone currently

Change CRGB::Black to a desired color and it will update all the LEDs at once.

Do you want the camera flash effect triggered by an external event (ie button press) or randomly?

Eventually I will have this triggered by a photocell, I actually have the part but have not built that part of the circuit. The project goal is to have a “standby” animation running, and a light stimulus switches the animation to flash all the rings, and then return to the standby animation.

Have you thought about using the Data-Out pin of the LED rings and arrange them in series? Then you can use Daniel Garcia’s new awesome CRGBSet

Juergen, I tried the test demo on your link, I get an error:
CRGB array does not name a type. Why?

Jarrod, your code didn’t work at all…I get error:
expected unqualified-id before ‘for’ Why?

Hmmm.

Can you post your exact code as uploaded is in a gist or pastebin?

I’ll take a look tonight.

@David_Kushman did you download the latest version of FastLED? The addition of CRGB was included w/o changing the revision number

#include <FastLED.h>
#define NUM_LEDS 12
#define LED_PIN 1

void setup() { FastLED.addLeds(leds, NUM_LEDS); }
void loop() { static uint8_t hue=0; leds.fill_rainbow(hue++); FastLED.delay(30); }

----this returns ‘leds’ not declared in this scope error message
@Jarrod_Wagner

@Juergen_Bruegl
It says version 3.0.3…is that correct?

@David_Kushman ahh, that’d be why.

You need to add a line in order to declare your CRGB objects.

Also, you’ve got a conflict between the types of LEDs you’re using. In the code you you just posted it’s using APA102s; in your initial post you said you were using neopixels. Similar but incompatible in terms of hardware. Still, we need only modify where you’re adding the LEDs.