Skip to content

Commit 8ddf527

Browse files
authored
Merge pull request #102 from makermelissa/master
Add missing param docstrings, remove unused import
2 parents cc44475 + 86c4124 commit 8ddf527

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

adafruit_pyportal/__init__.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,6 @@
3434
from adafruit_pyportal.graphics import Graphics
3535
from adafruit_pyportal.peripherals import Peripherals
3636

37-
if hasattr(board, "TOUCH_XL"):
38-
import adafruit_touchscreen
39-
elif hasattr(board, "BUTTON_CLOCK"):
40-
from adafruit_cursorcontrol.cursorcontrol import Cursor
41-
from adafruit_cursorcontrol.cursorcontrol_cursormanager import CursorManager
42-
4337
__version__ = "0.0.0-auto.0"
4438
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_PyPortal.git"
4539

adafruit_pyportal/network.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,18 @@ class Network(NetworkBase):
5656
:param bool extract_values: If true, single-length fetched values are automatically extracted
5757
from lists and tuples. Defaults to ``True``.
5858
:param debug: Turn on debug print outs. Defaults to False.
59+
:param convert_image: Determine whether or not to use the AdafruitIO image converter service.
60+
Set as False if your image is already resized. Defaults to True.
61+
:param image_url_path: The HTTP traversal path for a background image to display.
62+
Defaults to ``None``.
63+
:param image_json_path: The JSON traversal path for a background image to display. Defaults to
64+
``None``.
65+
:param image_resize: What size to resize the image we got from the json_path, make this a tuple
66+
of the width and height you want. Defaults to ``None``.
67+
:param image_position: The position of the image on the display as an (x, y) tuple. Defaults to
68+
``None``.
69+
:param image_dim_json_path: The JSON traversal path for the original dimensions of image tuple.
70+
Used with fetch(). Defaults to ``None``.
5971
6072
"""
6173

0 commit comments

Comments
 (0)