<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Control first LED on neopixel strip with FastLED with M5Stack]]></title><description><![CDATA[<p dir="auto">Some simple questions:</p>
<p dir="auto">Controlling the LEDs works well, but how can I control the first LED? Most of the time it is a very bright white, but it can change.<br />
How can I use the strip on a M5Stick C?</p>
]]></description><link>https://community.m5stack.com/topic/2651/control-first-led-on-neopixel-strip-with-fastled-with-m5stack</link><generator>RSS for Node</generator><lastBuildDate>Fri, 08 May 2026 04:16:43 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/2651.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 26 Dec 2020 12:28:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Control first LED on neopixel strip with FastLED with M5Stack on Thu, 31 Dec 2020 01:40:24 GMT]]></title><description><![CDATA[<p dir="auto">On Arduino using the M5Stack (in my case the Gray version) pin 21 is the pin to pass on to FastLed. For M5StickC it is pin 32.<br />
That the M5Stack shows a bright white light for the first LED seems to occur when one also uses the M5.Power.begin() command.<br />
This piece of code should work on both devices adjusted for the device in use:</p>
<pre><code>//#include &lt;M5StickC.h&gt;
#include &lt;M5Stack.h&gt;
#include "FastLED.h"

CRGB leds[15];

void setup() 
{
M5.begin();
    FastLED.addLeds&lt;NEOPIXEL, 21&gt;(leds, 15); // M5Stack Gray
    //FastLED.addLeds&lt;NEOPIXEL, 32&gt;(leds, 15); // M5StickC 
}

void loop()
{
    static uint8_t hue = 0;
    if (255 == hue)
        hue = 0;
    else
        FastLED.showColor(CHSV(hue++, 255, 50));
    delay(50);
}
</code></pre>
]]></description><link>https://community.m5stack.com/post/11441</link><guid isPermaLink="true">https://community.m5stack.com/post/11441</guid><dc:creator><![CDATA[Kees]]></dc:creator><pubDate>Thu, 31 Dec 2020 01:40:24 GMT</pubDate></item></channel></rss>