[esp] Add Rust no-std example.
This commit is contained in:
33
esp/rust/03_no-std-lcd/README.md
Normal file
33
esp/rust/03_no-std-lcd/README.md
Normal file
@@ -0,0 +1,33 @@
|
||||
# 03_no-std-lcd
|
||||
|
||||
This is an example of using ESP-IDF using no std.
|
||||
When flashed to a device, the application draws a message to the LCD screen.
|
||||
|
||||
Steps used to generate this project
|
||||
|
||||
```bash
|
||||
cargo install esp-generate
|
||||
esp-generate --chip esp32 esp-gen-no-std
|
||||
```
|
||||
|
||||
You will also need to install [probe-rs](https://probe.rs/docs/getting-started/installation/)
|
||||
|
||||
```bash
|
||||
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/probe-rs/probe-rs/releases/latest/download/probe-rs-tools-installer.sh | sh
|
||||
```
|
||||
|
||||
Steps to build and flash this project
|
||||
|
||||
```bash
|
||||
# Install espflash if you don't have it already
|
||||
cargo install espflash
|
||||
|
||||
# Export esp-idf build environment
|
||||
. ~/export-esp.sh
|
||||
|
||||
# Build and flash to the device
|
||||
cargo build
|
||||
cargo run
|
||||
```
|
||||
|
||||
For more detailed information on setting up a development environment, see [the esp/rust README](/esp/rust/README.md)
|
||||
Reference in New Issue
Block a user