diff --git a/README.md b/README.md index 14f9960cc85..f0c320f9644 100644 --- a/README.md +++ b/README.md @@ -24,14 +24,14 @@ Follow the [Prerequisites](https://github.com/esp-rs/esp-idf-template#prerequisi The examples could be built and flashed conveniently with [`cargo-espflash`](https://github.com/esp-rs/espflash/). To run e.g. `wifi` on an e.g. ESP32-C3: (Swap the Rust target and example name with the target corresponding for your ESP32 MCU and with the example you would like to build) -with cargo-esptool v1.7: -``` -$ ESP_IDF_VERSION=release/v4.4 cargo espflash --target riscv32imc-esp-espidf --example wifi --monitor /dev/ttyUSB0 +with `cargo-espflash` V2+: +```sh +$ ESP_IDF_VERSION=release/v4.4 cargo espflash flash --target riscv32imc-esp-espidf --example ledc_simple --monitor ``` -with cargo-esptool v2.0: -``` -$ ESP_IDF_VERSION=release/v4.4 cargo espflash flash --target riscv32imc-esp-espidf --example wifi --monitor +with older `cargo-espflash`: +```sh +$ ESP_IDF_VERSION=release/v4.4 cargo espflash --target riscv32imc-esp-espidf --example ledc_simple --monitor /dev/ttyUSB0 ``` ## Setting up a "Hello, world!" binary crate with ESP IDF