Skip to content

Commit 3e49400

Browse files
committed
Reformatted per new black version
1 parent 8c74901 commit 3e49400

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

adafruit_max7219/bcddigits.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def init_display(self) -> None:
4646
(_SHUTDOWN, 0),
4747
(_DISPLAYTEST, 0),
4848
(_SCANLIMIT, 7),
49-
(_DECODEMODE, (2 ** self._ndigits) - 1),
49+
(_DECODEMODE, (2**self._ndigits) - 1),
5050
(_SHUTDOWN, 1),
5151
):
5252
self.write_cmd(cmd, data)

adafruit_max7219/matrices.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def _get_pixel(self, xpos: int, ypos: int) -> int:
176176
"""
177177
x, y = self._pixel_coords_to_framebuf_coords(xpos, ypos)
178178
buffer_value = self._buffer[-1 * y - 1]
179-
return ((buffer_value & 2 ** x) >> x) & 1
179+
return ((buffer_value & 2**x) >> x) & 1
180180

181181
# Adafruit Circuit Python Framebuf Scroll Function
182182
# Authors: Kattni Rembor, Melissa LeBlanc-Williams and Tony DiCola, for Adafruit Industries

0 commit comments

Comments
 (0)