verylowfreq / rust_on_m5stack_example

Example of a Rust project for M5Stack.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rust on M5Stack

The Rust example for M5Stack that can draw LCD and treat BtnA, BtnB, and BtnC.

Based on Rust on ESP32 by Kerkour

RustでM5Stackのプログラムを書くサンプルプロジェクトです。ビルド環境はDockerで準備します。 VSCodeでの編集やビルドを想定。

Build with VSCode

  1. Install VSCode extensions: Remote Container, and rust-analyer.
  2. Install tools: cargo install espflash espmonitor
  3. Open the project folder with VSCode and "Reopen in container".
  4. Run cargo +esp build inside of the docker container.
  5. espflash COM3 target/xtensa-esp32-espidf/debug/rust_on_m5stack (If M5Stack is COM3, at host's terminal)
  6. espmonitor COM3

About

Example of a Rust project for M5Stack.

License:Apache License 2.0


Languages

Language:Rust 99.6%Language:Dockerfile 0.4%