Skip to content

Commit 5e27e00

Browse files
committed
Still fixing lint issues
1 parent 99679af commit 5e27e00

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

adafruit_imageload/bmp/indexed.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ def load(file, width, height, data_start, colors, color_depth, *, bitmap=None, p
5050
c_bytes = file.read(4)
5151
# Need to swap red & blue bytes (bytes 0 and 2)
5252
palette[value] = bytes(b''.join([c_bytes[2:3],
53-
c_bytes[1:2], c_bytes[0:1], c_bytes[3:1]]))
53+
c_bytes[1:2],
54+
c_bytes[0:1],
55+
c_bytes[3:1]]))
5456

5557
if bitmap:
5658
minimum_color_depth = 1

examples/imageload_colorwheel.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
display = board.DISPLAY
66

77
bitmap, palette = adafruit_imageload.load("images/color_wheel.bmp",
8-
bitmap=displayio.Bitmap, palette=displayio.Palette)
8+
bitmap=displayio.Bitmap,
9+
palette=displayio.Palette)
910

1011
tile_grid = displayio.TileGrid(bitmap, pixel_shader=palette)
1112

0 commit comments

Comments
 (0)