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

Use TC0 for PWM (pins PD5, PD6)

Example

let mut timer0 = Timer0Pwm::new(dp.TC0, Prescaler::Prescale64);

let mut d5 = pins.d5.into_output().into_pwm(&mut timer0);
let mut d6 = pins.d6.into_output().into_pwm(&mut timer0);

d5.set_duty(128);
d5.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.