EXPLODING THE WORLD AT THE CLICK OF A BUTTON

For this project I wanted to showcase what the human impact has on the earth. My original plan was to show the data of global warming and with a proximity sensor the closer you get the warmer the planet becomes, but with the limitation of the Arduino and file and its limited ability for animation I had to go with something a little more simpler. Now with a touch we can destroy the planet.

Video in action

Here is the animation that I came up with.

Links

https://gist.github.com/robertmeares/fb32cc17d7123c34282c60ce1a2179e2 (My script for the Arduino)

https://lcd-image-converter.riuson.com/en/about/ (BMP converter to HEX codes (Windows Only))

https://www.arduino.cc/reference/en/ (Arduino Reference)

http://fastled.io (FastLED Animation Library)

Using WS2812 LED Matrix 16X16

The Coding Process

The code runs c arrays with fastLED library with an if statement for the kill button. One of the issues I had with this is that there is very little code out there for an Arduino to run this every search either Github or elsewhere all used a raspberrypi or another microcontroller like the Teensy. But the biggest issue was finding a program that would create 24bit Hex 0x000000 style code. All other programs and scrips I found were 8bit HEX 0x00. After lots of research and digging the deep dark web I found a way.

You can take the code below and add your c array.

https://gist.github.com/robertmeares/fb32cc17d7123c34282c60ce1a2179e2

/* Arduino 256 RGB LEDs Matrix Animation Frame
Using WS2812 LED Strips

*/

#include <avr/pgmspace.h> // Needed to store stuff in Flash using PROGMEM
#include "FastLED.h" // Fastled library to control the LEDs

// How many leds are connected?
#define NUM_LEDS 256

// Define the Data Pin
#define DATA_PIN 6 // Connected to the data pin of the first LED strip

int inpin = 2;
int val = 0;

// Define the array of leds
CRGB leds[NUM_LEDS];

// Create the array of characters and store it in Flash memory
const long Earth01[] PROGMEM =
{
0x1a1a1a, 0x0d0d0d, 0x0d0d0d, 0x0d0d0d, 0x0d0d0d, 0x0d0d0d, 0x0d1512, 0x0d410d, 0x0d490d, 0x0d0d1e, 0x0d0d0d, 0x0d0d0d, 0x0d0d0d, 0x0d0d0d, 0x0d0d0d, 0x1a1a1a,
0x000000, 0x000000, 0x000000, 0x000000, 0x003e00, 0x009d01, 0x00db10, 0x0064aa, 0x0059b3, 0x0000ec, 0x002282, 0x002e1f, 0x000300, 0x000000, 0x000000, 0x000000,
0x0d0d0d, 0x000000, 0x000000, 0x007800, 0x00ff00, 0x00ff2c, 0x00ac6b, 0x0000ff, 0x0000ff, 0x0000ff, 0x000bff, 0x00a38e, 0x007527, 0x000000, 0x000000, 0x0d0d0d,
0x0d0d0d, 0x000007, 0x007400, 0x00ff00, 0x00c348, 0x0004fb, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x005cb6, 0x00b776, 0x003b4c, 0x000000, 0x0d0d0d,
0x0d0d0d, 0x003519, 0x00d455, 0x0031db, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x0058a3, 0x00ff02, 0x00f027, 0x004d00, 0x0d0d0d,
0x0d0d0d, 0x00475e, 0x00a684, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x007b84, 0x00ff00, 0x00ff00, 0x00ba00, 0x0d0d0d,
0x0d0d23, 0x0000fa, 0x0028e6, 0x009c63, 0x00a35c, 0x004cb3, 0x0007f8, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x0026d8, 0x00ff00, 0x00ff00, 0x00fe00, 0x0d290d,
0x0d0d2f, 0x0000ff, 0x0000ff, 0x00916e, 0x00ff00, 0x00ff00, 0x00e21d, 0x002fd0, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x0045ba, 0x005aa8, 0x00f31d, 0x0d560d,
0x0d0d2e, 0x0000ff, 0x0000ff, 0x006e91, 0x00ff00, 0x00ff00, 0x00ff00, 0x00f50a, 0x008a75, 0x0040c0, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x00ca4f, 0x0d710d,
0x0d0d25, 0x0000f0, 0x0000ff, 0x0032cd, 0x00ff00, 0x00ff00, 0x00ff00, 0x00ff00, 0x00ff00, 0x0038c8, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x00b64b, 0x0d540d,
0x0d0d0d, 0x0000a2, 0x0000ff, 0x0000ff, 0x0054aa, 0x00ff00, 0x00ff00, 0x00ff00, 0x00c837, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x0054db, 0x00c512, 0x0d0d0d,
0x0d0d0d, 0x000040, 0x0000ff, 0x0000ff, 0x0002fd, 0x00ff00, 0x00ff00, 0x00ad52, 0x000ef1, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x003be5, 0x005000, 0x0d0d0d,
0x0d0d0d, 0x000000, 0x00007b, 0x0000ff, 0x001bea, 0x00ff00, 0x00df20, 0x0010ef, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x00008c, 0x000000, 0x0d0d0d,
0x0d0d0d, 0x000000, 0x000000, 0x000082, 0x0000ff, 0x00ad81, 0x0068a9, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000fd, 0x00008c, 0x000000, 0x000000, 0x0d0d0d,
0x000000, 0x000000, 0x000000, 0x000000, 0x000054, 0x000ab8, 0x000ee9, 0x0000ff, 0x0000ff, 0x0000fd, 0x0000bc, 0x000038, 0x000000, 0x000000, 0x000000, 0x000000,
0x1a1a1a, 0x0d0d0d, 0x0d0d0d, 0x0d0d0d, 0x0d0d0d, 0x0d0d0d, 0x0d0d36, 0x0d0d3c, 0x0d0d3c, 0x0d0d2d, 0x0d0d0d, 0x0d0d0d, 0x0d0d0d, 0x0d0d0d, 0x0d0d0d, 0x1a1a1a
};

