diff options
| author | huntc <[email protected]> | 2022-01-30 16:26:09 +1100 |
|---|---|---|
| committer | huntc <[email protected]> | 2022-01-30 16:26:09 +1100 |
| commit | 986295998a3fa8c665364d7b4a5fc009d186dee9 (patch) | |
| tree | cfa78102dbdb488f3662215ea9d8ed5cb5b0df7b /examples/nrf/src/bin | |
| parent | 1c67bd46433734d9280e976da33975cf5beb773e (diff) | |
Some more doco
Diffstat (limited to 'examples/nrf/src/bin')
| -rw-r--r-- | examples/nrf/src/bin/pwm_sequence.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/nrf/src/bin/pwm_sequence.rs b/examples/nrf/src/bin/pwm_sequence.rs index 6fb861e8f..d3ddf558c 100644 --- a/examples/nrf/src/bin/pwm_sequence.rs +++ b/examples/nrf/src/bin/pwm_sequence.rs | |||
| @@ -32,7 +32,7 @@ async fn main(_spawner: Spawner, p: Peripherals) { | |||
| 32 | let _ = pwm.start( | 32 | let _ = pwm.start( |
| 33 | Sequence::new(&mut seq_words_1, seq_config.clone()), | 33 | Sequence::new(&mut seq_words_1, seq_config.clone()), |
| 34 | None, | 34 | None, |
| 35 | SequenceMode::Infinite, | 35 | SequenceMode::Times(1), |
| 36 | ); | 36 | ); |
| 37 | 37 | ||
| 38 | info!("pwm started!"); | 38 | info!("pwm started!"); |
| @@ -43,7 +43,7 @@ async fn main(_spawner: Spawner, p: Peripherals) { | |||
| 43 | let _ = pwm.start( | 43 | let _ = pwm.start( |
| 44 | Sequence::new(&mut seq_words_2, seq_config), | 44 | Sequence::new(&mut seq_words_2, seq_config), |
| 45 | None, | 45 | None, |
| 46 | SequenceMode::Infinite, | 46 | SequenceMode::Times(1), |
| 47 | ); | 47 | ); |
| 48 | 48 | ||
| 49 | // we can abort a sequence if we need to before its complete with pwm.stop() | 49 | // we can abort a sequence if we need to before its complete with pwm.stop() |
