Skip to content

Commit 2e8d5a4

Browse files
authored
Merge pull request #632 from jedgarpark/pyportal-thingiverse-tweaks
removed SD card path, tweaked text positions
2 parents 4cbe976 + b35524a commit 2e8d5a4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

PyPortal_Thingiverse/thingiverse.py

Lines changed: 3 additions & 3 deletions
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)