|
50 | 50 | import busio
|
51 | 51 | import microcontroller
|
52 | 52 | from digitalio import DigitalInOut
|
53 |
| -import adafruit_touchscreen |
54 | 53 | import pulseio
|
| 54 | +import adafruit_touchscreen |
55 | 55 | import neopixel
|
56 | 56 |
|
57 | 57 | from adafruit_esp32spi import adafruit_esp32spi
|
@@ -112,16 +112,22 @@ class PyPortal:
|
112 | 112 | Can be a list of tuples for when there's a list of json_paths, for example
|
113 | 113 | :param text_color: The color of the text, in 0xRRGGBB format. Can be a list of colors for
|
114 | 114 | 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. |
116 | 117 | :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``. |
118 | 120 | :param image_resize: What size to resize the image we got from the json_path,
|
119 | 121 | 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``. |
123 | 128 | :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``. |
125 | 131 | :param caption_color: The color of your caption. Must be a hex value, e.g. ``0x808000``.
|
126 | 132 | :param debug: Turn on debug print outs. Defaults to False.
|
127 | 133 |
|
@@ -333,7 +339,8 @@ def set_backlight(self, val):
|
333 | 339 | def preload_font(self, glyphs=None):
|
334 | 340 | """Preload font.
|
335 | 341 |
|
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. |
337 | 344 |
|
338 | 345 | """
|
339 | 346 | if not glyphs:
|
|
0 commit comments