diff options
author | Marti Bolivar <mbolivar@leaflabs.com> | 2011-05-23 10:36:40 -0400 |
---|---|---|
committer | Marti Bolivar <mbolivar@leaflabs.com> | 2011-05-23 10:38:39 -0400 |
commit | 401e463ae777cf110344957b7d5bc7c2962338b2 (patch) | |
tree | eff5b13a6edac6389ead7036933bb5caeb464cfc | |
parent | 9975593eb413c7bdb5711f25d9cedb6c276cfd65 (diff) | |
download | librambutan-401e463ae777cf110344957b7d5bc7c2962338b2.tar.gz librambutan-401e463ae777cf110344957b7d5bc7c2962338b2.zip |
Servo docs fixups.
-rw-r--r-- | source/libs/servo.rst | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/source/libs/servo.rst b/source/libs/servo.rst index f131ee1..80288c6 100644 --- a/source/libs/servo.rst +++ b/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 |