Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix ledc example code for non-esp32c3 devices
  • Loading branch information
BryanKadzban committed Apr 17, 2023
commit 9c78a9c6c95819838e65b2e30f56e8c395323d1e
1 change: 1 addition & 0 deletions esp32-hal/examples/ledc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ fn main() -> ! {
.configure(channel::config::Config {
timer: &hstimer0,
duty_pct: 10,
pin_config: channel::config::PinConfig::PushPull,
})
.unwrap();

Expand Down
1 change: 1 addition & 0 deletions esp32c2-hal/examples/ledc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ fn main() -> ! {
.configure(channel::config::Config {
timer: &lstimer0,
duty_pct: 90,
pin_config: channel::config::PinConfig::PushPull,
})
.unwrap();

Expand Down
1 change: 1 addition & 0 deletions esp32c6-hal/examples/ledc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ fn main() -> ! {
.configure(channel::config::Config {
timer: &lstimer0,
duty_pct: 10,
pin_config: channel::config::PinConfig::PushPull,
})
.unwrap();

Expand Down
1 change: 1 addition & 0 deletions esp32s2-hal/examples/ledc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ fn main() -> ! {
.configure(channel::config::Config {
timer: &lstimer0,
duty_pct: 10,
pin_config: channel::config::PinConfig::PushPull,
})
.unwrap();

Expand Down
1 change: 1 addition & 0 deletions esp32s3-hal/examples/ledc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ fn main() -> ! {
.configure(channel::config::Config {
timer: &lstimer0,
duty_pct: 10,
pin_config: channel::config::PinConfig::PushPull,
})
.unwrap();

Expand Down