Skip to content

Commit 409eff3

Browse files
committed
Fixed issue with swap_rams and bits_inverted keyword arguments
1 parent 3fbcbd1 commit 409eff3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_il0373.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ def __init__(self, bus, swap_rams=False, **kwargs):
8383
start_sequence[27] = (height >> 8) & 0xFF
8484
start_sequence[28] = height & 0xFF
8585
if swap_rams:
86-
color_bits_inverted = kwargs.pop("black_bits_inverted", False)
86+
color_bits_inverted = kwargs.pop("color_bits_inverted", False)
8787
write_color_ram_command = 0x10
88-
black_bits_inverted = kwargs.pop("color_bits_inverted", True)
88+
black_bits_inverted = kwargs.pop("black_bits_inverted", True)
8989
write_black_ram_command = 0x13
9090
else:
9191
write_black_ram_command = 0x10

0 commit comments

Comments
 (0)