You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generates a square wave of the specified frequency (and 50% duty cycle) on a pin. A duration can be specified, otherwise the wave continues until a call to link:../noTone[noTone()]. The pin can be connected to a piezo buzzer or other speaker to play tones.
20
+
=== Descrição
21
+
Gera uma onda quadrada na frequência especificada (e duty cycle 50%) em um pino. A duração pode ser especificada, do contrário a onda continua até uma chamada de link:../noTone[noTone()]. O pino pode ser conectado a um buzzer piezo ou outro speaker para tocar tons.
22
22
23
-
Only one tone can be generated at a time. If a tone is already playing on a different pin, the call to tone() will have no effect. If the tone is playing on the same pin, the call will set its frequency.
23
+
Apenas um tom pode ser gerado de cada vez. Se um tom já está tocando em um pino diferente, a chamada de tone() não terá efeito. Se o tom está tocando no mesmo pino, a chamada irá mudar sua frequência para a nova especificada.
24
24
25
-
Use of the `tone()` function will interfere with PWM output on pins 3 and 11 (on boards other than the Mega).
25
+
Uso da função `tone()` irá interferir com saída PWM nos pinos 3 e 11 (em placas diferentes do Mega).
26
26
27
-
It is not possible to generate tones lower than 31Hz. For technical details, see https://github.com/bhagman/Tone#ugly-details[Brett Hagman's notes].
27
+
Não é possível gerar tons de freqeuência mais baixa que 31Hz. Para detalhes técnicos, veja https://github.com/bhagman/Tone#ugly-details[as notas de Brett Hagman's(Em Inglês)].
28
28
[%hardbreaks]
29
29
30
30
31
31
[float]
32
-
=== Syntax
33
-
`tone(pin, frequency)`
32
+
=== Sintaxe
33
+
`tone(pino, frequência)`
34
34
35
-
`tone(pin, frequency, duration)`
35
+
`tone(pino, frequência, duração)`
36
36
[%hardbreaks]
37
37
38
38
[float]
39
-
=== Parameters
40
-
`pin`: the pin on which to generate the tone
39
+
=== Parâmetros
40
+
`pino`: o pin no qual gerar o tom
41
41
42
-
`frequency`: the frequency of the tone in hertz - `unsigned int`
42
+
`frequência`: a frequência do tom em Hertz - `unsigned int`
43
43
44
-
`duration`: the duration of the tone in milliseconds (optional) - `unsigned long`
44
+
`duração`: a duração do tom em milissegundos (opcional) - `unsigned long`
45
45
[%hardbreaks]
46
46
47
47
[float]
48
-
=== Returns
49
-
Nothing
48
+
=== Retorna
49
+
Nada
50
50
51
51
--
52
52
// OVERVIEW SECTION ENDS
@@ -59,8 +59,8 @@ Nothing
59
59
--
60
60
61
61
[float]
62
-
=== Notes and Warnings
63
-
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.
62
+
=== Notas e Advertências`
63
+
Se você quiser tocar tons diferentes em múltiplos pinos, você precisa chamar `noTone()` em um pino antes de chamar `tone()` no próximo pino.
64
64
[%hardbreaks]
65
65
66
66
--
@@ -72,17 +72,17 @@ If you want to play different pitches on multiple pins, you need to call `noTone
0 commit comments