E-Ink Information Board / Stage 2 of 3
Offline presentation contract
Inspect the scheduler policy disclaimer and design offline presentation separately from this executable scheduling fixture.
Host software model · physical driver still required
Download stage 2 host modelRead code & run steps ↓
What changes now?
Distinguish current data, retained last result and missing data.
Expected model result: The executable still verifies two update requests, then prints that its interval is a policy example. It does not implement timestamps, offline storage or stale-layout rendering.
Builds on stage 1: Refresh policy model.
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: checkpoint2 · Stage branch: DISPLAY_STAGE=2
- Open the complete project. Download the stage ZIP, extract it and open the folder containing
platformio.iniandsrcin VS Code. Keep its supporting headers and libraries together. - Build stage 2. Select
checkpoint2in PlatformIO Project Tasks → General → Build, or use a PlatformIO terminal:
A successful Build compiles the program; it does not upload it or approve electrical connections.pio run -e checkpoint2 - Run the host model. In Windows PowerShell, from the extracted project folder:
.\.pio\build\checkpoint2\program.exeOn Linux/macOS use
.pio/build/checkpoint2/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
#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-256
e9f38214a2157823efb28651e44144c0e9dce6d44124f0b6ae6c8675dc0c3cebRaw downloads and standalone ZIPs retain the canonical bytes and supporting files. Copy follows the selected Comments setting.
Check the result
The executable still verifies two update requests, then prints that its interval is a policy example. It does not implement timestamps, offline storage or stale-layout rendering.
Compare the program's output with the stated model result. It does not establish physical display behavior.
Original verification checklist
- Build the exact selected environment; distinguish dependency resolution from source compilation.
- Observe the stated output and record actual behavior; expected result is not an observed transcript.
- 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
Inspect the scheduler policy disclaimer and design offline presentation separately from this executable scheduling fixture.
Open workspaces/eink-information-board in VS Code/PlatformIO. Select checkpoint2 and run pio run -e checkpoint2. This is SOFTWARE_MODEL_AUTHORED. Run .pio/build/checkpoint2/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 executable still verifies two update requests, then prints that its interval is a policy example. It does not implement timestamps, offline storage or stale-layout rendering.
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++