Paso 3: programación
//worm #include <Ledcontrol.h> int DIN = 12; int CS = 11; int CLK = 10;byte arrowleft[8]={0x00,0x00,0x20,0x20,0x20,0x00,0x00,0x00,}; byte arrowright[8]={0x00,0x00,0x00,0x20,0x20,0x20,0x00,0x00,}; byte arrowdown[8]={0x00,0x00,0x00,0x00,0x20,0x30,0x00,0x00,}; byte arrowup[8]={0x00,0x00,0x00,0x00,0x00,0x38,0x00,0x00,}; byte somthink[8]={0x00,0x00,0x00,0x00,0x00,0x1C,0x00,0x00,}; byte somthink2[8]={0x00,0x00,0x00,0x00,0x04,0x0C,0x00,0x00,};byte arrowleft2[8]={0x00,0x00,0x00,0x04,0x04,0x04,0x00,0x00,}; byte arrowright2[8]={0x00,0x00,0x04,0x04,0x04,0x00,0x00,0x00,}; byte arrowdown2[8]={0x00,0x00,0x0C,0x04,0x00,0x00,0x00,0x00,}; byte arrowup2[8]={0x00,0x00,0x1C,0x00,0x00,0x00,0x00,0x00,}; byte somthink3[8]={0x00,0x00,0x38,0x00,0x00,0x00,0x00,0x00,}; byte somthink23[8]={0x00,0x00,0x30,0x20,0x00,0x00,0x00,0x00,};LedControl lc=LedControl(DIN,CLK,CS,0);void setup(){ lc.shutdown(0,false); //The MAX72XX is in power-saving mode on startup lc.setIntensity(0,15); // Set the brightness to maximum value lc.clearDisplay(0); // and clear the display }void loop(){ printEduc8s();}void printEduc8s() { printByte(arrowleft); delay(50); printByte(arrowright); delay(50); printByte(arrowdown); delay(50); printByte(arrowup); delay(50); printByte(somthink); delay(50); printByte(somthink2); delay(50); printByte(arrowleft2); delay(50); printByte(arrowright2); delay(50); printByte(arrowdown2); delay(50); printByte(arrowup2); delay(50); printByte(somthink3); delay(50); printByte(somthink23); delay(50); }void printByte(byte character []) { int i = 0; for(i=0;i<8;i++) { lc.setRow(0,i,character[i]); } }