Skip to content

Commit b5b8810

Browse files
committed
Add useful function to message board lib
1 parent 42d6c1f commit b5b8810

File tree

6 files changed

+4
-4
lines changed

6 files changed

+4
-4
lines changed
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Matrix_Portal_S3_Message_Board/lib/messageboard/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
# SPDX-FileCopyrightText: 2023 Melissa LeBlanc-Williams for Adafruit Industries
2-
#
3-
# SPDX-License-Identifier: MIT
4-
51
import bitmaptools
62
import displayio
73
import adafruit_imageload
@@ -56,6 +52,10 @@ def animate(self, message, animation_class, animation_function, **kwargs):
5652
anim_func = getattr(animation, animation_function)
5753
anim_func(message, **kwargs)
5854

55+
def set_message_position(self, x, y):
56+
"""Set the position of the message on the display"""
57+
self._position = (x, y)
58+
5959
def _draw(
6060
self,
6161
image,

0 commit comments

Comments
 (0)