aboutsummaryrefslogtreecommitdiffstats
path: root/source/arduino/notone.rst
blob: 9e59065fde639839cdfc4042a195afb678eb314a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
.. _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>`_ ()



.. include:: cc-attribution.txt