d-a-v on master
Hexdump fix&update (#7831) * h… (compare)
ivankravets on master
Dynamically configure exception… (compare)
devyte on master
Add support for hidden AP's Merge branch 'master' into feat… Add WiFi persistent to WiFi Mul… and 3 more (compare)
File FILe;
void loop() {
if(SHOW)
{
if( (millis()- OpenlastTime) > DURATION[image_index]*1000L )
{
FILe.close();
image_index++;
if(image_index>IMAGE_NUM) image_index=0;
Serial.print(F(" i=")); Serial.print(image_index);
Serial.print(F(" New Image=")); Serial.print(IMAGES[image_index]);
Serial.print(F(" duration=")); Serial.println(DURATION[image_index]);
FILe=SPIFFS.open("/SHOW/"+IMAGES[image_index], "r");
if(!FILe) Serial.println("FILE NOT OPEN");
OpenlastTime=millis();
Current_imageLine = 0;
}
if(!Start_new_round && (micros()-lastLineShow)> lineInterval)
{
int i = 0;
while( (i < NUM_LEDS*3) && FILe.available())
{
i += FILe.readBytes( ((char*)leds) + i, (NUM_LEDS*3)-i);
}
FastLED.show();
lastLineShow=micros();
Current_imageLine++;
}
{read_line(Current_imageLine++,image_index); FastLED.show(); lastLineShow=micros(); }
if(Current_imageLine >= IMAGES_LINES)
{
Serial.print("[frame]"); Serial.println((micros()-lastFrameShow));
Current_imageLine = 0;
lastFrameShow=micros();
Start_new_round=false;
FILe.seek(0, SeekSet);
}
}
}