Site Guide

Find your way around the Engineering Club.

Know what you need? Search for a component, concept or project.

Around the site

Start

Labs

TestingExperimental

Build

Club

LearnExperimental

Go a little deeper

Entry points to larger collections. Use Search for individual records.

Learning paths & reference

Inside PiCrawlerExperimental

Inside Inventory

E-Ink Information Board / Stage 1 of 3

Refresh policy model

Coalesce content changes into a low-rate update request.

Host software model · physical driver still required

Download stage 1 host modelRead code & run steps ↓

What changes now?

Initial isolated observation

Expected model result: The host run verifies two scheduled update requests.

What you need

A computer with VS Code, PlatformIO and a working native C++ toolchain. No display hardware is needed for this model.

Connections / current hardware gate

This stage runs on your computer. Leave display hardware disconnected; the host model does not send data to the physical screen.

Use this complete project

Target: native · Environment: checkpoint1 · Stage branch: DISPLAY_STAGE=1

  1. Open the complete project. Download the stage ZIP, extract it and open the folder containing platformio.ini and src in VS Code. Keep its supporting headers and libraries together.
  2. Build stage 1. Select checkpoint1 in PlatformIO Project Tasks → General → Build, or use a PlatformIO terminal:
    pio run -e checkpoint1
    A successful Build compiles the program; it does not upload it or approve electrical connections.
  3. Run the host model. In Windows PowerShell, from the extracted project folder:
    .\.pio\build\checkpoint1\program.exe

    On Linux/macOS use .pio/build/checkpoint1/program. This needs a working native compiler/toolchain; it is not a microcontroller upload.

Complete source

The viewer starts at src/main.cpp. Use Source file for the board profile, PlatformIO configuration and supporting code. Keep the complete ZIP together.

workspaces/eink-information-board/src/main.cpp

main.cpp
#include <DisplayCore.h>
#include <iostream>
#include <cassert>
int main(){uint32_t lastRefresh=0;bool changed=true,busy=false;unsigned updates=0;
for(uint32_t now=0;now<=180000;now+=1000){
    if(changed&&!busy&&displaylab::elapsed(now,lastRefresh,60000)){++updates;lastRefresh=now;changed=false;}
    if(now==90000)changed=true; // new local content; defer to the next allowed slot
}
assert(updates==2);std::cout<<"coalesced slow-display update requests: "<<updates<<"\n";
#if DISPLAY_STAGE >= 2
std::cout<<"Refresh interval is a policy example, not a verified panel limit or driver.\n";
#endif
}
Source integrity · SHA-256e9f38214a2157823efb28651e44144c0e9dce6d44124f0b6ae6c8675dc0c3ceb

Raw downloads and standalone ZIPs retain the canonical bytes and supporting files. Copy follows the selected Comments setting.

Check the result

The host run verifies two scheduled update requests.

Compare the program's output with the stated model result. It does not establish physical display behavior.

Original verification checklist
  1. Build the exact selected environment; distinguish dependency resolution from source compilation.
  2. Observe the stated output and record actual behavior; expected result is not an observed transcript.
  3. Test the named failure mode before proceeding.

Troubleshooting

Refresh on every loop

Check dirty-state and eligibility logic rather than adding delay inside the display driver.

Stale image mislabeled current

Record source acquisition time and display update time separately. Retained pixels alone cannot reveal system failure.

Repeated updates of identical content

Compare meaningful normalized content, not irrelevant field order or fetch time, before marking the layout dirty.

Technical explanation / original guide

Read the complete original stage guide

Original source/research wording is preserved. The stage's dated build evidence above supersedes earlier blanket compile-status wording; no physical results are implied.

Build it

Coalesce content changes into a low-rate update request.

Open workspaces/eink-information-board in VS Code/PlatformIO. Select checkpoint1 and run pio run -e checkpoint1. This is SOFTWARE_MODEL_AUTHORED. Run .pio/build/checkpoint1/program after building; no hardware or upload is required.

Understand it

The authored scheduler model changes content independently from refresh eligibility. A change is retained until the next permitted request rather than discarded or causing an immediate full refresh. The example uses a sixty-second request policy to test coalescing; it is not a researched minimum interval for the actual panel. The physical port must combine that policy with the vendor BUSY sequence, full-refresh requirements and board power state. Partial refresh is disabled in the plan until this exact four-color panel/driver supports it.

Source review precision: Both native checkpoints execute the same two-request scheduler assertion. Checkpoint2 adds a policy disclaimer only. Offline timestamps, retained-record persistence, missing-data presentation and BUSY fault simulation are design exercises, not implemented model behavior. No native output is a panel refresh.

Expected result and verification

The host run verifies two scheduled update requests.

This is software-only assertion/output evidence; it does not establish physical behavior.

Check the selected source branch and named failure conditions. Record actual build or software output separately from future physical observations.

Likely failures

Refresh on every loop: Check dirty-state and eligibility logic rather than adding delay inside the display driver.

Stale image mislabeled current: Record source acquisition time and display update time separately. Retained pixels alone cannot reveal system failure.

Repeated updates of identical content: Compare meaningful normalized content, not irrelevant field order or fetch time, before marking the layout dirty.

Build evidence, target and remaining verification

Original status: not applicable host model.

No successful build for this stage is recorded in the dated embedded compile ledger.

No compile was attempted in this pass under the user's testing limit. Upload and physical bench observation remain untested.

native@1.2.1 · native C++