Skip to content

Instantly share code, notes, and snippets.

@tomoto
tomoto / M5Stack_Atom_LED_Example.cpp
Created July 10, 2020 09:52
M5Stack Atom Matrix LED example (without M5Atom library that causes flicker)
#include <FastLED.h>
const int NUM_LEDS = 25;
const int LED_PIN = 27;
static CRGB leds[NUM_LEDS];
CRGB correct(CRGB c) {
// fix RGB order :(
return CRGB(c.g, c.r, c.b);
}