aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJacob Rosenthal <[email protected]>2021-11-11 20:12:50 -0700
committerJacob Rosenthal <[email protected]>2021-11-11 20:12:50 -0700
commitea1c62ff610a67fe35aaab16bd5921fd8e1ae16b (patch)
tree1ad5cdcfea3895d0bcbd1c31ad7087592a1f4fb0 /examples
parentf15c3a04d4b8fa5ace9827177220c11935b96fd3 (diff)
fix
Diffstat (limited to 'examples')
-rw-r--r--examples/nrf/src/bin/pwm_sequence.rs4
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 e8ce40eff..d02b0c9c5 100644
--- a/examples/nrf/src/bin/pwm_sequence.rs
+++ b/examples/nrf/src/bin/pwm_sequence.rs
@@ -14,7 +14,7 @@ use embassy_nrf::Peripherals;
14#[embassy::main] 14#[embassy::main]
15async fn main(_spawner: Spawner, p: Peripherals) { 15async fn main(_spawner: Spawner, p: Peripherals) {
16 // for i in range(1024): print(int((math.sin(i/512*math.pi)*0.4+0.5)**2*32767), ', ', end='') 16 // for i in range(1024): print(int((math.sin(i/512*math.pi)*0.4+0.5)**2*32767), ', ', end='')
17 let mut seq_values: [u16; 1024] = [ 17 let seq_values: [u16; 1024] = [
18 8191, 8272, 8353, 8434, 8516, 8598, 8681, 8764, 8847, 8931, 9015, 9099, 9184, 9269, 9354, 18 8191, 8272, 8353, 8434, 8516, 8598, 8681, 8764, 8847, 8931, 9015, 9099, 9184, 9269, 9354,
19 9440, 9526, 9613, 9700, 9787, 9874, 9962, 10050, 10139, 10227, 10316, 10406, 10495, 10585, 19 9440, 9526, 9613, 9700, 9787, 9874, 9962, 10050, 10139, 10227, 10316, 10406, 10495, 10585,
20 10675, 10766, 10857, 10948, 11039, 11131, 11223, 11315, 11407, 11500, 11592, 11685, 11779, 20 10675, 10766, 10857, 10948, 11039, 11131, 11223, 11315, 11407, 11500, 11592, 11685, 11779,
@@ -104,7 +104,7 @@ async fn main(_spawner: Spawner, p: Peripherals) {
104 NoPin, 104 NoPin,
105 NoPin, 105 NoPin,
106 config, 106 config,
107 &mut seq_values 107 &seq_values
108 )); 108 ));
109 let _ = pwm.start(SequenceMode::Infinite); 109 let _ = pwm.start(SequenceMode::Infinite);
110 info!("pwm started!"); 110 info!("pwm started!");