Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions adafruit_magtag/graphics.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ def set_background(self, file_or_color, position=None):
:param tuple position: Optional x and y coordinates to place the background at.

"""
print("Set background to", file_or_color)
while self._bg_group:
self._bg_group.pop()

Expand All @@ -114,7 +113,6 @@ def set_background(self, file_or_color, position=None):
self._bg_file.close()
if isinstance(file_or_color, str): # its a filenme:
self._bg_file = open(file_or_color, "rb")
print("Displaying image file")
background = displayio.OnDiskBitmap(self._bg_file)
self._bg_sprite = displayio.TileGrid(
background,
Expand All @@ -124,7 +122,6 @@ def set_background(self, file_or_color, position=None):
)
elif isinstance(file_or_color, int):
# Make a background color fill
print("Displaying color")
color_bitmap = displayio.Bitmap(self.display.width, self.display.height, 1)
color_palette = displayio.Palette(1)
color_palette[0] = file_or_color
Expand Down
1 change: 0 additions & 1 deletion adafruit_magtag/magtag.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,6 @@ def set_text(self, val, index=0, auto_refresh=True):
# too long! shorten it
string = string[: self._text_maxlen[index] - 3]
string += "..."
print("text index", self._text[index])
index_in_splash = None

if self._text[index] is not None:
Expand Down
1 change: 0 additions & 1 deletion adafruit_magtag/wifi_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ def connect(self, ssid, password):
:param password: The WiFi password

"""
print(ssid, password)
wifi.radio.connect(ssid, password)
pool = socketpool.SocketPool(wifi.radio)
self.requests = adafruit_requests.Session(pool, ssl.create_default_context())
Expand Down