aboutsummaryrefslogtreecommitdiffstats
path: root/docs/source/arduino/pinmode.rst
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@mit.edu>2010-12-21 10:27:37 -0500
committerMarti Bolivar <mbolivar@mit.edu>2010-12-21 10:27:37 -0500
commitc45bccad44187da27505cf5808424e709e3f54a1 (patch)
tree18a459a50f8d0551ba046e30462c93999d982725 /docs/source/arduino/pinmode.rst
parent84fd2532a7f23d20354ff590790b3f892cb7e7d7 (diff)
parentd5ad2a27f4e69e6cc9324331945937c983c30366 (diff)
downloadlibrambutan-c45bccad44187da27505cf5808424e709e3f54a1.tar.gz
librambutan-c45bccad44187da27505cf5808424e709e3f54a1.zip
Merge branch 'master' into debug-serialusb.
Chose debug-serialusb version in cases of conflict. Conflicts: libmaple/usb/usb_callbacks.c
Diffstat (limited to 'docs/source/arduino/pinmode.rst')
-rw-r--r--docs/source/arduino/pinmode.rst67
1 files changed, 0 insertions, 67 deletions
diff --git a/docs/source/arduino/pinmode.rst b/docs/source/arduino/pinmode.rst
deleted file mode 100644
index 34c7998..0000000
--- a/docs/source/arduino/pinmode.rst
+++ /dev/null
@@ -1,67 +0,0 @@
-.. highlight:: cpp
-
-.. _arduino-pinmode:
-
-pinMode()
-=========
-
-.. doxygenfunction:: pinMode
-
-.. doxygenenum:: WiringPinMode
-
-Discussion
-----------
-
-pinMode() is usually called within :ref:`arduino-setup` in order to
-configure a pin for a certain usage (although it may be called from
-anywhere).
-
-
-Example
--------
-
- ::
-
-
- int ledPin = 13; // LED connected to digital pin 13
-
- void setup()
- {
- pinMode(ledPin, OUTPUT); // sets the digital pin as output
- }
-
- void loop()
- {
- digitalWrite(ledPin, HIGH); // sets the LED on
- delay(1000); // waits for a second
- digitalWrite(ledPin, LOW); // sets the LED off
- delay(1000); // waits for a second
- }
-
-
-
-Arduino Compatibility Note
---------------------------
-
-The libmaple implementation of pinMode() supports OUTPUT and INPUT
-modes with a meaning identical to that of the Arduino function.
-
-INPUT_ANALOG and PWM modes were added because the Maple does not
-distinguish between analog and digital pins the same way the Arduino
-does. Unlike the Arduino, you **must call pinMode**\ () to set up a pin
-for these purposes before a call to, e.g., :ref:`arduino-analogRead`.
-In practice, this should only add a few lines of pinMode() calls to
-your :ref:`arduino-setup` function.
-
-OUTPUT_OPEN_DRAIN, INPUT_PULLUP, INPUT_PULLDOWN, and PWM_OPEN_DRAIN
-modes represent functionality not currently available on Arduino
-boards.
-
-See also
---------
-
-- :ref:`arduino-constants`
-- :ref:`arduino-digitalwrite`
-- :ref:`arduino-digitalread`
-- Maple :ref:`GPIO <gpio>` reference page
-- Arduino `pinMode() <http://www.arduino.cc/en/Reference/PinMode>`_ reference