From 388e97cee4890b1a79e359e284ee39284f2aa44d Mon Sep 17 00:00:00 2001 From: "Ben V. Brown" Date: Thu, 24 Feb 2022 22:00:27 +1100 Subject: [PATCH] Update img2logo.py --- Bootup Logos/img2logo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bootup Logos/img2logo.py b/Bootup Logos/img2logo.py index e16f20b..cad151a 100755 --- a/Bootup Logos/img2logo.py +++ b/Bootup Logos/img2logo.py @@ -154,7 +154,7 @@ def animated_image_to_bytes(imageIn: Image, negative: bool, dither: bool, thresh # Now we can build our output data blob # First we always start with a full first frame; future optimisation to check if we should or not outputData = [DATA_PROGRAMMED_MARKER] - outputData.append(frameTiming) + outputData.append(int(frameTiming)) first_frame = get_screen_blob([0x00] * (LCD_NUM_BYTES), frameData[0]) outputData.extend(first_frame) print(f"Frame 1 encoded to {len(first_frame)} bytes")