| title | Simulator |
|---|---|
| nav_order | 15 |
CrossInk can run in the CrossPoint simulator, which renders the e-ink display in an SDL2 window. Use it for quick sanity checks without flashing firmware every time.
The simulator is currently configured for macOS on Apple Silicon.
The platformio.ini [env:simulator] section contains hardcoded -arch arm64 and Homebrew paths under /opt/homebrew.
- Intel Mac users need to remove
-arch arm64and change Homebrew paths to/usr/local. - Linux requires similar path changes plus a replacement for
lib/simulator_mock/src/MD5Builder.h, which uses the macOS-onlyCommonCryptoAPI. - Native Windows is not supported. Use WSL and follow the Linux adjustments.
# macOS
brew install sdl2
# Linux (Debian/Ubuntu)
sudo apt install libsdl2-devPlace EPUB books in ./fs_/books/ relative to the project root. That maps to the SD-card /books/ path on device.
pio run -e simulator
.pio/build/simulator/program| Key | Action |
|---|---|
| Up / Down | Page back / forward (side buttons) |
| Left / Right | Left / right front buttons |
| Return | Confirm / Select |
| Escape | Back |
| P | Power |
On first open of an EPUB, an Indexing... popup appears while the section cache is built in .crosspoint/.
If rendering looks stale after a code change, delete ./fs_/.crosspoint/ to clear simulator caches.