Fix ledc example code for non-esp32c3 devices

This commit is contained in:
Bryan Kadzban 2023-04-17 13:56:40 -07:00
parent 9d85bc2ffe
commit 9c78a9c6c9
5 changed files with 5 additions and 0 deletions

View File

@ -63,6 +63,7 @@ fn main() -> ! {
.configure(channel::config::Config {
timer: &hstimer0,
duty_pct: 10,
pin_config: channel::config::PinConfig::PushPull,
})
.unwrap();

View File

@ -66,6 +66,7 @@ fn main() -> ! {
.configure(channel::config::Config {
timer: &lstimer0,
duty_pct: 90,
pin_config: channel::config::PinConfig::PushPull,
})
.unwrap();

View File

@ -75,6 +75,7 @@ fn main() -> ! {
.configure(channel::config::Config {
timer: &lstimer0,
duty_pct: 10,
pin_config: channel::config::PinConfig::PushPull,
})
.unwrap();

View File

@ -68,6 +68,7 @@ fn main() -> ! {
.configure(channel::config::Config {
timer: &lstimer0,
duty_pct: 10,
pin_config: channel::config::PinConfig::PushPull,
})
.unwrap();

View File

@ -67,6 +67,7 @@ fn main() -> ! {
.configure(channel::config::Config {
timer: &lstimer0,
duty_pct: 10,
pin_config: channel::config::PinConfig::PushPull,
})
.unwrap();