This repository is an example of how to write a Rust program that can read inputs and draw to the screen on the Miyoo Mini.
For graphics, we use embedded_graphics for drawing to a framebuffer, which we then use blit to the device's framebuffer.
For inputs, we use evdev to poll for inputs.
cargo- SDL2 (optional, if simulator is not used)
- cross:
cargo install cross --git https://github.com/cross-rs/cross(optional, for cross-compilation)
For development work, there is a simulator that requires SDL2 to be installed.
cargo run
We use cross for cross-compilation to the arm-unknown-gnueabihf target for the Miyoo Mini.
cross build --release
cp -r static/. dist
cp target/arm-unknown-linux-gnueabihf/release/miyoo-mini-rust-template "dist/Rust App Example.pak/"