summaryrefslogtreecommitdiffstatshomepage
path: root/docs/pyboard
diff options
context:
space:
mode:
Diffstat (limited to 'docs/pyboard')
-rw-r--r--docs/pyboard/tutorial/timer.rst2
-rw-r--r--docs/pyboard/tutorial/usb_mouse.rst6
2 files changed, 4 insertions, 4 deletions
diff --git a/docs/pyboard/tutorial/timer.rst b/docs/pyboard/tutorial/timer.rst
index fee01e17b7..aedaaa13c5 100644
--- a/docs/pyboard/tutorial/timer.rst
+++ b/docs/pyboard/tutorial/timer.rst
@@ -95,7 +95,7 @@ We set up timer 2 as follows::
The prescaler is set at 83, which makes this timer count at 1 MHz.
This is because the CPU clock, running at 168 MHz, is divided by
-2 and then by prescaler+1, giving a freqency of 168 MHz/2/(83+1)=1 MHz
+2 and then by prescaler+1, giving a frequency of 168 MHz/2/(83+1)=1 MHz
for timer 2. The period is set to a large number so that the timer
can count up to a large number before wrapping back around to zero.
In this case it will take about 17 minutes before it cycles back to
diff --git a/docs/pyboard/tutorial/usb_mouse.rst b/docs/pyboard/tutorial/usb_mouse.rst
index 4c3a85e548..ac1de6e275 100644
--- a/docs/pyboard/tutorial/usb_mouse.rst
+++ b/docs/pyboard/tutorial/usb_mouse.rst
@@ -61,7 +61,7 @@ The first argument to the function ``osc`` is the number of mouse events to send
and the second argument is the delay (in milliseconds) between events. Try
playing around with different numbers.
-**Excercise: make the mouse go around in a circle.**
+**Exercise: make the mouse go around in a circle.**
Making a mouse with the accelerometer
-------------------------------------
@@ -85,14 +85,14 @@ the [safe mode tutorial](tut-reset), but we repeat the instructions here:
3. The LEDs will then cycle green to orange to green+orange and back again.
4. Keep holding down USR until *only the orange LED is lit*, and then let
go of the USR switch.
-5. The orange LED should flash quickly 4 times, and then turn off.
+5. The orange LED should flash quickly 4 times, and then turn off.
6. You are now in safe mode.
In safe mode, the ``boot.py`` and ``main.py`` files are not executed, and so
the pyboard boots up with default settings. This means you now have access
to the filesystem (the USB drive should appear), and you can edit ``main.py``.
(Leave ``boot.py`` as-is, because we still want to go back to HID-mode after
-we finish editting ``main.py``.)
+we finish editing ``main.py``.)
In ``main.py`` put the following code::