We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c53c0aa commit a394f35Copy full SHA for a394f35
examples/mcpwm-simple.rs
@@ -1,4 +1,8 @@
1
-/// # x = 10
+/// Simple example showing how MCPWM may be used to generate two synchronized pwm signals with varying duty.
2
+/// The duty on the pin4 will increase from 0% all the way up to 100% and repeat. At the same time the duty
3
+/// on pin 5 will go from 100% down to 0%
4
+///
5
+/// # duty = 10
6
///
7
/// . .
8
@@ -17,7 +21,7 @@
17
21
18
22
19
23
20
-/// # x = 50
24
+/// # duty = 50
25
26
27
/// .---------------. .---------------.
@@ -35,7 +39,7 @@
35
39
36
40
37
41
38
-/// # x = 90
42
+/// # duty = 90
43
44
45
/// .------------------------. .------------------------.
0 commit comments