Skip to content

Commit 5f7eb2a

Browse files
committed
linted
1 parent 7a033d1 commit 5f7eb2a

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

adafruit_pyportal.py

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050
import busio
5151
import microcontroller
5252
from digitalio import DigitalInOut
53-
import adafruit_touchscreen
5453
import pulseio
54+
import adafruit_touchscreen
5555
import neopixel
5656

5757
from adafruit_esp32spi import adafruit_esp32spi
@@ -112,16 +112,22 @@ class PyPortal:
112112
Can be a list of tuples for when there's a list of json_paths, for example
113113
:param text_color: The color of the text, in 0xRRGGBB format. Can be a list of colors for
114114
when there's multiple texts. Defaults to ``None``.
115-
:param text_wrap: Whether or not to wrap text (for long text data chunks). Defaults to ``False``, no wrapping.
115+
:param text_wrap: Whether or not to wrap text (for long text data chunks).
116+
Defaults to ``False``, no wrapping.
116117
:param text_maxlen: The max length of the text for text wrapping. Defaults to 0.
117-
:param image_json_path: The JSON traversal path for a background image to display. Defaults to ``None``.
118+
:param image_json_path: The JSON traversal path for a background image to display.
119+
Defaults to ``None``.
118120
:param image_resize: What size to resize the image we got from the json_path,
119121
make this a tuple of the width and height you want. Defaults to ``None``.
120-
:param image_position: The position of the image on the display as an (x, y) tuple. Defaults to ``None``.
121-
:param success_callback: A function we'll call if you like, when we fetch data successfully. Defaults to ``None``.
122-
:param str caption_text: The text of your caption, a fixed text not changed by the data we get. Defaults to ``None``.
122+
:param image_position: The position of the image on the display as an (x, y) tuple.
123+
Defaults to ``None``.
124+
:param success_callback: A function we'll call if you like, when we fetch data successfully.
125+
Defaults to ``None``.
126+
:param str caption_text: The text of your caption, a fixed text not changed by the data we get.
127+
Defaults to ``None``.
123128
:param str caption_font: The path to the font file for your caption. Defaults to ``None``.
124-
:param caption_position: The position of your caption on the display as an (x, y) tuple. Defaults to ``None``.
129+
:param caption_position: The position of your caption on the display as an (x, y) tuple.
130+
Defaults to ``None``.
125131
:param caption_color: The color of your caption. Must be a hex value, e.g. ``0x808000``.
126132
:param debug: Turn on debug print outs. Defaults to False.
127133
@@ -333,7 +339,8 @@ def set_backlight(self, val):
333339
def preload_font(self, glyphs=None):
334340
"""Preload font.
335341
336-
:param glyphs: The font glyphs to load. Defaults to ``None``, uses alphanumeric glyphs if None.
342+
:param glyphs: The font glyphs to load. Defaults to ``None``,
343+
uses alphanumeric glyphs if None.
337344
338345
"""
339346
if not glyphs:

0 commit comments

Comments
 (0)