const long Earth02[] PROGMEM =
{
0x030303, 0x010101, 0x010101, 0x010101, 0x010101, 0x010101, 0x010e01, 0x012201, 0x012501, 0x01011b, 0x010101, 0x010101, 0x010101, 0x010101, 0x010101, 0x030303,
0x000000, 0x000000, 0x000000, 0x000000, 0x000050, 0x005351, 0x00e600, 0x00f010, 0x00b649, 0x007a77, 0x003d72, 0x000246, 0x000000, 0x000000, 0x000000, 0x000000,
0x010101, 0x000000, 0x000000, 0x000075, 0x000eff, 0x00ec46, 0x00ff00, 0x00ff04, 0x00ff01, 0x00ff00, 0x00ca64, 0x0017ff, 0x00008b, 0x000000, 0x000000, 0x010101,
0x010101, 0x000000, 0x00006c, 0x0000ff, 0x0015fc, 0x00e419, 0x00ff00, 0x00ff00, 0x00fa05, 0x00ac53, 0x000af3, 0x0002ff, 0x0000ff, 0x00007f, 0x000000, 0x010101,
0x010101, 0x00003a, 0x0000ff, 0x0000ff, 0x0000ff, 0x0010ef, 0x00ff00, 0x00f10e, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x00004d, 0x010101,
0x010101, 0x000097, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x00718e, 0x00ac53, 0x00738c, 0x000cf3, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ba, 0x010101,
0x010118, 0x0000ec, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x0003fc, 0x007f80, 0x00758a, 0x008d72, 0x006d92, 0x0017e8, 0x0000ff, 0x0000f4, 0x010222,
0x010125, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x0031ce, 0x00ff00, 0x00ff00, 0x00e817, 0x0026e0, 0x0000ff, 0x010534,
0x010124, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x0055aa, 0x00ff00, 0x00ff00, 0x00ff00, 0x00f212, 0x0050c0, 0x01064c,
0x01011a, 0x0000f0, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x003cc3, 0x00ff00, 0x00ff00, 0x00ff00, 0x00ff00, 0x006d94, 0x01054c,
0x010101, 0x0000a2, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x0056a9, 0x00ff00, 0x00ff00, 0x00f239, 0x000bcf, 0x010101,
0x010101, 0x000040, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x002cd3, 0x00ff00, 0x00ff0d, 0x0046e4, 0x00005b, 0x010101,
0x010101, 0x000000, 0x00007b, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x00db1f, 0x00f022, 0x0046f7, 0x0000b8, 0x000000, 0x010101,
0x010101, 0x000000, 0x000000, 0x000080, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x00749a, 0x00e64e, 0x0016fc, 0x0000b4, 0x000000, 0x000000, 0x010101,
0x000000, 0x000000, 0x000000, 0x000000, 0x00004e, 0x0000bc, 0x0000f8, 0x0000ff, 0x0000ff, 0x003fbf, 0x0012b8, 0x000057, 0x000000, 0x000000, 0x000000, 0x000000,
0x030303, 0x010101, 0x010101, 0x010101, 0x010101, 0x010101, 0x01011f, 0x010132, 0x010132, 0x01013b, 0x010101, 0x010101, 0x010101, 0x010101, 0x010101, 0x030303
};

