slint/examples/printerdemo_mcu/zephyr
Nathan Collins c32b941f62 Zephyr: Turn off display blanking once
This stops the display from flickering in the native_sim.
2024-07-08 16:46:33 +02:00
..
src Zephyr: Turn off display blanking once 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 Enable asserts in Zephyr 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