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での編集やビルドを想定。
- Install VSCode extensions: Remote Container, and rust-analyer.
- Install tools:
cargo install espflash espmonitor
- Open the project folder with VSCode and "Reopen in container".
- Run
cargo +esp build
inside of the docker container. espflash COM3 target/xtensa-esp32-espidf/debug/rust_on_m5stack
(If M5Stack is COM3, at host's terminal)espmonitor COM3