const long Earth03[] PROGMEM =
{
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x00001e, 0x002201, 0x001b0c, 0x000134, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000,
0x000000, 0x000000, 0x000000, 0x000000, 0x000047, 0x003375, 0x00826a, 0x00ea16, 0x00f715, 0x00a845, 0x009e00, 0x00261c, 0x000010, 0x000000, 0x000000, 0x000000,
0x000000, 0x000000, 0x000000, 0x000089, 0x0038f9, 0x00a18f, 0x00fe19, 0x00c24c, 0x00b852, 0x00fe15, 0x00ff00, 0x00f11e, 0x007611, 0x000000, 0x000000, 0x000000,
0x000000, 0x000000, 0x000091, 0x007bb2, 0x00b75e, 0x009666, 0x006e91, 0x00ae51, 0x00ea15, 0x00e717, 0x00ff00, 0x00ff00, 0x00ff00, 0x007411, 0x000012, 0x000000,
0x000000, 0x00005b, 0x0028fe, 0x00ff13, 0x00ff00, 0x00ff00, 0x00e916, 0x00c837, 0x00fd02, 0x00fb04, 0x00ae51, 0x00d827, 0x00ff00, 0x00ff03, 0x004014, 0x000000,
0x000000, 0x0011a3, 0x00e14f, 0x00ff00, 0x00ff00, 0x00ff00, 0x00ff00, 0x00cd32, 0x00bc43, 0x00d52a, 0x0020df, 0x0010ef, 0x00eb14, 0x00d24a, 0x007244, 0x000200,
0x000127, 0x0027c2, 0x00ff00, 0x00ff00, 0x00ff00, 0x00ff00, 0x00ff00, 0x00ff00, 0x00ff00, 0x00a35d, 0x0000ff, 0x0000ff, 0x002fd0, 0x0030e8, 0x0036c3, 0x000820,
0x000327, 0x0000ff, 0x005ca8, 0x00857a, 0x00ff00, 0x00ff00, 0x00ff00, 0x00ff00, 0x00ff00, 0x0037c8, 0x0000ff, 0x0000ff, 0x0000ff, 0x0003ff, 0x0071a7, 0x000a2d,
0x000420, 0x0000ff, 0x0000ff, 0x0000ff, 0x00b947, 0x00ff00, 0x00ff00, 0x00ff00, 0x003dc3, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x0008ff, 0x000138,
0x000318, 0x0000f0, 0x0000ff, 0x0000ff, 0x0050b0, 0x00ff00, 0x00ff00, 0x00cc33, 0x0001fe, 0x000df2, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x000029,
0x000000, 0x0000a2, 0x0000ff, 0x0000ff, 0x00619f, 0x00ff00, 0x00ff00, 0x008b74, 0x007c82, 0x008b74, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000cb, 0x000000,
0x000000, 0x000040, 0x0000ff, 0x0000ff, 0x000bf4, 0x00e718, 0x00ff00, 0x0050af, 0x0021de, 0x0029d6, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x00003b, 0x000000,
0x000000, 0x000000, 0x00007b, 0x0000ff, 0x0000ff, 0x0023dd, 0x006897, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x000084, 0x000000, 0x000000,
0x000000, 0x000000, 0x000000, 0x000080, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000ff, 0x0000fd, 0x00008c, 0x000000, 0x000000, 0x000000,
0x000000, 0x000000, 0x000000, 0x000000, 0x00004e, 0x0000bc, 0x0000fc, 0x0042d8, 0x0051bc, 0x0042bc, 0x0000bc, 0x000038, 0x000000, 0x000000, 0x000000, 0x000000,
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x00031f, 0x003f00, 0x004d00, 0x003e00, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000
};

