diff --git a/UNHB-Esel/FileHandling.ino b/UNHB-Esel/FileHandling.ino index 1c14445..f300cce 100644 --- a/UNHB-Esel/FileHandling.ino +++ b/UNHB-Esel/FileHandling.ino @@ -61,23 +61,70 @@ void playFile(char* file, int framespeed) { } } f.close(); - - /*Serial.println(frameNumber); - for(int frame=0; frame>8 & 0xFF, rgb>>16); + strip.SetPixelColor( i*8+j , *lanim[i*8+j]); + + rgbStr=rline.substring(4+i*12,4+i*12+6); + rgb = strtol(rgbStr.c_str(), NULL, 16); + ranim[i*8+j] = new RgbColor(rgb & 0xFF, rgb>>8 & 0xFF, rgb>>16); + strip.SetPixelColor( 64+i*8+j , *ranim[i*8+j]); + } + lline = lf.readStringUntil('\n'); + rline = rf.readStringUntil('\n'); + } + strip.Show(); + delay(framespeed); + + if(frame>4 )] ); - strip.SetPixelColor( 2*n+1, *c[(test2[n]&0x0F)] ); - strip.Show(); delay(1000); - } - delay(10000);*/ + playBwAnimation(50, eye_move_lc); delay(3000); + playMapAnimation(150, terminator);delay(3000);*/ Serial.println("Loop end ..."); }