Skip to content

Commit b261223

Browse files
authored
copy edit
1 parent 1abe250 commit b261223

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

analogue.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ Now you've tested you can read values from the potentiometer, you should connect
9191
from gpiozero import PWMLED
9292
```
9393

94-
The `PWMLED` class lets you control the brightness of an LED using PWM (Pulse-width modulation)
94+
The `PWMLED` class lets you control the brightness of an LED using PWM, or pulse-width modulation.
9595

9696
1. Create a `PWMLED` object on pin 21:
9797

@@ -119,8 +119,8 @@ Now you've tested you can read values from the potentiometer, you should connect
119119

120120
GPIO Zero has a powerful feature: **source and values**. Every device has a `value` property (the current value) and a `values` property (a stream of the device's values at all times). Every output device has a `source` property which can be used to set what the device's value should be.
121121

122-
- `pot.value` gives the potentiometer's current value (it's read only - as it's an input device)
123-
- `led.value` is the LED's current value (it's read/write - you can see what it is, and you can change it)
122+
- `pot.value` gives the potentiometer's current value (it's read only, as it's an input device)
123+
- `led.value` is the LED's current value (it's read/write: you can see what it is, and you can change it)
124124
- `pot.values` is a generator constantly yielding the potentiometer's current value
125125
- `led.source` is a way of setting where the LED gets its values from
126126

@@ -143,13 +143,13 @@ while True:
143143
pot2 = MCP3008(1)
144144
```
145145
146-
1. Blink the LED:
146+
1. Make the LED blink:
147147
148148
```python
149149
led.blink()
150150
```
151151
152-
The LED will blink continuously, 1 second on, 1 second off.
152+
The LED will blink continuously, one second on and one second off.
153153
154154
1. Change the `on_time` and `off_time` parameters to make it blink faster or slower:
155155
@@ -184,6 +184,6 @@ while True:
184184
185185
- Use potentiometers to control other GPIO Zero output devices
186186
- Use potentiometers to control the speed of motors
187-
- Use potentiometers to control the visual settings of a camera module in real time
187+
- Use potentiometers to control the visual settings of a Camera Module in real time
188188
- Find more analogue sensors that will work with the ADC
189189
- Use potentiometers to control a player in a [PyGame Zero](http://pygame-zero.readthedocs.io) game, or in [Minecraft](https://www.raspberrypi.org/learning/getting-started-with-minecraft-pi/)

0 commit comments

Comments
 (0)