We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a49295f + 79561c4 commit de3276cCopy full SHA for de3276c
adafruit_display_text/bitmap_label.py
@@ -154,6 +154,10 @@ def _reset_text(
154
for _ in self._local_group:
155
self._local_group.pop(0)
156
157
+ # Free the bitmap and tilegrid since they are removed
158
+ self._bitmap = None
159
+ self._tilegrid = None
160
+
161
else: # The text string is not empty, so create the Bitmap and TileGrid and
162
# append to the self Group
163
@@ -200,9 +204,7 @@ def _reset_text(
200
204
# Place the text into the Bitmap
201
205
self._place_text(
202
206
self._bitmap,
203
- text
- if self._label_direction != "RTL"
- else "".join(reversed(self._text)),
207
+ text if self._label_direction != "RTL" else "".join(reversed(text)),
208
self._font,
209
self._padding_left - x_offset,
210
self._padding_top + y_offset,
0 commit comments