const long EarthEXP01[] PROGMEM =
{
0x060604, 0x080702, 0x090803, 0x0c0c04, 0x090803, 0x090803, 0x070703, 0x0c0b03, 0x080803, 0x0a0903, 0x090803, 0x080803, 0x030201, 0x050502, 0x060502, 0x0b0a05,
0x050501, 0x0c0a03, 0x080802, 0x060501, 0x070601, 0x0a0902, 0x090700, 0x0b0600, 0x060200, 0x0a0801, 0x100f04, 0x0c0b03, 0x090802, 0x090802, 0x0d0c03, 0x070601,
0x030301, 0x0a0902, 0x060501, 0x080701, 0x050401, 0x090902, 0x040000, 0x040000, 0x050300, 0x080300, 0x090000, 0x0b0b02, 0x080802, 0x080802, 0x0a0902, 0x090803,
0x040402, 0x080802, 0x050502, 0x070500, 0x070000, 0x000000, 0x0d3f64, 0x1f8ac7, 0x145885, 0x08121b, 0x0a0e0f, 0x070000, 0x080801, 0x070602, 0x080802, 0x030301,
0x0a0903, 0x040401, 0x0a0901, 0x030000, 0x02111e, 0x060908, 0x0f222e, 0x0a334a, 0x1873be, 0x0d4672, 0x125a8d, 0x112a3d, 0x090000, 0x060602, 0x060601, 0x050502,
0x010101, 0x060601, 0x070501, 0x09263c, 0x0a3b65, 0x110b04, 0x0e0000, 0x040f1e, 0x25b1ff, 0x26acff, 0x1c84cf, 0x1a81d1, 0x07111d, 0x080500, 0x0a0902, 0x020201,
0x040402, 0x030300, 0x020100, 0x10538b, 0x0d293b, 0x0d0400, 0x090200, 0x152b35, 0x249ff3, 0x229eff, 0x239eff, 0x23adff, 0x113851, 0x090300, 0x0c0b03, 0x010101,
0x080703, 0x050300, 0x020200, 0x1d8be3, 0x113f63, 0x0a0100, 0x1c7fc9, 0x228ad0, 0x2085d7, 0x219bfa, 0x24a0fe, 0x2195ee, 0x020f1b, 0x040100, 0x0a0902, 0x050402,
0x060602, 0x050400, 0x000000, 0x1b8eec, 0x2290e7, 0x120700, 0x184b73, 0x1a95eb, 0x21a3ff, 0x2294f2, 0x2196f3, 0x26b1ff, 0x135487, 0x060100, 0x050401, 0x060602,
0x030302, 0x070702, 0x060000, 0x145b91, 0x26b6ff, 0x0b0c05, 0x0b0000, 0x130300, 0x237ebd, 0x21a6ff, 0x2196f6, 0x27b7ff, 0x124469, 0x040200, 0x000000, 0x010101,
0x070702, 0x0a0a03, 0x0b0701, 0x070e14, 0x1ea4ff, 0x104267, 0x1a0000, 0x1d0f00, 0x1b6aa6, 0x22abff, 0x28bcff, 0x197dd2, 0x030100, 0x070500, 0x050501, 0x050502,
0x030301, 0x050501, 0x070802, 0x000000, 0x092745, 0x1989e5, 0x1c3c51, 0x151d17, 0x24b2ff, 0x2abeff, 0x1f85cb, 0x061016, 0x000000, 0x050502, 0x050501, 0x040402,
0x060502, 0x060602, 0x080702, 0x0c0b02, 0x050000, 0x0b1d27, 0x134566, 0x0f1612, 0x124f81, 0x114769, 0x020000, 0x020000, 0x070702, 0x030301, 0x030301, 0x030301,
0x050502, 0x070702, 0x090802, 0x0a0902, 0x0a0a02, 0x080000, 0x050000, 0x090a05, 0x000000, 0x010000, 0x010000, 0x030301, 0x020201, 0x020100, 0x000000, 0x050502,
0x040301, 0x080702, 0x080702, 0x060601, 0x060501, 0x070602, 0x070601, 0x060500, 0x080701, 0x0b0a02, 0x0b0b03, 0x080702, 0x040401, 0x090902, 0x050501, 0x000000,
0x030303, 0x010101, 0x010101, 0x060502, 0x080702, 0x040402, 0x070703, 0x060602, 0x030302, 0x050502, 0x040402, 0x030302, 0x040402, 0x050402, 0x0a0903, 0x080804
};

