Skip to content

Add Inkplate5V2 XKCD Random Webcomic Strip example#290

Open
stared wants to merge 1 commit intoSolderedElectronics:masterfrom
stared:random-xkcd-strip
Open

Add Inkplate5V2 XKCD Random Webcomic Strip example#290
stared wants to merge 1 commit intoSolderedElectronics:masterfrom
stared:random-xkcd-strip

Conversation

@stared
Copy link

@stared stared commented Feb 22, 2026

2025-06-22 18 15 45

I created it 6 months ago - rediscovered that. And sharing here, so you can use that as well.

Features

  • Adds a new example that displays random XKCD comics on the Inkplate 5 V2
  • On-device PNG scaling with aspect ratio preservation (grayscale 3-bit mode)
  • Button press (GPIO 36) skips to next comic, auto-refresh every 60s
  • Title and alt-text displayed at the bottom of the screen
  • Robust HTTPS handling, chunked downloads, diagnostics logging

Files added

  • examples/Inkplate5V2/Projects/Inkplate5V2_XKCD_Random_Webcomic_Strip/
    • Main sketch (.ino)
    • credentials.template.h - WiFi credential template (actual credentials.h is gitignored)
    • pngle_scaling.h / pngle_scaling.cpp - on-device PNG scaling using pngle library

Dependencies

  • ArduinoJson library (install via Arduino IDE Library Manager)
  • Built-in: WiFi, HTTPClient, pngle (included with Inkplate library)

Display random XKCD comics with on-device PNG scaling on Inkplate 5 V2.
Features: auto-refresh every 60s, button skip (GPIO 36), title and
alt-text display, robust HTTPS downloads, grayscale 3-bit mode.

Requires ArduinoJson library (Arduino IDE Library Manager).
@JosipKuci
Copy link
Member

Hello @stared,
Great project and thank you for contributing! We are currently in the process of a big restructuring regarding the library, so i am keeping this pull request open for now, we will probably have to modify the code a bit to work with the aforementioned changes. Will keep you posted!

@stared
Copy link
Author

stared commented Mar 6, 2026

Hi @JosipKuci, thanks for your kind words!
Sure, take your time.

Anyway, since we are on that topic, from my experience as a user, it would be great if it were not nearly as organized by device. I mean, except for some device-dependent demos, most were for as many as supported, with some possible flags or ifs.

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