Working GIF support

This commit is contained in:
Christian Schwinne
2024-03-17 22:24:55 +01:00
committed by Will Tatam
parent b8a29bcbf8
commit 255be30b38
2 changed files with 20 additions and 19 deletions

View File

@@ -4655,12 +4655,11 @@ static const char _data_FX_MODE_WASHING_MACHINE[] PROGMEM = "Washing Machine@!,!
Draws a .gif image from filesystem on the matrix/strip
*/
uint16_t mode_image(void) {
//Serial.println(renderImageToSegment(SEGMENT));
int status = renderImageToSegment(SEGMENT);
if (status != 0 && status != 254 && status != 255) {
Serial.print("GIF renderer return: ");
Serial.println(status);
}
renderImageToSegment(SEGMENT);
// if (status != 0 && status != 254 && status != 255) {
// Serial.print("GIF renderer return: ");
// Serial.println(status);
// }
return FRAMETIME;
}
static const char _data_FX_MODE_IMAGE[] PROGMEM = "Image@!,;;;12;sx=128";