Skip to content
This repository has been archived by the owner on Sep 8, 2024. It is now read-only.

Commit

Permalink
mark1/fix display big images
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl authored Dec 17, 2019
1 parent bbb5fe7 commit 46af6fc
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions mycroft/client/enclosure/mark1/mouth.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,8 @@ def __display(self, code, clear_previous, x_offset, y_offset):
message = "mouth.icon=" + x_offset + y_offset + clear_previous + code
# Check if message exceeds Arduino's serial buffer input limit 64 bytes
if len(message) > 60:
message1 = message[:31]
message2 = message[31:]
message1 += "$"
message2 += "$"
message2 = "mouth.icon=" + message2
message1 = message[:31] + "$"
message2 = "mouth.icon=$" + message[31:]
self.writer.write(message1)
time.sleep(0.25) # writer bugs out if sending messages too rapidly
self.writer.write(message2)
Expand Down

0 comments on commit 46af6fc

Please sign in to comment.