Skip to content

Commit 6c97f08

Browse files
authored
Merge pull request #2599 from makermelissa/main
Add useful function to message board lib
2 parents 42d6c1f + ca9e1e3 commit 6c97f08

File tree

1 file changed

+4
-0
lines changed
  • Matrix_Portal_S3_Message_Board/lib/messageboard

1 file changed

+4
-0
lines changed

Matrix_Portal_S3_Message_Board/lib/messageboard/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ def animate(self, message, animation_class, animation_function, **kwargs):
5656
anim_func = getattr(animation, animation_function)
5757
anim_func(message, **kwargs)
5858

59+
def set_message_position(self, x, y):
60+
"""Set the position of the message on the display"""
61+
self._position = (x, y)
62+
5963
def _draw(
6064
self,
6165
image,

0 commit comments

Comments
 (0)