<?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[How use RGB LED on M5 FIRE?]]></title><description><![CDATA[<p dir="auto">Hi,<br />
how can i use the RGB LED's with the new M5 FIRE. I try the Adafruit_NeoPixel library for the SK6812 but my m5 crash at start up.</p>
<p dir="auto">code:<br />
#include "esp_deep_sleep.h"</p>
<p dir="auto">Adafruit_NeoPixel strip = Adafruit_NeoPixel(10, 15, NEO_KHZ400);</p>
<p dir="auto">void setup() {<br />
strip.setBrightness(50);<br />
strip.begin();<br />
strip.setPixelColor(1, 255, 255, 255);<br />
}</p>
<p dir="auto">Does somebody has any idea?</p>
<p dir="auto">Thanks.</p>
]]></description><link>https://community.m5stack.com/topic/273/how-use-rgb-led-on-m5-fire</link><generator>RSS for Node</generator><lastBuildDate>Sun, 15 Mar 2026 20:55:03 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/273.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 30 Jul 2018 14:44:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How use RGB LED on M5 FIRE? on Sun, 05 Aug 2018 06:45:48 GMT]]></title><description><![CDATA[<p dir="auto">Thank you for you help,</p>
<p dir="auto">now I solved the problem with <a href="https://github.com/MartyMacGyver/ESP32-Digital-RGB-LED-Drivers/blob/master/arduino-esp32/demo1/esp32_digital_led_lib.h" target="_blank" rel="noopener noreferrer nofollow ugc">esp32_digital_led_lib</a> library.</p>
<p dir="auto">Example:<br />
[CODE]<br />
#include "esp32_digital_led_lib.h"</p>
<p dir="auto">// Enumberation ob LED's<br />
//    9            0<br />
//    8            1<br />
//    7            2<br />
//    6            3<br />
//    5            4</p>
<p dir="auto">#define LED_PORT                        15</p>
<p dir="auto">strand_t m_sLeds = {.rmtChannel = 0, .gpioNum = 15, .ledType = LED_WS2812B_V3, .brightLimit = 32, .numPixels = 10, .pixels = nullptr, ._stateVars = nullptr};</p>
<p dir="auto">void Led_Init(void) {<br />
pinMode (LED_PORT, OUTPUT);<br />
digitalWrite (LED_PORT, LOW);</p>
<pre><code>if(digitalLeds_initStrands(&amp;m_sLeds, 1)) {
    E_TRACE("Can't init LED driver()\n");
}

digitalLeds_resetPixels(&amp;m_sLeds);

// Set led 7 to red
m_sLeds.pixels[7] = pixelFromRGBW(55, 0, 0, 0);

digitalLeds_updatePixels(&amp;m_sLeds);
</code></pre>
<p dir="auto">}</p>
<p dir="auto">[/CODE]</p>
]]></description><link>https://community.m5stack.com/post/1364</link><guid isPermaLink="true">https://community.m5stack.com/post/1364</guid><dc:creator><![CDATA[progga]]></dc:creator><pubDate>Sun, 05 Aug 2018 06:45:48 GMT</pubDate></item><item><title><![CDATA[Reply to How use RGB LED on M5 FIRE? on Sat, 04 Aug 2018 09:48:27 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Try Adafruit_NeoPixel.h library. Set pin to 15(GPIO) and number pixels to 10. Enjoy.</p>
<p dir="auto">#include &lt;Adafruit_NeoPixel.h&gt;<br />
#include &lt;M5Stack.h&gt;</p>
<p dir="auto">#define PIN            15<br />
#define NUMPIXELS      10</p>
<p dir="auto">Adafruit_NeoPixel pixels = Adafruit_NeoPixel(NUMPIXELS, PIN, NEO_GRB);<br />
int delayval = 500;</p>
<p dir="auto">void setup(){</p>
<p dir="auto">M5.begin();<br />
pixels.begin();<br />
}</p>
<p dir="auto">void loop() {</p>
<p dir="auto">for(int i=0;i&lt;NUMPIXELS;i++){<br />
// pixels.Color takes RGB values, from 0,0,0 up to 255,255,255<br />
pixels.setPixelColor(i, pixels.Color(0,0,150)); // Moderately bright BLUE color.<br />
pixels.show(); // This sends the updated pixel color to the hardware.<br />
delay(delayval); // Delay for a period of time (in milliseconds).<br />
}<br />
}</p>
]]></description><link>https://community.m5stack.com/post/1362</link><guid isPermaLink="true">https://community.m5stack.com/post/1362</guid><dc:creator><![CDATA[frollo555]]></dc:creator><pubDate>Sat, 04 Aug 2018 09:48:27 GMT</pubDate></item></channel></rss>