Skip to content

Commit ca46fce

Browse files
committed
lint
1 parent f31fcc2 commit ca46fce

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

examples/miniqr_displaytest.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import board
2-
import pulseio
32
import displayio
43
import adafruit_miniqr
54

@@ -32,9 +31,9 @@ def bitmap_QR(matrix):
3231
# we'll scale the QR code as big as the display can handle
3332
scale = min(board.DISPLAY.width//qr_bitmap.width, board.DISPLAY.height//qr_bitmap.height)
3433
# then center it!
35-
x = int (((board.DISPLAY.width/scale) - qr_bitmap.width) / 2)
36-
y = int (((board.DISPLAY.height/scale) - qr_bitmap.height) / 2)
37-
qr_img = displayio.TileGrid(qr_bitmap, pixel_shader=palette, x=x, y=y)
34+
pos_x = int (((board.DISPLAY.width/scale) - qr_bitmap.width) / 2)
35+
pos_y = int (((board.DISPLAY.height/scale) - qr_bitmap.height) / 2)
36+
qr_img = displayio.TileGrid(qr_bitmap, pixel_shader=palette, x=pos_x, y=pos_y)
3837

3938
splash = displayio.Group(scale=scale)
4039
splash.append(qr_img)

0 commit comments

Comments
 (0)