Skip to content

Comments

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).
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.

1 participant