Forgot to expose the stop method
This commit is contained in:
parent
965a5f2c3f
commit
3b2beddc7a
@ -342,6 +342,14 @@ impl<'d, 's, T: Instance> SingleSequencer<'d, 's, T> {
|
|||||||
};
|
};
|
||||||
self.sequencer.start(start_seq, times)
|
self.sequencer.start(start_seq, times)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Stop playback. Disables the peripheral. Does NOT clear the last duty
|
||||||
|
/// cycle from the pin. Returns any sequences previously provided to
|
||||||
|
/// `start` so that they may be further mutated.
|
||||||
|
#[inline(always)]
|
||||||
|
pub fn stop(&self) {
|
||||||
|
self.sequencer.stop();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A composition of sequences that can be started and stopped.
|
/// A composition of sequences that can be started and stopped.
|
||||||
|
Loading…
Reference in New Issue
Block a user