user3869: I'm in the process of trying to create a "Aurora Glow" effect using a Particle Photon and a Neopixel ring.
I have the code fully working using a single Breadboard-friendly NeoPixel however when upgrading this to a NeoPixel Ring (16 LED) the code does not run as expected
The current working code for a single NeoPixel can be found here: http://pastebin.com/Yj1cywpx
It was my assumption that i could change Line 33 from one LED to Sixteen e.g.:
FastLED.addLeds<NEOPIXEL, 6>(&led, 1);

to
FastLED.addLeds<NEOPIXEL, 6>(&led, 16);

However when I run this code rather than all NeoPixels cycling through the Aurora Colours, only the very Top LED does and rest are either off or a static colour (e.g. http://imgur.com/a/MvKZQ)
Could someone please advise what i missing? Apologies if this is a "Noob" question but this is my 2nd Arduino project and I cannot understand why this would not work.
Thanks

user24459: Never used neoPixels in arduino before so this is a complete guess based on reading the code but it looks like you are only setting the colour of the first LED.
Try creating 16 LED colours:
CRGB led[16];

and then setting them all:
for (int i = 0;i<15; i++) {
  int colourIndex = index + i;
  if (colourIndex > 15)
    colourIndex -= 15;
  led[i] = ColorFromPalette(auroraPalette, colourIndex , 255, LINEARBLEND);
}

edit - as @rDg indicates in his answer
FastLED.addLeds<NEOPIXEL, 6>(&led, 16);

becomes
FastLED.addLeds<NEOPIXEL, 6>(led, 16);

since led is now an array not a single value
Finally I think paletteSize should only be 16 not 5*16, you only have 16 colours in there.

3869: <p>I'm in the process of trying to create a "Aurora Glow" effect using a Particle Photon and a Neopixel ring.</p>

<p>I have the code fully working using a single Breadboard-friendly NeoPixel however when upgrading this to a NeoPixel Ring (16 LED) the code does not run as expected</p>

<p>The current working code for a single NeoPixel can be found here: <a href="http://pastebin.com/Yj1cywpx" rel="nofollow noreferrer">http://pastebin.com/Yj1cywpx</a></p>

<p>It was my assumption that i could change Line 33 from one LED to Sixteen e.g.:</p>

<pre><code>FastLED.addLeds&lt;NEOPIXEL, 6&gt;(&amp;led, 1);
</code></pre>

<p>to</p>

<pre><code>FastLED.addLeds&lt;NEOPIXEL, 6&gt;(&amp;led, 16);
</code></pre>

<p>However when I run this code rather than all NeoPixels cycling through the Aurora Colours, only the very Top LED does and rest are either off or a static colour (e.g. <a href="https://imgur.com/a/MvKZQ" rel="nofollow noreferrer">http://imgur.com/a/MvKZQ</a>)</p>

<p>Could someone please advise what i missing? Apologies if this is a "Noob" question but this is my 2nd Arduino project and I cannot understand why this would not work.</p>

<p>Thanks</p>
 24459: <p>Never used neoPixels in arduino before so this is a complete guess based on reading the code but it looks like you are only setting the colour of the first LED.</p>

<p>Try creating 16 LED colours:</p>

<pre><code>CRGB led[16];
</code></pre>

<p>and then setting them all:</p>

<pre><code>for (int i = 0;i&lt;15; i++) {
  int colourIndex = index + i;
  if (colourIndex &gt; 15)
    colourIndex -= 15;
  led[i] = ColorFromPalette(auroraPalette, colourIndex , 255, LINEARBLEND);
}
</code></pre>

<p>edit - as @rDg indicates in his answer</p>

<pre><code>FastLED.addLeds&lt;NEOPIXEL, 6&gt;(&amp;led, 16);
</code></pre>

<p>becomes</p>

<pre><code>FastLED.addLeds&lt;NEOPIXEL, 6&gt;(led, 16);
</code></pre>

<p>since led is now an array not a single value</p>

<p>Finally I think paletteSize should only be 16 not 5*16, you only have 16 colours in there.</p>