const long EarthEXP02[] PROGMEM =
{
0x000000, 0x000000, 0x000000, 0x010100, 0x000000, 0x000000, 0x000000, 0x010100, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x010100,
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000,
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000,
0x000000, 0x000000, 0x000000, 0x050300, 0x030200, 0x000000, 0x000000, 0x000000, 0x020100, 0x010000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000,
0x000000, 0x000000, 0x000000, 0x030200, 0x020100, 0x000000, 0x000000, 0x000000, 0x060300, 0x020100, 0x000000, 0x030200, 0x050300, 0x000000, 0x000000, 0x000000,
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x020100, 0x040200, 0x000000, 0x000000, 0x000000,
0x000000, 0x000000, 0x000000, 0x030200, 0x000000, 0x050300, 0x0e0000, 0x000f19, 0x000a12, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000,
0x000000, 0x000000, 0x000000, 0x0a0600, 0x080500, 0x040200, 0x0a201d, 0x36ca90, 0x15b6af, 0x021114, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000,
0x020100, 0x050300, 0x040200, 0x0f0900, 0x090500, 0x000000, 0x002224, 0x2edbaf, 0x25d0b0, 0x051311, 0x040200, 0x030200, 0x000000, 0x000000, 0x040200, 0x050300,
0x010100, 0x030200, 0x010100, 0x050300, 0x050300, 0x080500, 0x010000, 0x001e2d, 0x001f26, 0x000000, 0x040200, 0x020100, 0x000000, 0x000000, 0x030200, 0x040200,
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x020100, 0x010000, 0x000000, 0x000000, 0x000000, 0x000000, 0x030100, 0x030200, 0x000000, 0x000000, 0x000000,
0x000000, 0x000000, 0x020100, 0x050300, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x050300, 0x040200, 0x000000, 0x000000, 0x000000,
0x000000, 0x000000, 0x010000, 0x020100, 0x020100, 0x000000, 0x000000, 0x000000, 0x000000, 0x030200, 0x040200, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000,
0x000000, 0x000000, 0x000000, 0x000000, 0x050300, 0x070400, 0x0a0600, 0x060300, 0x000000, 0x030200, 0x050300, 0x000000, 0x000000, 0x060400, 0x010100, 0x000000,
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x030200, 0x050300, 0x020100, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x010100, 0x000000, 0x000000,
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x010100
};

