Skip to content

Commit f1b51ff

Browse files
committed
fix some copy pasta and shush pylint
1 parent d46c585 commit f1b51ff

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

adafruit_pyportal.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -784,12 +784,13 @@ def fetch(self, refresh_url=None):
784784
return values[0]
785785
return values
786786

787-
def show_QR(self, qr_data, qr_size=1, x=0, y=0):
787+
def show_QR(self, qr_data, qr_size=1, x=0, y=0): # pylint: disable=invalid-name
788788
"""Display a QR code on the TFT
789789
790790
:param qr_data: The data for the QR code.
791791
:param int qr_size: The scale of the QR code.
792-
:param position: The (x, y) tuple position of the QR code on the display.
792+
:param x: The x position of upper left corner of the QR code on the display.
793+
:param y: The y position of upper left corner of the QR code on the display.
793794
794795
"""
795796
import adafruit_miniqr
@@ -806,6 +807,7 @@ def show_QR(self, qr_data, qr_size=1, x=0, y=0):
806807
# bitmap the size of the matrix, monochrome (2 colors)
807808
qr_bitmap = displayio.Bitmap(qrcode.matrix.width, qrcode.matrix.height, 2)
808809

810+
# pylint: disable=invalid-name
809811
# transcribe QR code into bitmap
810812
for xx in range(qrcode.matrix.width):
811813
for yy in range(qrcode.matrix.height):

0 commit comments

Comments
 (0)