pwm_sequence consume buffer

This commit is contained in:
Jacob Rosenthal
2021-11-11 19:14:07 -07:00
parent 4112759a8f
commit ec66fcd01a
2 changed files with 9 additions and 17 deletions

View File

@ -98,13 +98,7 @@ async fn main(_spawner: Spawner, p: Peripherals) {
config.refresh = 3;
let pwm = unwrap!(SequencePwm::new(
p.PWM0,
p.P0_13,
NoPin,
NoPin,
NoPin,
config,
&seq_values
p.PWM0, p.P0_13, NoPin, NoPin, NoPin, config, seq_values
));
let _ = pwm.start(SequenceMode::Infinite);
info!("pwm started!");