Skip to content

Commit 4846d7f

Browse files
committed
Update color.
1 parent c1d70e8 commit 4846d7f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_simple_text_display.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class SimpleTextDisplay:
6161
def __init__( # pylint: disable=too-many-arguments
6262
self,
6363
title=None,
64-
title_color=0xFFFFFF,
64+
title_color=(255, 255, 255),
6565
title_scale=1,
6666
title_length=80,
6767
text_scale=1,
@@ -191,7 +191,7 @@ def __getitem__(self, item):
191191
)
192192
return self._lines[item]
193193

194-
def add_text_line(self, color=0xFFFFFF):
194+
def add_text_line(self, color=(255, 255, 255)):
195195
"""Adds a line on the display of the specified color and returns the label object."""
196196
text_label = self._label.Label(self._font, text="", color=color)
197197
text_label.x = 0

0 commit comments

Comments
 (0)