Skip to content

Commit 81a5551

Browse files
committed
changed clear_background to hide_background
1 parent 0fa020c commit 81a5551

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

adafruit_pyportal.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -786,14 +786,14 @@ def fetch(self, refresh_url=None):
786786
return values[0]
787787
return values
788788

789-
def show_QR(self, qr_data, qr_size=1, x=0, y=0, clear_background=False): # pylint: disable=invalid-name
789+
def show_QR(self, qr_data, qr_size=1, x=0, y=0, hide_background=False): # pylint: disable=invalid-name
790790
"""Display a QR code on the TFT
791791
792792
:param qr_data: The data for the QR code.
793793
:param int qr_size: The scale of the QR code.
794794
:param x: The x position of upper left corner of the QR code on the display.
795795
:param y: The y position of upper left corner of the QR code on the display.
796-
:param clear_background: Show the QR code on a black background if True.
796+
:param hide_background: Show the QR code on a black background if True.
797797
798798
"""
799799
import adafruit_miniqr
@@ -832,7 +832,7 @@ def show_QR(self, qr_data, qr_size=1, x=0, y=0, clear_background=False): # pyli
832832
self._qr_group.x = x
833833
self._qr_group.y = y
834834
self._qr_group.append(qr_sprite)
835-
if clear_background:
835+
if hide_background:
836836
board.DISPLAY.show(self._qr_group)
837837
self._qr_only = True
838838
else:

0 commit comments

Comments
 (0)