Skip to content

Commit 401d1a3

Browse files
committed
display_message: allow setting a smaller scale
used in the qr code demo since qr codes are usually longer than scale=3 can show
1 parent d42e22e commit 401d1a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_pycamera.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,8 +343,8 @@ def deinit_display(self):
343343
self._display_bus = None
344344
self.display = None
345345

346-
def display_message(self, message, color=0xFF0000):
347-
text_area = label.Label(terminalio.FONT, text=message, color=color, scale=3)
346+
def display_message(self, message, color=0xFF0000, scale=3):
347+
text_area = label.Label(terminalio.FONT, text=message, color=color, scale=scale)
348348
text_area.anchor_point = (0.5, 0.5)
349349
text_area.anchored_position = (self.display.width / 2, self.display.height / 2)
350350

0 commit comments

Comments
 (0)