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down(0,false);
27 lc.setIntensity(0,0);
28 lc.clearDisplay(0);
29}
30
31void loop() {
32 for (int j=0;j<8;j++){
33 for (int i=0;i<8;i++){
34 lc.setLed(0,i,j,Marios_ideas[j][(i+position)-abs((i+position)/54)*54]);
35 }
36 }
37 delay(20);
38 position=position+1;
39}
40