aboutsummaryrefslogtreecommitdiff
path: root/examples/nrf/src/bin/pwm.rs
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2022-02-12 01:04:01 +0100
committerDario Nieuwenhuis <[email protected]>2022-02-12 01:07:02 +0100
commit6de02bb23e270141885e24719dc8fbca0bb97feb (patch)
tree01d6d2d13c3df50fff429ec06190ef27ac412e3f /examples/nrf/src/bin/pwm.rs
parent5ae4e20f8654bdc129d152b5364b6864457c2e02 (diff)
nrf: remove OptionalPin
Diffstat (limited to 'examples/nrf/src/bin/pwm.rs')
-rw-r--r--examples/nrf/src/bin/pwm.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/nrf/src/bin/pwm.rs b/examples/nrf/src/bin/pwm.rs
index 8679eddd8..68402ce22 100644
--- a/examples/nrf/src/bin/pwm.rs
+++ b/examples/nrf/src/bin/pwm.rs
@@ -85,7 +85,7 @@ static DUTY: [u16; 1024] = [
85 85
86#[embassy::main] 86#[embassy::main]
87async fn main(_spawner: Spawner, p: Peripherals) { 87async fn main(_spawner: Spawner, p: Peripherals) {
88 let mut pwm = SimplePwm::new(p.PWM0, p.P0_13, p.P0_14, p.P0_16, p.P0_15); 88 let mut pwm = SimplePwm::new_4ch(p.PWM0, p.P0_13, p.P0_14, p.P0_16, p.P0_15);
89 pwm.set_prescaler(Prescaler::Div1); 89 pwm.set_prescaler(Prescaler::Div1);
90 pwm.set_max_duty(32767); 90 pwm.set_max_duty(32767);
91 info!("pwm initialized!"); 91 info!("pwm initialized!");