Update ledc examples names (#214)

* style: 🎨 Rename ledc examples to be consistent

* docs: 📝 Update rust-board name
This commit is contained in:
Sergio Gasquez Arcos 2023-03-08 06:43:02 +01:00 committed by GitHub
parent bcd453776d
commit 061a234ba9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 4 additions and 4 deletions

View File

@ -2,6 +2,6 @@
#CONFIG_MBEDTLS_CERTIFICATE_BUNDLE=n
#CONFIG_MBEDTLS_CERTIFICATE_BUNDLE_DEFAULT_FULL=n
# Some examples (ledc-simple) require a larger than the default stack size for
# Some examples (ledc_simple) require a larger than the default stack size for
# the main thread.
CONFIG_ESP_MAIN_TASK_STACK_SIZE=7000

View File

@ -35,9 +35,9 @@ _\* When using Octal Flash and/or Octal PSRAM_
## Examples
The examples could be built and flashed conveniently with [`cargo-espflash`](https://github.com/esp-rs/espflash/). To run `ledc-simple` on an ESP32-C3:
The examples could be built and flashed conveniently with [`cargo-espflash`](https://github.com/esp-rs/espflash/). To run `ledc_simple` on an ESP32-C3:
```
$ cargo espflash --release --target riscv32imc-esp-espidf --example ledc-simple --monitor /dev/ttyUSB0
$ cargo espflash --release --target riscv32imc-esp-espidf --example ledc_simple --monitor /dev/ttyUSB0
```
In order to run the examples on other chips you will most likely need to adapt at least the used pins.

View File

@ -21,7 +21,7 @@ fn main() -> Result<()> {
let peripherals = Peripherals::take().unwrap();
// Onboard RGB LED pin
// ESP32-C3-DevKitC-02 gpio8, esp-rs gpio2
// ESP32-C3-DevKitC-02 gpio8, ESP32-C3-DevKit-RUST-1 gpio2
let led = peripherals.pins.gpio2;
let channel = peripherals.rmt.channel0;
let config = TransmitConfig::new().clock_divider(1);