int DataPin = 11; //shift input int LatchPin = 10; //rstclk on shift int ClockPin = 13; //srclk on shift int clock = 9; //decade clk int Reset = 8; //reset int x; //used in the for loop counter int y; //used in the for loop counter unsigned char rain [][8][3] = { //In theis example the animation is called rain, {{0,2,4},{32,0,0},{1,0,16},{0,0,0},{0,0,64},{2,0,0},{0,0,4},{8,0,0}}, //Paste the array values you got from excel here {{4,0,32},{0,2,4},{32,0,1},{1,0,16},{0,0,0},{0,0,64},{2,0,0},{0,0,0}}, {{0,0,0},{4,0,32},{0,2,4},{32,0,1},{1,0,16},{0,0,0},{0,0,64},{2,0,0}}, {{8,0,0},{0,0,0},{4,0,32},{0,2,4},{32,0,1},{1,0,16},{0,0,0},{0,0,64}}, {{0,0,0},{8,0,0},{0,0,0},{4,0,32},{0,2,4},{32,0,0},{1,0,16},{0,0,0}}, {{0,0,4},{8,0,0},{0,0,0},{4,0,32},{0,2,4},{32,0,0},{1,0,16},{0,0,0}}, {{2,0,0},{0,0,4},{8,0,0},{0,0,0},{4,0,32},{0,2,4},{32,0,0},{0,0,16}}, {{0,0,64},{2,0,0},{0,0,4},{8,0,0},{0,0,0},{4,0,32},{0,0,4},{0,0,0}}, {{1,0,16},{0,0,64},{2,0,0},{0,0,4},{8,0,0},{0,0,0},{4,0,32},{0,0,0}}, {{32,0,0},{1,0,16},{0,0,64},{2,0,0},{0,0,4},{8,0,0},{0,0,0},{4,0,32}}, {{0,0,0},{32,0,0},{1,0,16},{0,0,64},{2,0,0},{0,0,4},{8,0,0},{0,0,0}}}; //When you get to the last fram of your animation, you need to replace the comma with }; //e.g unsigned char your_new_animation [][8][3] = { //You can only have a limited amount of frames even if they are in different animations. //If you have to many frames, the code won't start on the arduino, so you will have to reduce the amount of them. //An animation can be played an unlimited amount of times but it can only hold so much data. void setup(){ pinMode(DataPin,OUTPUT); //Basic setup of pins etc pinMode(ClockPin,OUTPUT); pinMode(LatchPin,OUTPUT); pinMode(clock,OUTPUT); pinMode(Reset,OUTPUT); digitalWrite(Reset,HIGH); //Reseting the decade to 0 as it can be at a random stage on start up delayMicroseconds(5); digitalWrite(Reset,LOW); } void run_animation(unsigned char frame_time,unsigned char frames[][8][3],unsigned char num_frames,unsigned char num_loops){ //My function called run_animation for(int i=0;i