Skip to content

Commit

Permalink
Run pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tekktrik committed May 11, 2023
1 parent bc8e727 commit 6e6bdd0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
5 changes: 4 additions & 1 deletion adafruit_gfx/gfx.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
__version__ = "0.0.0+auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_GFX.git"


# pylint: disable=invalid-name
class GFX:
# pylint: disable=too-many-instance-attributes
Expand All @@ -49,6 +50,7 @@ class GFX:
:param font: An optional input to augment the default text method with a new font.
The input should be a properly formatted dict.
"""

# pylint: disable=too-many-arguments
def __init__(
self,
Expand Down Expand Up @@ -303,7 +305,8 @@ def fill_triangle(self, x0, y0, x1, y1, x2, y2, *args, **kwargs):
def round_rect(self, x0, y0, width, height, radius, *args, **kwargs):
"""Rectangle with rounded corners drawing function.
This works like a regular rect though! if radius = 0
Will draw the outline of a rectangle with rounded corners with (x0,y0) at the top left"""
Will draw the outline of a rectangle with rounded corners with (x0,y0) at the top left
"""
# shift to correct for start point location
x0 += radius
y0 += radius
Expand Down
1 change: 1 addition & 0 deletions examples/gfx_ili9341_randlines.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def randrange(min_value, max_value):
# Setup ILI9341 display using TFT FeatherWing pinout for CS & DC pins.
display = ili9341.ILI9341(spi, cs=machine.Pin(0), dc=machine.Pin(15))


# Optionally create faster horizontal and vertical line drawing functions using
# the display's native filled rectangle function (which updates chunks of memory
# instead of pixel by pixel).
Expand Down
2 changes: 0 additions & 2 deletions font_maker.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,6 @@
for key, val in text_dict.items():
# print (i)
try:

# print(text_dict[i])
print((2 + (len(val))))
arr = bytearray(2 + (len(val)))
Expand All @@ -229,7 +228,6 @@
arr[1] = 8

for j in range(len(text_dict[key])):

arr[j + 2] = text_dict[key][j] & 0b01111111

out[str(key)] = arr
Expand Down

0 comments on commit 6e6bdd0

Please sign in to comment.