Skip to content

Commit

Permalink
Reformatted per new black version
Browse files Browse the repository at this point in the history
  • Loading branch information
tekktrik committed Mar 29, 2022
1 parent 8c74901 commit 3e49400
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion adafruit_max7219/bcddigits.py
Expand Up @@ -46,7 +46,7 @@ def init_display(self) -> None:
(_SHUTDOWN, 0),
(_DISPLAYTEST, 0),
(_SCANLIMIT, 7),
(_DECODEMODE, (2 ** self._ndigits) - 1),
(_DECODEMODE, (2**self._ndigits) - 1),
(_SHUTDOWN, 1),
):
self.write_cmd(cmd, data)
Expand Down
2 changes: 1 addition & 1 deletion adafruit_max7219/matrices.py
Expand Up @@ -176,7 +176,7 @@ def _get_pixel(self, xpos: int, ypos: int) -> int:
"""
x, y = self._pixel_coords_to_framebuf_coords(xpos, ypos)
buffer_value = self._buffer[-1 * y - 1]
return ((buffer_value & 2 ** x) >> x) & 1
return ((buffer_value & 2**x) >> x) & 1

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

0 comments on commit 3e49400

Please sign in to comment.