Skip to content

feat(inkplate13spectra): match the examples to the Inkplate 13 manual - #57

Merged
JosipKuci merged 1 commit into
masterfrom
feat/inkplate13-manual-examples-v2
Nov 17, 2026
Merged

JosipKuci merged 1 commit into
masterfrom
feat/inkplate13-manual-examples-v2

Conversation

@GreenyHub

Copy link
Copy Markdown
Contributor

The Inkplate 13 manual teaches sixteen tasks, and its MicroPython solutions
are the scripts a reader is told to run. The examples under inkplate13spectra
were written separately and differed in structure, in text size and in what
they draw, so following a task meant opening a different script.

Take the manual's scripts as they are:

  • New: coordinate_grid.py, scrolling_text.py, bouncing_ball.py,
    timer_deep_sleep.py, wakeup_button.py, microsd_read_write.py, weather.py,
    ntp_clock.py and symbols.py, the battery picture that battery_read.py imports.
  • Updated: hello_world.py, drawing_graphics.py, custom_font.py,
    battery_read.py, rtc.py, display_image_sd.py and display_image_web.py.
  • text_colors.py is renamed full_screen_colors.py and now draws the six colours
    as full-screen bars, as T3 does.
  • partial_update.py stays as it was, because the Advanced manual keeps it.

displayimagesd also ships cosmic-cliffs.jpg (1600 x 1200, public domain), the
picture the manual's T13 copies to the card.

The web picture example needs a second fix. draw_jpg_from_web in the palette
mixin, used by the Inkplate 13SPECTRA and 7SPECTRA, read the whole response
with response.content. On a 1600 x 1200 JPG over HTTPS that single read waits
for the full file and fails with ETIMEDOUT, so the picture never reached the
decoder. Read the body in 4 KB chunks instead, the same change the grayscale
mixin got for the Inkplate 10. Checked on an Inkplate 13SPECTRA: the picture
from the example downloads in 4.8 s and draws.

The Inkplate 13 manual teaches sixteen tasks, and its MicroPython solutions
are the scripts a reader is told to run. The examples under inkplate13spectra
were written separately and differed in structure, in text size and in what
they draw, so following a task meant opening a different script.

Take the manual's scripts as they are:
- New: coordinate_grid.py, scrolling_text.py, bouncing_ball.py,
  timer_deep_sleep.py, wakeup_button.py, microsd_read_write.py, weather.py,
  ntp_clock.py and symbols.py, the battery picture that battery_read.py imports.
- Updated: hello_world.py, drawing_graphics.py, custom_font.py,
  battery_read.py, rtc.py, display_image_sd.py and display_image_web.py.
- text_colors.py is renamed full_screen_colors.py and now draws the six colours
  as full-screen bars, as T3 does.
- partial_update.py stays as it was, because the Advanced manual keeps it.

displayimagesd also ships cosmic-cliffs.jpg (1600 x 1200, public domain), the
picture the manual's T13 copies to the card.

The web picture example needs a second fix. draw_jpg_from_web in the palette
mixin, used by the Inkplate 13SPECTRA and 7SPECTRA, read the whole response
with response.content. On a 1600 x 1200 JPG over HTTPS that single read waits
for the full file and fails with ETIMEDOUT, so the picture never reached the
decoder. Read the body in 4 KB chunks instead, the same change the grayscale
mixin got for the Inkplate 10. Checked on an Inkplate 13SPECTRA: the picture
from the example downloads in 4.8 s and draws.
@JosipKuci
JosipKuci merged commit f372bb9 into master Nov 17, 2026
4 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants