aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2011-05-23 10:36:40 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2011-05-23 10:38:39 -0400
commit67070acff56abddf8b2ffe8a07b5008e3931ca01 (patch)
treecd7bb1499ce0a969a2f234d2d1f67bc211d5e82b /docs
parentd0eba2fea5d7b621ff25d7ba29ef480e0a9f8235 (diff)
downloadlibrambutan-67070acff56abddf8b2ffe8a07b5008e3931ca01.tar.gz
librambutan-67070acff56abddf8b2ffe8a07b5008e3931ca01.zip
Servo docs fixups.
Diffstat (limited to 'docs')
-rw-r--r--docs/source/libs/servo.rst11
1 files changed, 7 insertions, 4 deletions
diff --git a/docs/source/libs/servo.rst b/docs/source/libs/servo.rst
index f131ee1..80288c6 100644
--- a/docs/source/libs/servo.rst
+++ b/docs/source/libs/servo.rst
@@ -16,6 +16,9 @@ If you are using the :ref:`Unix toolchain <unix-toolchain>`, the
library is located in the ``/libraries/Servo/`` :ref:`libmaple`
directory.
+.. contents:: Contents
+ :local:
+
Servo Class Reference
---------------------
@@ -43,12 +46,12 @@ However, there are some differences, essentially at the level of
implementation details.
The major difference is that while the Arduino implementation drives
-the servos with "bit-banged" :ref:`PWM <pwm>`, the Maple
-implementation uses :ref:`timers <timers>` to drive the PWM directly.
+servos with "bit-banged" PWM (in the sense that timer interrupt
+handlers are used to manually toggle pins), the Maple implementation
+uses :ref:`timers <timers>` to drive the PWM directly.
Consequently, **the Maple implementation only allows Servo instances
-to attach (via** :cpp:func:Servo::attach() **) to pins that support
-PWM**.
+to attach to pins that support PWM**.
To determine if a pin supports PWM, you can either check if "PWM"
appears next to its number on your board's silkscreen, or look for it