Skip to content
PPUCPublic

About

ZeDMD communication library

Resources

Security policy

Stars

46 stars

Watchers

3 watching

Forks

Repository files navigation

libzedmd

The ZeDMD communication library.

API Documentation

https://ppuc.github.io/libzedmd/docs/html/class_ze_d_m_d.html

Compiling

Windows (x64)

Requires MSYS2 for building external dependencies:

pacman -S --noconfirm make diffutils \
  mingw-w64-ucrt-x86_64-gcc mingw-w64-ucrt-x86_64-libwinpthread \
  mingw-w64-ucrt-x86_64-cmake
platforms/win/x64/external.sh
cmake -G "Visual Studio 18 2026" -DPLATFORM=win -DARCH=x64 -B build
cmake --build build --config Release

Windows (x86)

Requires MSYS2 for building external dependencies:

pacman -S --noconfirm make diffutils \
  mingw-w64-i686-gcc mingw-w64-i686-libwinpthread \
  mingw-w64-i686-cmake
platforms/win/x86/external.sh
cmake -G "Visual Studio 18 2026" -A Win32 -DPLATFORM=win -DARCH=x86 -B build
cmake --build build --config Release

Windows MinGW / MSYS2 UCRT64 (x64)

Requires MSYS2 with UCRT64 environment. Install dependencies:

pacman -S --noconfirm \
  make diffutils autoconf automake libtool \
  mingw-w64-ucrt-x86_64-gcc mingw-w64-ucrt-x86_64-libwinpthread \
  mingw-w64-ucrt-x86_64-cmake

Build (entire build runs inside the MSYS2 UCRT64 shell):

MSYSTEM=UCRT64 /c/msys64/usr/bin/bash.exe -l -c "
  cd \"$(pwd)\" &&
  platforms/win-mingw/x64/external.sh &&
  cmake -DCMAKE_BUILD_TYPE=Release -DPLATFORM=win-mingw -DARCH=x64 -B build &&
  cmake --build build -- -j\$(nproc)
"

Linux (x64)

platforms/linux/x64/external.sh
cmake -DPLATFORM=linux -DARCH=x64 -DCMAKE_BUILD_TYPE=Release -B build
cmake --build build

Linux (aarch64)

platforms/linux/aarch64/external.sh
cmake -DPLATFORM=linux -DARCH=aarch64 -DCMAKE_BUILD_TYPE=Release -B build
cmake --build build

MacOS (arm64)

platforms/macos/arm64/external.sh
cmake -DPLATFORM=macos -DARCH=arm64 -DCMAKE_BUILD_TYPE=Release -B build
cmake --build build

MacOS (x64)

platforms/macos/x64/external.sh
cmake -DPLATFORM=macos -DARCH=x64 -DCMAKE_BUILD_TYPE=Release -B build
cmake --build build

iOS (arm64)

platforms/ios/arm64/external.sh
cmake -DPLATFORM=ios -DARCH=arm64 -DCMAKE_BUILD_TYPE=Release -B build
cmake --build build

iOS Simulator (arm64)

platforms/ios-simulator/arm64/external.sh
cmake -DPLATFORM=ios-simulator -DARCH=arm64 -DCMAKE_BUILD_TYPE=Release -B build
cmake --build build

tvOS (arm64)

platforms/tvos/arm64/external.sh
cmake -DPLATFORM=tvos -DARCH=arm64 -DCMAKE_BUILD_TYPE=Release -B build
cmake --build build

Android (arm64-v8a)

platforms/android/arm64-v8a/external.sh
cmake -DPLATFORM=android -DARCH=arm64-v8a -DCMAKE_BUILD_TYPE=Release -B build
cmake --build build

SPI light effects

SPI uses a fixed 192-byte versioned effect trailer after every RGB565 frame, in the same transfer. Update host and RP2350 firmware together and set spidev.bufsiz=65536. The frame/effects render overloads queue a complete pair; ordinary render calls send an empty trailer. SetLightEffect, ResetLightEffect and SendLightEffects send their changes with the last frame again, so they never wait for the picture to change. At most one pair waits: a newer one replaces its picture and merges the light changes, as ZeDMDLightPacket::Merge() describes. IsSpi() reports the selected transport; no separate light connection is opened. See tests/README.md for the tests.

About

ZeDMD communication library

Resources

Security policy

Stars

46 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages