slint/examples/printerdemo_mcu/zephyr
Nathan Collins fe711aad10 Zephyr: don't block main thread with animations
Make sure we sleep, even if there are animations. Previously we would
spin the event loop forever once an animation started.

Ideally we need some slint API to get the duration until the next
animation tick.
2024-07-08 16:46:33 +02:00
..
src Zephyr: don't block main thread with animations 2024-07-08 16:46:33 +02:00
.gitignore Render printerdemo in Zephyr RTOS 2024-07-08 16:46:33 +02:00
CMakeLists.txt Render printerdemo in Zephyr RTOS 2024-07-08 16:46:33 +02:00
prj.conf Zephyr: handle touch events 2024-07-08 16:46:33 +02:00
README.md Update examples/printerdemo_mcu/zephyr/README.md 2024-07-08 16:46:33 +02:00
VERSION Render printerdemo in Zephyr RTOS 2024-07-08 16:46:33 +02:00

Printer Demo with Zephyr

Prerequisites

Before you can run this example, make sure you have the following:

  • The Zephyr development environment. Use the Zephyr getting started guide to install it.

  • Rust, with the nightly channel enabled:

    # Install via rustup
    # See https://www.rust-lang.org/tools/install
    
    # Enable the nightly channel
    rustup toolchain install nightly
    rustup default nightly
    

Running the Example

Once you have the prerequisites, navigate to this directory and execute the following comands:

# Activate the Zephyr virtualenv
source <path/to>/zephyrproject/.venv/bin/activate

# CMake only:
cmake -GNinja -S . -B ./build -DBOARD=native_sim/native/64
cmake --build ./build -t run