Skip to content

Commit b35524a

Browse files
committed
removed SD card path, tweaked text positions
1 parent 4cbe976 commit b35524a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

PyPortal_Thingiverse/thingiverse.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
status_neopixel=board.NEOPIXEL,
2626
default_bg=cwd+"/thingiverse_background.bmp",
2727
text_font=cwd+"/fonts/Arial-12.bdf",
28-
text_position=((5, 5), (5, 200)),
28+
text_position=((5, 10), (5, 230)),
2929
text_color=(0x00FF00, 0x00FF00),
3030
text_transform=(None, None))
3131
pyportal.preload_font()
@@ -38,9 +38,9 @@
3838
pyportal.set_background(None)
3939
image_url = response[2].replace('_thumb_medium.', '_display_large.')
4040
pyportal.wget(pyportal.image_converter_url(image_url,320, 240,color_depth=16),
41-
"/sd/cache.bmp",
41+
"/cache.bmp",
4242
chunk_size=512)
43-
pyportal.set_background("/sd/cache.bmp")
43+
pyportal.set_background("/cache.bmp")
4444

4545
except (IndexError, RuntimeError, ValueError) as e:
4646
print("Some error occured, retrying! -", e)

0 commit comments

Comments
 (0)