const long EarthEXP03[] PROGMEM =
{
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000,
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000,
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x380200, 0x770000, 0x1d0000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000,
0x000000, 0x000000, 0x000000, 0x000000, 0x150000, 0xa30700, 0xff3e00, 0xfa6d00, 0xa92d00, 0x480000, 0x970000, 0x6d0000, 0x000000, 0x000000, 0x000000, 0x000000,
0x000000, 0x000000, 0x120000, 0x9f0d00, 0xe96513, 0xffd09e, 0xfcf698, 0xffff96, 0xfff5ca, 0xff7508, 0xff8108, 0xea5a0a, 0x3c0000, 0x1b0000, 0x000000, 0x000000,
0x000000, 0x000000, 0x030000, 0xd72b00, 0xffff1b, 0xffffff, 0xffffff, 0xfbfcb0, 0xfeff8a, 0xffe700, 0xffc623, 0xffe737, 0xda3704, 0x130000, 0x000000, 0x000000,
0x000000, 0x190000, 0x380000, 0xaa420e, 0xffee21, 0xfffd6c, 0xfeff87, 0xfff200, 0xffe400, 0xfeec49, 0xfdda42, 0xf7e11c, 0xffab0e, 0x791902, 0x000000, 0x000000,
0x000000, 0x0a0000, 0x2e0000, 0xe25900, 0xffe41d, 0xfcdf0c, 0xfed400, 0xfcb017, 0xfdde16, 0xfbfdbe, 0xffff57, 0xfef700, 0xffd134, 0xa83208, 0x010000, 0x000000,
0x000000, 0x000000, 0x080000, 0xe77b14, 0xffeb3b, 0xf0983b, 0xf0741a, 0xf1a580, 0xfefdd2, 0xfeef00, 0xfddc13, 0xffff20, 0xffff48, 0xf74e05, 0x0f0000, 0x000000,
0x000000, 0x000000, 0x1a0000, 0xfd9232, 0xffff5b, 0xfdc61e, 0xfdaf23, 0xfce44a, 0xfdfee9, 0xfdf642, 0xfdee1d, 0xffba16, 0xf98b11, 0x931d00, 0x050000, 0x000000,
0x000000, 0x000000, 0x050000, 0xc12c00, 0xffb300, 0xffc310, 0xff8e11, 0xffd71f, 0xffffd5, 0xffff6d, 0xfffc0f, 0xff590f, 0xc70000, 0x030000, 0x000000, 0x000000,
0x000000, 0x000000, 0x120100, 0xaa1600, 0xb42003, 0x861000, 0x640000, 0xde5509, 0xffaf14, 0xff9e16, 0xc74a0e, 0x830600, 0x5c0100, 0x070000, 0x000000, 0x000000,
0x000000, 0x000000, 0x060000, 0x150000, 0x000000, 0x000000, 0x000000, 0x110000, 0x6d0000, 0x3e0000, 0x000000, 0x0f0000, 0x080000, 0x000000, 0x000000, 0x000000,
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000,
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000,
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000
};


bool isButtonPressed = true;

void setup() {
pinMode(inpin, INPUT); // declare pushbutton as input
Serial.begin(9600);
FastLED.addLeds<NEOPIXEL, DATA_PIN>(leds, NUM_LEDS); // Init of the Fastled library
FastLED.setBrightness(5);
}

void loop() {
val = digitalRead(inpin); // read input value
if (val == HIGH) { // check if the input is HIGH (button released)
isButtonPressed = false;
}
if (val == LOW) {
isButtonPressed = true;
}


if (isButtonPressed) {
Serial.println("true");

// Put Earth first frame
for (int passtime = 0; passtime < 1; passtime++) { // Display it 1 times

FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Earth01[i])); // Read array from Flash
}

FastLED.show();
delay(500);


// Put Earth second frame
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Earth02[i]));
}

FastLED.show();
delay(500);

// Put Earth third frame
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(Earth03[i]));
}

FastLED.show();
delay(500);
}
}

else {

Serial.println("false");
for (int passtime = 0; passtime < 1; passtime++) {

FastLED.clear();
// Put EarthEXP first frame FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(EarthEXP01[i]));
}
FastLED.show();
delay(500);


// Put EarthEXP second frame
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(EarthEXP02[i]));
}
FastLED.show();
delay(500);


// Put EarthEXP second frame FastLED.clear();
FastLED.clear();
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = pgm_read_dword(&(EarthEXP03[i]));
}
FastLED.show();
delay(500);
}
}
}

PHOTOSHOP

Open your GIF in Photoshop

Clink image > image size > set to 16x16 pixels at 72 PPI > Okay

Save each image as BMP

File > save a copy > format BMP > Okay >Windows > 24 bit > Okay

Then open lcd-image-converter

Save C code

Past in Arduino

16x16 Matrix Housing

Using Format