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

Commit

Permalink
Merge pull request #2429 from MycroftAI/bug/mark1_faceplate
Browse files Browse the repository at this point in the history
mark1/fix display big images
  • Loading branch information
forslund authored Mar 6, 2020
2 parents 02a48f9 + 46af6fc commit 05cae9d
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 05cae9d

Please sign in to comment.