Code Example


Main code link
Animation module link
Letters module link
Symbols module link
/*
 * Code by Brian Patton
 * modified from example code included with Arduino for the LedControl library
 * Created 4/13/2016
 * Do whatever you wish with it
 */
#include "LedControl.h"

LedControl lc1 = LedControl(10,12,11,1); // Pins: DIN,CLK,CS, # of Display connected
unsigned long dlay = 300; // Delay between Frames

//************************************************************
void setup()
{
  lc1.shutdown(0, false); // Wake up displays
//  lc1.shutdown(1, false); //Wake up second display
  lc1.setIntensity(0, 1); // Set intensity levels setIntensity(int addr, int intensity)
//  lc1.setIntensity(1, 2); // Set intensity levels of second display
  lc1.clearDisplay(0);  // Clear Displays
//  lc1.clearDisplay(0); // Clear 2nd Display
}

void loop()
{
  prtSplat(0);
  delay(dlay);
  prtSpiral(0);
  delay(dlay);
  prtFace_Happy(0);
  delay(2000);
  prtFace_Sad(0);
  delay(2000);
  prtUpArrow(0);
  delay(dlay);
  prtLeftArrow(0);
  delay(dlay);
  prtRightArrow(0);
  delay(dlay);
  prtA(0);
  delay(dlay);
  prtB(0);
  delay(dlay);
  prtC(0);
  delay(dlay);
  prtD(0);
  delay(dlay);
  prtE(0);
  delay(dlay);
  prtF(0);
  delay(dlay);
  prtG(0);
  delay(dlay);
  prtH(0);
  delay(dlay);
  prtI(0);
  delay(dlay);
  prtJ(0);
  delay(dlay);
  prtK(0);
  delay(dlay);
  prtL(0);
  delay(dlay);
  prtM(0);
  delay(dlay);
  prtN(0);
  delay(dlay);
  prtO(0);
  delay(dlay);
  prtP(0);
  delay(dlay);
  prtQ(0);
  delay(dlay);
  prtR(0);
  delay(dlay);
  prtS(0);
  delay(dlay);
  prtT(0);
  delay(dlay);
  prtU(0);
  delay(dlay);
  prtV(0);
  delay(dlay);
  prtW(0);
  delay(dlay);
  prtX(0);
  delay(dlay);
  prtY(0);
  delay(dlay);
  prtZ(0);
  delay(dlay);

}