We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5a040f commit f962c3cCopy full SHA for f962c3c
micropython/examples/pico_display/display_png_offset_palette.py
@@ -41,11 +41,11 @@
41
# Open our PNG File from flash. In this example we're using an image of a cartoon pencil.
42
# You can use Thonny to transfer PNG Images to your Pico.
43
png.open_file("pencil_gray.png")
44
-
+
45
# Horizontally/vertically center the three PNG Images.
46
png_w = png.get_width()
47
png_h = png.get_height()
48
49
offset_x = (width - png_w * 2) // 2
50
height_y = (height // 3)
51
offset_y = (height_y - png_h * 2) // 2
0 commit comments