From 9d85bc2ffe1315731a138fdcb70df728fbb2a48b Mon Sep 17 00:00:00 2001 From: Bryan Kadzban Date: Sun, 16 Apr 2023 20:37:27 -0700 Subject: [PATCH] Fix ledc example to specify a push-pull output --- esp32c3-hal/examples/ledc.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/esp32c3-hal/examples/ledc.rs b/esp32c3-hal/examples/ledc.rs index 9d79f58de..93f50e9d6 100644 --- a/esp32c3-hal/examples/ledc.rs +++ b/esp32c3-hal/examples/ledc.rs @@ -73,6 +73,7 @@ fn main() -> ! { .configure(channel::config::Config { timer: &lstimer0, duty_pct: 10, + pin_config: channel::config::PinConfig::PushPull, }) .unwrap();