Skip to content

Commit c510a3c

Browse files
committed
Changed the png used
1 parent 425f132 commit c510a3c

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

micropython/examples/inky_frame/display_png.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,18 @@
1919
graphics.set_pen(0)
2020

2121
# Few lines of text.
22-
graphics.text("Display PNG Image...", 10, 40, 300, 3)
22+
graphics.text("PNG Pencil", 70, 100, WIDTH, 3)
2323

24-
# Open our PNG File from flash. In this example we're using a green check mark.
24+
# Open our PNG File from flash. In this example we're using a cartoon pencil.
2525
# You can use Thonny to transfer PNG Images to your Inky Frame.
2626
try:
27-
png.open_file("success.png")
27+
png.open_file("pencil_256x256.png")
2828

2929
# Decode our PNG file and set the X and Y
30-
png.decode(130, 70)
30+
png.decode(200, 100)
3131

32-
graphics.text("Success!", 10, 70, WIDTH, 3)
3332
except OSError:
34-
graphics.text("Unable to find PNG file! Copy 'success.png' to your Inky Frame using Thonny :)", 10, 70, WIDTH, 3)
33+
graphics.text("Unable to find PNG file! Copy 'pencil_256x256.png' to your Inky Frame using Thonny :)", 10, 70, WIDTH, 3)
3534

3635
# Start the screen update
3736
graphics.update()
5.41 KB
Loading
-1.04 KB
Binary file not shown.

0 commit comments

Comments
 (0)