#include "FastLED.h"
#define NUM_LEDS 256
#define DATA_PIN 3
CRGB leds[NUM_LEDS];
long smile[] =
{
0x800000, 0x800000, 0x800000, 0x800000, 0x800000, 0x800000, 0x800000, 0x800000,
0x800000, 0x800000, 0x800000, 0x800000, 0x800000, 0x800000, 0x800000, 0x800000,
0x800000, 0xffffff, 0xffffff, 0x800000, 0x800000, 0xffffff, 0xffffff, 0x800000,
0x800000, 0xffffff, 0xffffff, 0x800000, 0x800000, 0xffffff, 0xffffff, 0x800000,
0x800000, 0x800000, 0x800000, 0x800000, 0x800000, 0x800000, 0x800000, 0x800000,
0xffffff, 0x800000, 0x800000, 0x800000, 0x800000, 0x800000, 0x800000, 0xffffff,
0x800000, 0xffffff, 0x800000, 0x800000, 0x800000, 0x800000, 0xffffff, 0x800000,
0x800000, 0x800000, 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0x800000, 0x800000
};
void setup() {
FastLED.addLeds<NEOPIXEL, DATA_PIN>(leds, NUM_LEDS);
FastLED.setBrightness(255);
}
void loop() {
for (int i = 0; i < 64; i++) {
leds[i] = smile[i];
}
FastLED.setBrightness(40);
FastLED.show();
delay(800);
}