aboutsummaryrefslogtreecommitdiffstats
path: root/docs/source/lang/api/pinmode.rst
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2011-06-11 19:25:29 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2011-06-11 20:05:33 -0400
commit0c2b3c667bf157dc2344e3dbc2aae0e11e37387b (patch)
tree3008ee192c80f17f640ebdeb870442e78415ce6b /docs/source/lang/api/pinmode.rst
parentd4b576fcadecf66b7b754af7d204bb6f3b4a9830 (diff)
downloadlibrambutan-0c2b3c667bf157dc2344e3dbc2aae0e11e37387b.tar.gz
librambutan-0c2b3c667bf157dc2344e3dbc2aae0e11e37387b.zip
Remove reST documentation, attendant updates.
The documentation covers topics not specifically relevant to libmaple, so it doesn't make sense for it to be part of the libmaple source distribution. Delete the docs/ tree, and prepare libmaple for use with the new leaflabs-docs repo, which will contain the docs from now on. * README: update to reflect this change * support/doxygen/Doxyfile: This is the old docs/Doxyfile * Makefile: Add a doxygen target * wirish/comm/HardwareSerial.h: fix reference to docs/. The comment informing maintainers that the HardwareSerial interface is documented by hand refers to the docs/ tree, which no longer exists. Update it to refer to the separate leaflabs-docs repository. * support/scripts/copy-to-ide: No longer build the documentation
Diffstat (limited to 'docs/source/lang/api/pinmode.rst')
-rw-r--r--docs/source/lang/api/pinmode.rst80
1 files changed, 0 insertions, 80 deletions
diff --git a/docs/source/lang/api/pinmode.rst b/docs/source/lang/api/pinmode.rst
deleted file mode 100644
index 643e26e..0000000
--- a/docs/source/lang/api/pinmode.rst
+++ /dev/null
@@ -1,80 +0,0 @@
-.. highlight:: cpp
-
-.. _lang-pinmode:
-
-pinMode()
-=========
-
-.. contents:: Contents
- :local:
-
-Library Documentation
----------------------
-
-.. doxygenfunction:: pinMode
-
-.. _lang-pinmode-wiringpinmode:
-
-.. doxygenenum:: WiringPinMode
-
-Discussion
-----------
-
-pinMode() is usually called within :ref:`lang-setup` in order to
-configure a pin for a certain usage (although it may be called
-anywhere).
-
-Example
--------
-
-This example uses pinMode() to set up the pin connected to the
-built-in LED as an output. Once this is done,
-:ref:`lang-digitalwrite` can be used to turn the pin ``HIGH`` and
-``LOW``, which turn the LED on and off.
-
-::
-
- void setup() {
- pinMode(BOARD_LED_PIN, OUTPUT); // sets the LED pin as output
- }
-
- void loop() {
- digitalWrite(BOARD_LED_PIN, HIGH); // sets the LED on
- delay(1000); // waits for a second
- digitalWrite(BOARD_LED_PIN, LOW); // sets the LED off
- delay(1000); // waits for a second
- }
-
-Arduino Compatibility
----------------------
-
-.. TODO check out Arduino vs. Maple static discilpline cutoffs to
-.. ensure accuracy of following:
-
-On Maple, pinMode() supports the ``INPUT`` and ``OUTPUT`` modes in the
-same way as Arduino (however, remember that the Maple, as a 3.3V
-device, will only drive 3.3V to an ``OUTPUT`` pin that has been set
-``HIGH``, instead of 5V like on Arduino).
-
-``INPUT_ANALOG`` and ``PWM`` modes were added because the Maple
-doesn't separate the analog and digital pins the same way Arduino
-does. Unlike on Arduino, you **must call** pinMode() to set up a pin
-for these purposes before a call to, e.g., :ref:`lang-analogRead`.
-This should only add a few lines to your :ref:`lang-setup` function.
-
-.. TODO [0.1.0] verify following before putting it in:
-
-.. ``OUTPUT_OPEN_DRAIN``, ``INPUT_PULLUP``, ``INPUT_PULLDOWN``, and
-.. ``PWM_OPEN_DRAIN`` modes represent functionality not currently
-.. available on Arduino boards.
-
-See Also
---------
-
-- :ref:`lang-board-values`
-- :ref:`lang-constants`
-- :ref:`lang-digitalwrite`
-- :ref:`lang-digitalread`
-- :ref:`gpio`
-
-.. include:: /arduino-cc-attribution.txt