|
56 | 56 |
|
57 | 57 | try:
|
58 | 58 | from typing import Union, Tuple, Optional, Generator
|
59 |
| - from adafruit_bitmap_font.bdf import BDF |
60 |
| - from adafruit_bitmap_font.pcf import PCF |
| 59 | + from adafruit_bitmap_font.bdf import BDF # pylint: disable=ungrouped-imports |
| 60 | + from adafruit_bitmap_font.pcf import PCF # pylint: disable=ungrouped-imports |
61 | 61 | from fontio import BuiltinFont
|
62 | 62 | from keypad import Keys, ShiftRegisterKeys
|
63 | 63 | from neopixel import NeoPixel
|
@@ -193,13 +193,15 @@ def badge_background(
|
193 | 193 | """Create a customisable badge background made up of a background color with a rectangle
|
194 | 194 | color block over it. Defaults are for ``show_badge``.
|
195 | 195 |
|
196 |
| - :param tuple background_color: The color to fill the entire screen as a background, as RGB values. |
197 |
| - :param tuple rectangle_color: The color of a rectangle that displays over the background, as RGB values. |
| 196 | + :param tuple background_color: The color to fill the entire screen as a background, as |
| 197 | + RGB values. |
| 198 | + :param tuple rectangle_color: The color of a rectangle that displays over the background, |
| 199 | + as RGB values. |
198 | 200 | :param float rectangle_drop: The distance from the top of the display to begin displaying
|
199 | 201 | the rectangle. Float represents a percentage of the display,
|
200 | 202 | e.g. 0.4 = 40% of the display. Defaults to ``0.4``.
|
201 |
| - :param float rectangle_height: The height of the rectangle. Float represents a percentage of |
202 |
| - the display, e.g. 0.5 = 50% of the display. Defaults to |
| 203 | + :param float rectangle_height: The height of the rectangle. Float represents a percentage |
| 204 | + of the display, e.g. 0.5 = 50% of the display. Defaults to |
203 | 205 | ``0.5``.
|
204 | 206 |
|
205 | 207 | .. code-block:: python
|
@@ -282,8 +284,8 @@ def badge_line(
|
282 | 284 | :param tuple color: The color of the line of text. Defaults to ``(0, 0, 0)``.
|
283 | 285 | :param int scale: The scale of the text. Must be an integer 1 or higher. Defaults to ``1``.
|
284 | 286 | :param font: The font used for displaying the text. Defaults to ``terminalio.FONT``.
|
285 |
| - :param bool left_justify: Left-justify the line of text. Defaults to ``False`` which centers the |
286 |
| - font on the display. |
| 287 | + :param bool left_justify: Left-justify the line of text. Defaults to ``False`` which centers |
| 288 | + the font on the display. |
287 | 289 | :param int padding_above: Add padding above the displayed line of text. A ``padding_above``
|
288 | 290 | of ``1`` is equivalent to the height of one line of text, ``2``
|
289 | 291 | is equivalent to the height of two lines of text, etc. Defaults
|
@@ -485,7 +487,8 @@ def show_business_card(
|
485 | 487 | :param int name_scale: The scale of ``name_string``. Defaults to 1.
|
486 | 488 | :param name_font: The font for the name string. Defaults to ``terminalio.FONT``.
|
487 | 489 | :type name_font: ~BuiltinFont|~BDF|~PCF
|
488 |
| - :param int font_background_color: The color of the font background, default is None (transparent) |
| 490 | + :param int font_background_color: The color of the font background, default is None |
| 491 | + (transparent) |
489 | 492 | :param int font_color: The font color, default is white
|
490 | 493 | :param str email_string_one: A string to display along the bottom of the display, e.g.
|
491 | 494 |
|
|
0 commit comments