<?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[Controlling Atom Matrix LEDs]]></title><description><![CDATA[<p dir="auto">I'm trying to learn how to manipulate the LED matrix on the M5Stack Atom Matrix device and I'm struggling to find complete examples or get FastLED to work with it.   In my experience with FastLED, I should be able to initialize the matrix with the following code:</p>
<pre><code>#include "M5Atom.h"
#include &lt;FastLED.h&gt;

#define NUM_LEDS 25
#define DATA_PIN 27

CRGB leds[NUM_LEDS];

void setup() {

  Serial.begin(115200);
  delay(1000);

  Serial.println("");
  Serial.println("Initializing M5Stack Atom Matrix");
  M5.begin(true, false, true);

  // Initialize the FastLED library for this device's configuration
  Serial.println("\nInitializing FastLED");
  FastLED.addLeds&lt;WS2812, DATA_PIN&gt;(leds, NUM_LEDS);

  // M5Stack recommends not setting this value greater than 20
  // to avoid melting the screen/cover over the LEDs
  Serial.println("Setting brightness");
  FastLED.setBrightness(20);

  // Initialize all device LEDs to off (black)
  Serial.println("Clearing display");
  for (int num = 0; num &lt; NUM_LEDS; num++) {
    Serial.println(num);
    leds[num] = CRGB::Black;
  }
  Serial.println("Showing LEDs");
  FastLED.show();
  
  Serial.println("Finishing setup");
  
}
</code></pre>
<p dir="auto">I have a bunch of extra code in there so I can tell where <code>setup</code> fails, and it's at the point where I call <code>FastLED.show()</code> - everything to that point is textbook FastLED, but this just doesn't work.</p>
<p dir="auto">It's possible, or even likely, that this is an issue with FastLED, but I simply can't find a simple, functioning example of how to code the matrix. There's a sample app buried in the SDK here: <a href="https://github.com/m5stack/M5Atom/blob/master/examples/Basics/LEDDisplay/LEDDisplay.ino" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/m5stack/M5Atom/blob/master/examples/Basics/LEDDisplay/LEDDisplay.ino</a>, but I can't find documentation of the <code>dis</code> object used in that example (looking at the code, and understanding that the DisPlay library isn't even loaded by <code>M5</code> I doubt it will even compile.</p>
]]></description><link>https://community.m5stack.com/topic/2230/controlling-atom-matrix-leds</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 14:12:30 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/2230.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 22 Aug 2020 00:09:46 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Controlling Atom Matrix LEDs on Fri, 20 Nov 2020 20:17:35 GMT]]></title><description><![CDATA[<p dir="auto">Hello...The fundamental control receives the ESP32-PICO chip which comes incorporated with Wi-Fi and Bluetooth advances and has a 4MB of coordinated SPI streak memory. Particle board gives an Infra-Red LED, RGB LED, catches, and a PH2.0 interface. Furthermore, it can associate with outer sensors and actuators through 6 GPIOs. The on-board Type-C USB interface empowers quick program transfer and execution.</p>
<p dir="auto"><a href="https://onlinequote.7pcb.com/" target="_blank" rel="noopener noreferrer nofollow ugc">pcb quote</a></p>
]]></description><link>https://community.m5stack.com/post/10578</link><guid isPermaLink="true">https://community.m5stack.com/post/10578</guid><dc:creator><![CDATA[KarieJacob]]></dc:creator><pubDate>Fri, 20 Nov 2020 20:17:35 GMT</pubDate></item><item><title><![CDATA[Reply to Controlling Atom Matrix LEDs on Tue, 25 Aug 2020 11:13:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/world101" aria-label="Profile: world101">@<bdi>world101</bdi></a> interesting, thanks - I'll give it a try.</p>
<p dir="auto">yep, that worked - thanks!!</p>
]]></description><link>https://community.m5stack.com/post/9833</link><guid isPermaLink="true">https://community.m5stack.com/post/9833</guid><dc:creator><![CDATA[johnwargo]]></dc:creator><pubDate>Tue, 25 Aug 2020 11:13:55 GMT</pubDate></item><item><title><![CDATA[Reply to Controlling Atom Matrix LEDs on Sat, 22 Aug 2020 03:28:27 GMT]]></title><description><![CDATA[<p dir="auto">Here you go. This works...</p>
<pre><code>//#include "M5Atom.h"  //not needed
#include &lt;FastLED.h&gt;

#define NUM_LEDS 25
#define DATA_PIN 27

CRGB leds[NUM_LEDS];

void setup() {
  Serial.begin(115200);
  delay(1000);

  Serial.println("");
  Serial.println("Initializing M5Stack Atom Matrix");
  //M5.begin(true, false, true);  //not needed

  // Initialize the FastLED library for this device's configuration
  Serial.println("\nInitializing FastLED");
  //FastLED.addLeds&lt;WS2812, DATA_PIN&gt;(leds, NUM_LEDS);
  FastLED.addLeds&lt;WS2812, DATA_PIN, GRB&gt;(leds, NUM_LEDS);

  // M5Stack recommends not setting this value greater than 20
  // to avoid melting the screen/cover over the LEDs
  Serial.println("Setting brightness");
  FastLED.setBrightness(20);
  Serial.println("Finishing setup");
}

void loop() {
  // Initialize all device LEDs to off (black), one at a time
  Serial.println("Clearing display");
  for(int num=0; num&lt;NUM_LEDS; num++) {
    Serial.println(num);
    leds[num] = CRGB::Black;
    FastLED.show();
    delay(50);
  }
  delay(500);
  // Initialize device LEDs to on (red), one at a time
  Serial.println("Showing LEDs");
  for(int num=0; num&lt;NUM_LEDS; num++) {
    Serial.println(num);
    leds[num] = CRGB::Red;
    FastLED.show(); 
    delay(50);
  }
}
</code></pre>
]]></description><link>https://community.m5stack.com/post/9790</link><guid isPermaLink="true">https://community.m5stack.com/post/9790</guid><dc:creator><![CDATA[world101]]></dc:creator><pubDate>Sat, 22 Aug 2020 03:28:27 GMT</pubDate></item></channel></rss>