aboutsummaryrefslogtreecommitdiffstats
path: root/source/arduino/notone.rst
diff options
context:
space:
mode:
Diffstat (limited to 'source/arduino/notone.rst')
-rw-r--r--source/arduino/notone.rst47
1 files changed, 47 insertions, 0 deletions
diff --git a/source/arduino/notone.rst b/source/arduino/notone.rst
new file mode 100644
index 0000000..4390b52
--- /dev/null
+++ b/source/arduino/notone.rst
@@ -0,0 +1,47 @@
+.. _arduino-notone:
+
+noTone()
+========
+
+Description
+-----------
+
+Stops the generation of a square wave triggered by
+`tone <http://arduino.cc/en/Reference/Tone>`_\ (). Has no effect if
+no tone is being generated.
+
+
+
+**NOTE:** if you want to play different pitches on multiple pins,
+you need to call noTone() on one pin before calling tone() on the
+next pin.
+
+
+
+Syntax
+------
+
+noTone(pin)
+
+
+
+Parameters
+----------
+
+pin: the pin on which to stop generating the tone
+
+
+
+Returns
+-------
+
+nothing
+
+
+
+See also
+--------
+
+
+- `tone <http://arduino.cc/en/Reference/Tone>`_ ()
+