Skip to content

Commit 68a9813

Browse files
committed
Reformatted per pre-commit
1 parent c1ba2f8 commit 68a9813

File tree

4 files changed

+18
-18
lines changed

4 files changed

+18
-18
lines changed

adafruit_ht16k33/bargraph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def __setitem__(self, key: int, value: bool) -> None:
4747

4848
def fill(self, color: bool) -> None:
4949
"""Fill the whole display with the given color.
50-
50+
5151
:param bool color: Whether to fill the display
5252
"""
5353

adafruit_ht16k33/ht16k33.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,10 @@ def show(self) -> None:
114114

115115
def fill(self, color: bool) -> None:
116116
"""Fill the whole display with the given color.
117-
117+
118118
:param bool color: Whether to fill the display
119119
"""
120-
120+
121121
fill = 0xFF if color else 0x00
122122
for i in range(16):
123123
self._buffer[i + 1] = fill

adafruit_ht16k33/matrix.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Matrix8x8(HT16K33):
2828

2929
def pixel(self, x: int, y: int, color: Optional[bool] = None) -> Optional[bool]:
3030
"""Get or set the color of a given pixel.
31-
31+
3232
:param int x: The x coordinate of the pixel
3333
:param int y: The y coordinate of the pixel
3434
:param bool color: (Optional) The state to set the pixel
@@ -130,7 +130,7 @@ def shift_down(self, rotate: bool = False) -> None:
130130
def image(self, img: Image) -> None:
131131
"""Set buffer to value of Python Imaging Library image. The image should
132132
be in 1 bit mode and a size equal to the display size.
133-
133+
134134
:param Image img: The image to show
135135
"""
136136

@@ -171,7 +171,7 @@ class Matrix16x8(Matrix8x8):
171171

172172
def pixel(self, x: int, y: int, color: Optional[bool] = None) -> Optional[bool]:
173173
"""Get or set the color of a given pixel.
174-
174+
175175
:param int x: The x coordinate of the pixel
176176
:param int y: The y coordinate of the pixel
177177
:param bool color: (Optional) The state to set the pixel
@@ -194,7 +194,7 @@ class MatrixBackpack16x8(Matrix16x8):
194194

195195
def pixel(self, x: int, y: int, color: Optional[bool] = None) -> Optional[bool]:
196196
"""Get or set the color of a given pixel.
197-
197+
198198
:param int x: The x coordinate of the pixel
199199
:param int y: The y coordinate of the pixel
200200
:param bool color: (Optional) The state to set the pixel
@@ -219,7 +219,7 @@ class Matrix8x8x2(Matrix8x8):
219219

220220
def pixel(self, x: int, y: int, color: Optional[bool] = None) -> Optional[bool]:
221221
"""Get or set the color of a given pixel.
222-
222+
223223
:param int x: The x coordinate of the pixel
224224
:param int y: The y coordinate of the pixel
225225
:param bool color: (Optional) The state to set the pixel
@@ -239,7 +239,7 @@ def pixel(self, x: int, y: int, color: Optional[bool] = None) -> Optional[bool]:
239239

240240
def fill(self, color: bool) -> None:
241241
"""Fill the whole display with the given color.
242-
242+
243243
:param bool color: Whether to fill the display
244244
"""
245245

@@ -254,10 +254,10 @@ def fill(self, color: bool) -> None:
254254
def image(self, img: Image) -> None:
255255
"""Set buffer to value of Python Imaging Library image. The image should
256256
be a size equal to the display size.
257-
257+
258258
:param Image img: The image to show
259259
"""
260-
260+
261261
imwidth, imheight = img.size
262262
if imwidth != self.columns or imheight != self.rows:
263263
raise ValueError(

adafruit_ht16k33/segments.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ class Seg14x4(HT16K33):
146146

147147
def print(self, value: Union[str, int, float], decimal: int = 0) -> None:
148148
"""Print the value to the display.
149-
149+
150150
:param value: The value to print
151151
:type value: str, int, or float
152152
:param int decimal: The number of decimal places for a floating point
@@ -165,7 +165,7 @@ def print(self, value: Union[str, int, float], decimal: int = 0) -> None:
165165

166166
def print_hex(self, value: int) -> None:
167167
"""Print the value as a hexidecimal string to the display.
168-
168+
169169
:param int value: The number to print
170170
"""
171171

@@ -181,7 +181,7 @@ def __setitem__(self, key: str, value: Union[str, int, float]) -> None:
181181

182182
def scroll(self, count: int = 1) -> None:
183183
"""Scroll the display by specified number of places.
184-
184+
185185
:param int count: The number of places to scroll
186186
"""
187187

@@ -326,7 +326,7 @@ def _scroll_marquee(self, text: str, delay: float) -> None:
326326
class Seg7x4(Seg14x4):
327327
"""Numeric 7-segment display. It has the same methods as the alphanumeric display, but only
328328
supports displaying a limited set of characters.
329-
329+
330330
:param I2C i2c: The I2C bus object
331331
:param int address: The I2C address for the display
332332
:param bool auto_write: True if the display should immediately change when set. If False,
@@ -342,7 +342,7 @@ def __init__(self, i2c: I2C, address: int = 0x70, auto_write: bool = True) -> No
342342

343343
def scroll(self, count: int = 1) -> None:
344344
"""Scroll the display by specified number of places.
345-
345+
346346
:param int count: The number of places to scroll
347347
"""
348348

@@ -403,7 +403,7 @@ def _put(self, char: str, index: int = 0) -> None:
403403
def set_digit_raw(self, index: int, bitmask: int) -> None:
404404
"""Set digit at position to raw bitmask value. Position should be a value
405405
of 0 to 3 with 0 being the left most digit on the display.
406-
406+
407407
:param int index: The index of the display to set
408408
:param bitmask: A 2 byte number corresponding to the segments to set
409409
:type bitmask: int, or a list/tuple of bool
@@ -431,7 +431,7 @@ def colon(self, turn_on: bool) -> None:
431431
class BigSeg7x4(Seg7x4):
432432
"""Numeric 7-segment display. It has the same methods as the alphanumeric display, but only
433433
supports displaying a limited set of characters.
434-
434+
435435
:param I2C i2c: The I2C bus object
436436
:param int address: The I2C address for the display
437437
:param bool auto_write: True if the display should immediately change when set. If False,

0 commit comments

Comments
 (0)