mirror of
https://github.com/esp-rs/esp-idf-hal.git
synced 2025-09-27 12:21:02 +00:00
Update ledc
examples names (#214)
* style: 🎨 Rename ledc examples to be consistent * docs: 📝 Update rust-board name
This commit is contained in:
parent
bcd453776d
commit
061a234ba9
2
.github/configs/sdkconfig.defaults
vendored
2
.github/configs/sdkconfig.defaults
vendored
@ -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
|
||||
|
@ -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.
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user