summaryrefslogtreecommitdiffstatshomepage
path: root/docs/pyboard/tutorial
diff options
context:
space:
mode:
authorMike Causer <mcauser@gmail.com>2019-02-13 12:29:01 +1100
committerDamien George <damien.p.george@gmail.com>2019-10-16 14:08:28 +1100
commita2c4cb484d6018a65dabd921c509fc12b71a088b (patch)
treef83725e5b9ff8390ff8a5ebc8c64926acb08db0a /docs/pyboard/tutorial
parent5a8f392f09e3826ff2a1f4330700198e9c0d42cc (diff)
downloadmicropython-a2c4cb484d6018a65dabd921c509fc12b71a088b.tar.gz
micropython-a2c4cb484d6018a65dabd921c509fc12b71a088b.zip
docs: Fix spelling in various parts of the docs.
Diffstat (limited to 'docs/pyboard/tutorial')
-rw-r--r--docs/pyboard/tutorial/leds.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/pyboard/tutorial/leds.rst b/docs/pyboard/tutorial/leds.rst
index 6b05f5db05..2b76d17cde 100644
--- a/docs/pyboard/tutorial/leds.rst
+++ b/docs/pyboard/tutorial/leds.rst
@@ -20,7 +20,7 @@ When you save, the red light on the pyboard should turn on for about a second. T
So what does this code do? First we need some terminology. Python is an object-oriented language, almost everything in python is a *class* and when you create an instance of a class you get an *object*. Classes have *methods* associated to them. A method (also called a member function) is used to interact with or control the object.
-The first line of code creates an LED object which we have then called led. When we create the object, it takes a single parameter which must be between 1 and 4, corresponding to the 4 LEDs on the board. The pyb.LED class has three important member functions that we will use: on(), off() and toggle(). The other function that we use is pyb.delay() this simply waits for a given time in miliseconds. Once we have created the LED object, the statement while True: creates an infinite loop which toggles the led between on and off and waits for 1 second.
+The first line of code creates an LED object which we have then called led. When we create the object, it takes a single parameter which must be between 1 and 4, corresponding to the 4 LEDs on the board. The pyb.LED class has three important member functions that we will use: on(), off() and toggle(). The other function that we use is pyb.delay() this simply waits for a given time in milliseconds. Once we have created the LED object, the statement while True: creates an infinite loop which toggles the led between on and off and waits for 1 second.
**Exercise: Try changing the time between toggling the led and turning on a different LED.**