Skip to content

Commit b9bad29

Browse files
committed
Apply suggestions from code review
Adding edits to get this merged in.
1 parent 1d47f54 commit b9bad29

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

content/tour/pwm/blink.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Next up, we connect the PWM peripheral to the given output pin:
4444

4545
We get a channel number back. One PWM peripheral typically has 2-4 channels, which can be connected to certain pins. Which pins can be used depends a lot on the hardware, which we'll [get to later](../multiple/#finding-the-correct-pwm-peripheral-and-pins). For now, all you need to know is that the PWM channel is now connected to a single GPIO pin.
4646

47-
To actually make the LED blink, we will set the duty cycle to half the "top" value of the LED:
47+
To actually make the LED blink, we will need to set the duty cycle. The duty cycle refers to the part of the time when the PWM is turned on. In this case, we will set the duty cycle to half the "top" value of the LED:
4848

4949
```go
5050
// Blink the LED, setting it to "on" half the time.

content/tour/pwm/servo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: "Control a servo motor directly using PWM"
44
weight: 10
55
---
66

7-
Servos are controlled using a form of pulse-width modification (PWM) to control their position. Every 20ms or so (the precise interval doesn't matter too much) a pulse of 1ms to 2ms is sent that indicates the target position for the motor. The pulse width is what matters here: 1.5ms indicates the center position, 1ms all the way to the right, and 2ms all the way to the left.
7+
Servos are rotary motors that allow for precise control of their angular position. The position is set using a form of pulse-width modification (PWM). Every 20ms or so (the precise interval doesn't matter too much) a pulse of 1ms to 2ms is sent that indicates the target position for the motor. The pulse width is what matters here: 1.5ms indicates the center position, 1ms all the way to the right, and 2ms all the way to the left.
88

99
There is a decent amount of variation among servo motors:
1010

0 commit comments

Comments
 (0)