| title | Getting Started |
|---|---|
| parent | Development |
| nav_order | 1 |
This guide helps you build and run CrossInk locally.
- PlatformIO Core (
pio) or VS Code + PlatformIO IDE - Python 3.8+
clang-format21+ in yourPATH(CI uses clang-format 21)- USB-C cable
- Xteink X4 or X3 device for hardware testing
If ./bin/clang-format-fix fails with either of these errors, install clang-format 21:
clang-format: No such file or directory.clang-format: error: unknown key 'AlignFunctionDeclarations'
Examples:
# Debian/Ubuntu (try this first)
sudo apt-get update && sudo apt-get install -y clang-format-21
# If the package is unavailable, add LLVM apt repo and retry
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 21
sudo apt-get update
sudo apt-get install -y clang-format-21
# macOS (Homebrew)
brew install clang-formatThen verify:
clang-format-21 --versionThe reported major version must be 21 or newer.
git clone --recursive https://github.com/uxjulia/CrossInk
cd CrossInkIf you already cloned without submodules:
git submodule update --init --recursivepio run -e simulator -j1
pio run -e default -j1Always select one environment and use -j1. EEGO A4 uses eego_a4
for production builds and eego_a4-debug for development with serial logs.
Both are included in PR build validation; stable and RC workflows publish
firmware-eego_a4-*.bin. See EEGO A4 for flashing and
hardware checks.
S3 debug builds log errors and info by default. To include verbose debug logs,
set s3_debug_log_level = 2 under [crossink] in platformio.local.ini.
Font downloads accept a CROSSINK_FONT_BASE_URL build environment
variable to use a custom host. When it is unset, font downloads use the matching
versioned GitHub release in uxjulia/crossink-fonts, including its individual
font files.
Use an HTTP or HTTPS URL ending in /. Firmware appends
sd-fonts-m<manifest-version>-b<font-version>/fonts.json, so point the variable
at the parent directory of those versioned folders. The catalog's baseUrl
should also point at your own font files.
For GitHub release and release-candidate builds, add CROSSINK_FONT_BASE_URL
under Settings → Secrets and variables → Actions → Variables. For local
builds, export the same environment variable before running PlatformIO.
The separate CROSSINK_ASSET_BASE_URL setting controls language and hyphenation
downloads.
HTTP remains supported for public font hosting. HTTPS font downloads use the streaming wolfSSL transport already used by other network features, avoiding the esp_http_client path that has stalled on ESP32-C3 devices. Downloaded font files are validated by CRC before installation.
pio run -e default --target upload./bin/clang-format-fix
pio check -e default --fail-on-defect low --fail-on-defect medium --fail-on-defect high
pio run -e default -j1