You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Adding text to an image fails with the error:
Traceback (most recent call last):
File "/workspaces/turing-smart-screen-python/button_card.py", line 50, in <module>
lcd_comm.DisplayText(game['gamename'], 5, 5,
File "/workspaces/turing-smart-screen-python/library/lcd/lcd_comm.py", line 273, in DisplayText
self.DisplayPILImage(text_image, left, top)
File "/workspaces/turing-smart-screen-python/library/lcd/lcd_comm_rev_c.py", line 303, in DisplayPILImage
img, pyd = self._generate_update_image(image, x, y, Count.Start, Command.UPDATE_BITMAP,
File "/workspaces/turing-smart-screen-python/library/lcd/lcd_comm_rev_c.py", line 365, in _generate_update_image
payload.extend(bytearray.fromhex(image_size))
ValueError: non-hexadecimal number found in fromhex() arg at position 5
Describe the bug
Adding text to an image fails with the error:
To Reproduce
Steps to reproduce the behavior:
image_size
from line 365 in _generate_update_image = '10ff3'. It appears that when the value is more than 4 bytes there is an error.Expected behavior
Text should render on the screen.
Screenshots / photos of the Turing screen
Nothing displays.
Environment:
main
branchAdditional context
I attempted to zero pad the string but that didn't work. Reducing the string below the size that ends up being 5 bytes works fine.
The text was updated successfully, but these errors were encountered: