Main code link
Animation module link
Letters module link
Symbols module link
/* * Code by Brian Patton * modified from example code included in examples for the LedControl library * Created 4/13/2016 * Do whatever you wish with it */ //********************************* // Animation Module //********************************* void prtSplat(int device) { byte Splat1[8] = {B00000000, B00000000, B00000000, B00011000, B00011000, B00000000, B00000000, B00000000}; byte Splat2[8] = {B00000000, B00000000, B00100100, B00011000, B00011000, B00100100, B00000000, B00000000}; byte Splat3[8] = {B00000000, B01000010, B00100100, B00011000, B00011000, B00100100, B01000010, B00000000}; byte Splat4[8] = {B10000001, B01000010, B00100100, B00011000, B00011000, B00100100, B01000010, B10000001}; byte Splat5[8] = {B01000000, B00100001, B00010010, B00001100, B00001100, B00010010, B00100001, B01000000}; byte Splat6[8] = {B00100000, B00010000, B00001001, B00000110, B00000110, B00001001, B00010000, B00100000}; byte Splat7[8] = {B00010000, B00001000, B00000100, B00000011, B00000011, B00000100, B00001000, B00010000}; byte Splat8[8] = {B00001000, B00000100, B00000010, B00000001, B00000001, B00000010, B00000100, B00001000}; byte Splat9[8] = {B00000100, B00000010, B00000001, B00000000, B00000000, B00000001, B00000010, B00000100}; byte Splat10[8] = {B00000010, B00000001, B00000000, B00000000, B00000000, B00000000, B00000001, B00000010}; byte Splat11[8] = {B00000001, B00000000, B00000000, B00000000, B00000000, B00000000, B00000000, B00000001}; byte Splat12[8] = {B00000000, B00000000, B00000000, B00000000, B00000000, B00000000, B00000000, B00000000}; for (int i = 0; i < 8; i++) { lc1.setRow(device, i, Splat1[i]); //setRow(int addr, int row, byte value); } delay(50); for (int i = 0; i < 8; i++) { lc1.setRow(device, i, Splat2[i]); //setRow(int addr, int row, byte value); } delay(50); for (int i = 0; i < 8; i++) { lc1.setRow(device, i, Splat3[i]); //setRow(int addr, int row, byte value); } delay(50); for (int i = 0; i < 8; i++) { lc1.setRow(device, i, Splat4[i]); //setRow(int addr, int row, byte value); } delay(50); for (int i = 0; i < 8; i++) { lc1.setRow(device, i, Splat5[i]); //setRow(int addr, int row, byte value); } delay(100); for (int i = 0; i < 8; i++) { lc1.setRow(device, i, Splat6[i]); //setRow(int addr, int row, byte value); } delay(150); for (int i = 0; i < 8; i++) { lc1.setRow(device, i, Splat7[i]); //setRow(int addr, int row, byte value); } delay(200); for (int i = 0; i < 8; i++) { lc1.setRow(device, i, Splat8[i]); //setRow(int addr, int row, byte value); } delay(250); for (int i = 0; i < 8; i++) { lc1.setRow(device, i, Splat9[i]); //setRow(int addr, int row, byte value); } delay(300); for (int i = 0; i < 8; i++) { lc1.setRow(device, i, Splat10[i]); //setRow(int addr, int row, byte value); } delay(350); for (int i = 0; i < 8; i++) { lc1.setRow(device, i, Splat11[i]); //setRow(int addr, int row, byte value); } delay(400); for (int i = 0; i < 8; i++) { lc1.setRow(device, i, Splat12[i]); //setRow(int addr, int row, byte value); } delay(450); } //*********************** void prtSpiral(int device) { byte Spiral1[8] = {B00000000, B00000000, B00000000, B00010000, B00010000, B00000000, B00000000, B00000000}; byte Spiral2[8] = {B00000000, B00000000, B00000000, B00011000, B00000000, B00000000, B00000000, B00000000}; byte Spiral3[8] = {B00000000, B00000000, B00000000, B00001000, B00000100, B00000000, B00000000, B00000000}; byte Spiral4[8] = {B00000000, B00000000, B00000000, B00000000, B00000100, B00000100, B00000000, B00000000}; byte Spiral5[8] = {B00000000, B00000000, B00000000, B00000000, B00000000, B00000100, B00001000, B00000000}; byte Spiral6[8] = {B00000000, B00000000, B00000000, B00000000, B00000000, B00000000, B00011000, B00000000}; byte Spiral7[8] = {B00000000, B00000000, B00000000, B00000000, B00000000, B00000000, B00110000, B00000000}; byte Spiral8[8] = {B00000000, B00000000, B00000000, B00000000, B00000000, B01000000, B00100000, B00000000}; byte Spiral9[8] = {B00000000, B00000000, B00000000, B00000000, B01000000, B01000000, B00000000, B00000000}; byte Spiral10[8] = {B00000000, B00000000, B00000000, B01000000, B01000000, B00000000, B00000000, B00000000}; byte Spiral11[8] = {B00000000, B00000000, B00100000, B01000000, B00000000, B00000000, B00000000, B00000000}; byte Spiral12[8] = {B00000000, B00000000, B00110000, B00000000, B00000000, B00000000, B00000000, B00000000}; byte Spiral13[8] = {B00000000, B00000000, B00011000, B00000000, B00000000, B00000000, B00000000, B00000000}; byte Spiral14[8] = {B00000000, B00000000, B00001100, B00000000, B00000000, B00000000, B00000000, B00000000}; byte Spiral15[8] = {B00000000, B00000000, B00000100, B00000010, B00000000, B00000000, B00000000, B00000000}; byte Spiral16[8] = {B00000000, B00000000, B00000000, B00000010, B00000010, B00000000, B00000000, B00000000}; byte Spiral17[8] = {B00000000, B00000000, B00000000, B00000000, B00000010, B00000010, B00000000, B00000000}; byte Spiral18[8] = {B00000000, B00000000, B00000000, B00000000, B00000000, B00000010, B00000010, B00000000}; byte Spiral19[8] = {B00000000, B00000000, B00000000, B00000000, B00000000, B00000000, B00000010, B00000100}; byte Spiral20[8] = {B00000000, B00000000, B00000000, B00000000, B00000000, B00000000, B00000000, B00001100}; byte Spiral21[8] = {B00000000, B00000000, B00000000, B00000000, B00000000, B00000000, B00000000, B00011000}; byte Spiral22[8] = {B00000000, B00000000, B00000000, B00000000, B00000000, B00000000, B00000000, B00110000}; byte Spiral23[8] = {B00000000, B00000000, B00000000, B00000000, B00000000, B00000000, B00000000, B01100000}; byte Spiral24[8] = {B00000000, B00000000, B00000000, B00000000, B00000000, B00000000, B10000000, B01000000}; byte Spiral25[8] = {B00000000, B00000000, B00000000, B00000000, B00000000, B10000000, B10000000, B00000000}; byte Spiral26[8] = {B00000000, B00000000, B00000000, B00000000, B10000000, B10000000, B00000000, B00000000}; byte Spiral27[8] = {B00000000, B00000000, B00000000, B10000000, B10000000, B00000000, B00000000, B00000000}; for (int i = 0; i < 8; i++) { lc1.setRow(device, i, Spiral1[i]); //setRow(int addr, int row, byte value); } delay(50); for (int i = 0; i < 8; i++) { lc1.setRow(device, i, Spiral2[i]); //setRow(int addr, int row, byte value); } delay(50); for (int i = 0; i < 8; i++) { lc1.setRow(device, i, Spiral3[i]); //setRow(int addr, int row, byte value); } delay(50); for (int i = 0; i < 8; i++) { lc1.setRow(device, i, Spiral4[i]); //setRow(int addr, int row, byte value); } delay(50); for (int i = 0; i < 8; i++) { lc1.setRow(device, i, Spiral5[i]); //setRow(int addr, int row, byte value); } delay(50); for (int i = 0; i < 8; i++) { lc1.setRow(device, i, Spiral6[i]); //setRow(int addr, int row, byte value); } delay(50); for (int i = 0; i < 8; i++) { lc1.setRow(device, i, Spiral7[i]); //setRow(int addr, int row, byte value); } delay(50); for (int i = 0; i < 8; i++) { lc1.setRow(device, i, Spiral8[i]); //setRow(int addr, int row, byte value); } delay(50); for (int i = 0; i < 8; i++) { lc1.setRow(device, i, Spiral9[i]); //setRow(int addr, int row, byte value); } delay(50); for (int i = 0; i < 8; i++) { lc1.setRow(device, i, Spiral10[i]); //setRow(int addr, int row, byte value); } delay(50); for (int i = 0; i < 8; i++) { lc1.setRow(device, i, Spiral11[i]); //setRow(int addr, int row, byte value); } delay(50); for (int i = 0; i < 8; i++) { lc1.setRow(device, i, Spiral12[i]); //setRow(int addr, int row, byte value); } delay(50); for (int i = 0; i < 8; i++) { lc1.setRow(device, i, Spiral13[i]); //setRow(int addr, int row, byte value); } delay(50); for (int i = 0; i < 8; i++) { lc1.setRow(device, i, Spiral14[i]); //setRow(int addr, int row, byte value); } delay(50); for (int i = 0; i < 8; i++) { lc1.setRow(device, i, Spiral15[i]); //setRow(int addr, int row, byte value); } delay(50); for (int i = 0; i < 8; i++) { lc1.setRow(device, i, Spiral16[i]); //setRow(int addr, int row, byte value); } delay(50); for (int i = 0; i < 8; i++) { lc1.setRow(device, i, Spiral17[i]); //setRow(int addr, int row, byte value); } delay(50); for (int i = 0; i < 8; i++) { lc1.setRow(device, i, Spiral18[i]); //setRow(int addr, int row, byte value); } delay(50); for (int i = 0; i < 8; i++) { lc1.setRow(device, i, Spiral19[i]); //setRow(int addr, int row, byte value); } delay(50); for (int i = 0; i < 8; i++) { lc1.setRow(device, i, Spiral20[i]); //setRow(int addr, int row, byte value); } delay(50); for (int i = 0; i < 8; i++) { lc1.setRow(device, i, Spiral21[i]); //setRow(int addr, int row, byte value); } delay(50); for (int i = 0; i < 8; i++) { lc1.setRow(device, i, Spiral22[i]); //setRow(int addr, int row, byte value); } delay(50); for (int i = 0; i < 8; i++) { lc1.setRow(device, i, Spiral23[i]); //setRow(int addr, int row, byte value); } delay(50); for (int i = 0; i < 8; i++) { lc1.setRow(device, i, Spiral24[i]); //setRow(int addr, int row, byte value); } delay(50); for (int i = 0; i < 8; i++) { lc1.setRow(device, i, Spiral25[i]); //setRow(int addr, int row, byte value); } delay(50); for (int i = 0; i < 8; i++) { lc1.setRow(device, i, Spiral26[i]); //setRow(int addr, int row, byte value); } delay(50); for (int i = 0; i < 8; i++) { lc1.setRow(device, i, Spiral27[i]); //setRow(int addr, int row, byte value); } delay(50); }