Add ESP32 Wi-Fi thin-client port for InkyPi#1
Draft
Copilot wants to merge 2 commits into
Draft
Conversation
Co-authored-by: BaloMueller <793558+BaloMueller@users.noreply.github.com> Agent-Logs-Url: https://github.com/BaloMueller/UDash/sessions/7c1aebd9-6c99-45af-ac08-346fdc7b6540
Copilot
AI
changed the title
[WIP] Evaluate code for compatibility with ESP Wi-Fi
Add ESP32 Wi-Fi thin-client port for InkyPi
Mar 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
InkyPi's full Python stack (Flask, Pillow, plugin system) cannot run on an ESP32's ~520 KB RAM. The practical solution is a thin-client model: the Pi handles all rendering/scheduling, and the ESP32 polls for the current image and drives the e-paper display over SPI.
ESP32 MicroPython port (
esp32/)boot.py– connects to Wi-Fi (STA); falls back to AP mode (InkyPi-ESP32) for first-time configwifi_manager.py– STA/AP helpersconfig_manager.py– persistsconfig.jsonon flash filesystemepaper_display.py– SPI driver for SSD1680/UC8176 BW controllers; supports Waveshareepd2in13v2(250×122),epd2in9v2(296×128),epd4in2(400×300)http_server.py– single-threaded HTTP server: HTML config UI +POST /displayfor direct image pushmain.py– polling loop (fetches/api/esp32/image_dataat configured interval) + starts HTTP server threadexample_config.json/README.md– wiring guide, flash instructions, config referencePi-side endpoint (
src/blueprints/main.py)New
GET /api/esp32/image_dataendpoint: loads the current display image, resizes and dithers to 1-bit monochrome at the target display dimensions, and streams raw packed bytes the ESP32 can push directly to the controller.Accepts
display_type(derives dimensions automatically) or explicitwidth/heightfor unlisted displays.Tests (
tests/test_esp32_endpoint.py)8 tests covering: 404 with no image, 400 with missing params, correct byte length and header values for all three display types, explicit dimensions, pixel correctness on a white image, and
Cache-Control: no-cache.Original prompt
📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.