Rust Bare Metal implementation of ESP-Buddy based on https://github.com/espressif/esp-mdf/tree/master/examples/development_kit/buddy
Copy the code from examples to main.rs
and run ./scripts/run-wokwi.sh
. Once the build is complete, click the link in terminal to open Wokwi simulator.
Flash the device using web flasher by command ./scripts/flash.sh
Run the base application:
This is mapped by .cargo/config.toml
to command:
cargo espflash flash --release --monitor
Run animation example with:
cargo run --release --example animation
cargo run --release --example animation
blinky - blink LED - not working - blocked by:
buttons - display state of buttons
cargo run --release --example buttons
export SSID="replace_by_ssid"
export PASSWORD="replace_by_password"
cargo run --release --example clock
cargo run --release --example gpio
cargo run --release --example snow
cargo run --release --example temperature
export SSID="replace_by_ssid"
export PASSWORD="replace_by_password"
cargo run --release --example wifi
When using a custom Wokwi project, please change the WOKWI_PROJECT_ID
in run-wokwi.sh
. If no project id is specified, a DevKit for esp32 will be used.
Terminal approach:
scripts/run-wokwi.sh [debug | release]
If no argument is passed,
release
will be used as default
UI approach:
The default test task is already set to build the project, and it can be used in VS Code and Gitpod:
Ctrl-Shift-P
or Cmd-Shift-P
) run the Tasks: Run Test Task
commandCtrl-Shift-,
or Cmd-Shift-,
Note
This Shortcut is not available in Gitpod by default.
Ctrl-Shift-P
or Cmd-Shift-P
) run the Tasks: Run Task
command and select Build & Run Wokwi
.Build & Run Wokwi
on the left side of the Status Bar.Wokwi offers debugging with GDB.
Terminal approach:
$HOME/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gdb target/xtensa-esp32-espidf/debug/esp_buddy_rs -ex "target remote localhost:9333"
UI approach:
debug
profileRun and Debug
section of the IDE (Ctrl-Shift-D or Cmd-Shift-D
)F5
esp
when using VS Code or GitHub Codespacesgitpod
when using GitpodRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4