Testing / Displays
Displays
Display labs from first LCD characters to graphics, matrices and connected systems.
Start with LCD Hello World →Check the actual backpack and electrical gate before power.
18 of 18 projects · learning order
- Firmware · hardware review needed
LCD Hello World
Bring a 16×2 character display to life, then replace text without clearing the screen.
- Firmware · hardware review needed
I²C Detective
Create a reusable bus diagnostic that separates addressing failures from application failures.
- Firmware · hardware review needed
LCD Instrument Panel
Turn raw ADC counts into a stable, unit-labeled instrument display.
- Firmware · hardware review needed
LCD Menu System
Use debounced input events and explicit page state instead of delay-heavy menu branches.
- Firmware · hardware review needed
OLED Graphics Basics
Learn pixel geometry and framebuffer transfer on the inventory-established SSD1309 OLED.
- Firmware · hardware review needed
OLED Mini Dashboard
Separate sensor validity, polling rate, history and page layout in a compact instrument.
- Firmware · hardware review needed
MAX7219 Matrix Message Board
Use a four-module monochrome matrix for readable scrolling messages and topology diagnostics.
- Firmware · hardware review needed
MAX7219 Animation Lab
Explore moving pixels, procedural patterns and synchronous cellular automata on a 32×8 grid.
- Firmware · hardware review needed
64×32 RGB Matrix Fundamentals
Establish electrical readiness, color channels, scan behavior and DMA-driven refresh for one panel.
- Firmware · hardware review needed
RGB Matrix Playground
Separate simulation rate, drawing rate and continuous electrical refresh in richer animations.
- Firmware · hardware review needed
RGB Matrix Data Wall
Present a bounded history and data freshness without confusing animation with real measurements.
- Host model · physical driver missing
E-Ink Hello World
Understand the exact four-color panel, memory representation and refresh contract before its driver port.
- Host model · physical driver missing
E-Ink Information Board
Coalesce slow display updates, preserve provenance and plan stale/offline presentation.
- Firmware · hardware review needed
ESP32 Wireless Display Dashboard
Run a local HTTP/JSON display endpoint with validation and stale-data feedback.
- Host model · physical driver missing
Touchscreen Interface
Build release-aware UI semantics for the actual Waveshare touch-board family and define its port contract.
- Firmware · hardware review needed
Multi-Display System
Give a character LCD and OLED different roles on a carefully voltage-managed shared bus.
- Firmware · hardware review needed
Raspberry Pi + Matrix Controller
Use USB serial to separate Linux content generation from an ESP32 refresh engine.
- Firmware · hardware review needed
Final Display Console
Build a modular sensor/network device with page state, persistent settings and visible failures.
Tools: VS Code, PlatformIO, Build and Upload
The editor, project manager, framework and compiler do different jobs. VS Code edits and navigates files. PlatformIO reads a workspace configuration, selects a board/toolchain/framework and resolves dependencies. The compiler translates source into object files, the linker combines definitions into firmware, Upload programs the connected board, and PlatformIO Serial Monitor observes the serial interface. Building does not upload, and uploading does not prove safe wiring or correct screen behavior.
First useful result
Install Microsoft VS Code and the official PlatformIO IDE extension following the PlatformIO installation guide. The extension includes PlatformIO Core; its built-in terminal exposes the CLI without requiring a second competing installation. These package workspaces already contain their configuration, so open them rather than recreating the code through a wizard.
Open the exact workspace folder containing platformio.ini, not only the src folder. Select the named checkpoint environment from the stage guide. Read platform, board, framework and monitor_speed before building. megaatmega2560 is the Mega target, esp32dev is the classic ESP32 reference target, and native builds a software executable on the computer. A similarly shaped C6 board is a separate architecture; the planned C6 port uses the supported ESP-IDF framework route.
Use PlatformIO's Build action or pio run -e checkpoint1 in the workspace terminal. It may first download platform, compiler, framework and library packages. Saving a file or adding #include does not itself install a library. A lib_deps specifier chooses a package and version; the build/package process resolves it. .pio holds disposable build/dependency artifacts and is not curriculum source. If installation fails, record that stage separately from a compiler diagnostic.
For firmware projects only, after the correct environment builds, check the actual board/USB data cable/port. Upload with the corresponding environment, then open PlatformIO Serial Monitor at 115200 baud. Another application holding the port can prevent upload or monitoring. On Windows, USB-driver and COM-port details depend on the exact USB interface chip. Avoid hard-coding a port into a shared workspace. A power-only cable can power an LED while providing no programming connection.
The physical firmware intentionally starts with electrical review false. Read the matching identity, voltage and pin checklist before editing that flag in include/board_profile.h. This is a required preflight marker, not an automatic safety detector. Changing it cannot establish a safe supply or level shift. Source review, upload and actual observations must still be recorded.
Reading the first LCD source
The include lines bring declarations from the framework/library/header into this translation unit. An angle-bracket include identifies a searched library/framework header; a quoted include such as board_profile.h identifies the local contract. The global lcd object preserves driver state between calls. Global ready and lastUpdate persist too; a new local variable inside loop does not.
setup runs once after reset. Serial.begin configures the diagnostic baud. The electrical-review guard returns before peripheral initialization. Wire.begin starts the target's bus. lcd.begin(16,2) initializes a compatible display geometry and returns a status; a nonzero result prints the failure and leaves ready false. A physical screen observation is still required even after a status reports success.
loop runs repeatedly. Its early ready check avoids drawing through failed initialization. millis supplies an unsigned clock; elapsed compares unsigned subtraction to an interval, allowing rollover-aware short-duration scheduling. Returning from loop yields to the framework and another visit; it is not process termination. Updating lastUpdate means the next change is scheduled from the current visit, not an exact catch-up simulation.
The row function accepts a zero-based row and a C-string pointer. It copies no more than sixteen visible characters into a seventeen-element local char array. The extra element stores the terminating null byte; the remaining cells are padded with spaces. The helper then positions the cursor and prints a complete row. Padding makes a shorter new message remove an older tail. It does not make an arbitrary long message fit the display.
DISPLAY_STAGE is defined by the environment's build flags. Preprocessor conditions select the checkpoint's behavior at build time; they are not runtime menu choices. The first checkpoint writes static text, the second formats a clock value into a bounded buffer, and the third selects one of two row messages. The source files remain the authority: this guide describes them without duplicating complete programs.
The first program deliberately has no sensor, network or elaborate class hierarchy. Later ui.h/ui.cpp split declarations from implementation when input becomes a subsystem. A header tells another translation unit what a function/type looks like; the matching .cpp supplies definitions that must be linked. Moving code into files is useful when a contract can be tested independently, not simply because more files look professional.
Diagnostic before integration
I²C scanning finds responders; ADC/raw sensor observation proves acquisition; pixel/topology fixtures prove mapping; input logs prove events; network status proves connectivity separately from data freshness. Use these assets by reference instead of copying their full code into each guide. A display showing zero is not evidence that a sensor or network request worked. A remembered e-paper image is not evidence of current power/communication.
Build/Upload/Observe/Explain are four different checkpoints. Record the configuration, actual output and failure test at each. No project here was bench-tested during authoring. The direct-GCC software models exercise portable logic only, and no mock hardware implementation is used to claim a successful device build.
Native models and corrected downloads
The e-paper Hello World, e-paper Information Board and Touchscreen workspaces use native@1.2.1 for checkpoints1/2. Build with the selected environment and run .pio/build/checkpoint1/program or .pio/build/checkpoint2/program; do not upload those executables. Physical checkpoint3 has no authored target and refuses a finished-firmware download. Direct-GCC host checks are an independent reproduction route and are not PlatformIO successes.
Current compile evidence is validation/repair-compile-results.json; original ledgers/history remain unchanged. Use python3 validation/compile.py --timeout 180 from the package root when package servers are reachable. --probe --timeout 35 deliberately bounds one attempt per platform. Stage downloads select only their environment; project downloads select all authored environments. Shared DisplayCore is copied into local lib/ and no external Work path is required.
E-paper and touch projects begin with host models; their physical drivers remain unfinished. Build evidence is stage-specific. No physical bench verification is recorded.