inspired by this great repository -> https://github.com/sidharthmohannair/Tutorial-ESP32-C3-Super-Mini
You can find most of the information about the board there. Here I just want to stash some basic RUST examples compatible with esp_hal v0.23.1
You can also copy the .cargo/config.toml and build.rs files from this repository if you just want to build some rust code for the board.
cargo build --release
cargo espflash flash --release
cargo espflash monitor
-
blink
cargo espflash flash --release --example blink
-
sk6812 led strip
cargo espflash flash --release --example sk6812_rgbw_embassy
-
neopixel (ws2812b) led strip
cargo espflash flash --release --example neopixel_ws2812b_embassy
-
button
cargo espflash flash --release --example button
-
interrupt
cargo espflash flash --release --example interrupt
-
aht20
cargo espflash flash --release --example aht20
There is the wokwi simulator and in the wokwi_board folder is custom board for it, so you can test your code without touching the real board. You just need:
- Create a new project on wokwi
- Click inside the code editor, press "F1" and choose "Load custom board file..."
Just visit rustup.rs(https://rustup.rs) and proceed with their instructions for your operating system.
rustup target add riscv32imc-unknown-none-elf
Install ESPFlash using Cargo
cargo install cargo-espflash
Verify Installation
cargo espflash --version
git clone https://github.com/hahihula/esp32-c3-super-mini-rust.git
Connect the board to your computer using a USB-c cable.
cd esp32-c3-super-mini-rust
cargo build --release --example blink
cargo espflash flash --release --example blink
cargo espflash monitor