From 67070acff56abddf8b2ffe8a07b5008e3931ca01 Mon Sep 17 00:00:00 2001 From: Marti Bolivar Date: Mon, 23 May 2011 10:36:40 -0400 Subject: Servo docs fixups. --- docs/source/libs/servo.rst | 11 +++++++---- 1 file 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 `, 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 `, the Maple -implementation uses :ref:`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 ` 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 -- cgit v1.2.3