pub struct Timer1Pwm { /* private fields */ }
Expand description

Use TC1 for PWM (pins PB1, PB2)

Example

let mut timer1 = Timer1Pwm::new(dp.TC1, Prescaler::Prescale64);

let mut d9 = pins.d9.into_output().into_pwm(&mut timer1);
let mut d10 = pins.d10.into_output().into_pwm(&mut timer1);

d9.set_duty(128);
d9.enable();

Implementations

Trait Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.