Skip to content

Commit 97ae6fd

Browse files
author
Stefania
authored
Merge pull request #31 from robsoncouto/patch-26
Translated tone() function
2 parents cd7a548 + f66c1ad commit 97ae6fd

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed
Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: tone()
33
categories: [ "Functions" ]
4-
subCategories: [ "Advanced I/O" ]
4+
subCategories: [ "Entradas e Saídas Avançadas" ]
55
---
66

77
:source-highlighter: pygments
@@ -17,36 +17,36 @@ subCategories: [ "Advanced I/O" ]
1717
--
1818

1919
[float]
20-
=== Description
21-
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.
2222

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.
2424

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).
2626

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)].
2828
[%hardbreaks]
2929

3030

3131
[float]
32-
=== Syntax
33-
`tone(pin, frequency)`
32+
=== Sintaxe
33+
`tone(pino, frequência)`
3434

35-
`tone(pin, frequency, duration)`
35+
`tone(pino, frequência, duração)`
3636
[%hardbreaks]
3737

3838
[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
4141

42-
`frequency`: the frequency of the tone in hertz - `unsigned int`
42+
`frequência`: a frequência do tom em Hertz - `unsigned int`
4343

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`
4545
[%hardbreaks]
4646

4747
[float]
48-
=== Returns
49-
Nothing
48+
=== Retorna
49+
Nada
5050

5151
--
5252
// OVERVIEW SECTION ENDS
@@ -59,8 +59,8 @@ Nothing
5959
--
6060

6161
[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.
6464
[%hardbreaks]
6565

6666
--
@@ -72,17 +72,17 @@ If you want to play different pitches on multiple pins, you need to call `noTone
7272
--
7373

7474
[float]
75-
=== See also
75+
=== Ver Também
7676

7777
[role="language"]
78-
* #LANGUAGE# link:../../analog-io/analogwrite[analogWrite()]
78+
* #LINGUAGEM# link:../../analog-io/analogwrite[analogWrite()]
7979

8080
[role="example"]
81-
* #EXAMPLE# http://arduino.cc/en/Tutorial/Tone[Tone^]
82-
* #EXAMPLE# http://arduino.cc/en/Tutorial/Tone[Pitch follower^]
83-
* #EXAMPLE# http://arduino.cc/en/Tutorial/Tone3[Simple Keyboard^]
84-
* #EXAMPLE# http://arduino.cc/en/Tutorial/Tone4[multiple tones^]
85-
* #EXAMPLE# http://arduino.cc/en/Tutorial/PWM[PWM^]
81+
* #EXEMPLO# http://arduino.cc/en/Tutorial/Tone[Tone^]
82+
* #EXEMPLO# http://arduino.cc/en/Tutorial/Tone[Pitch follower^]
83+
* #EXEMPLO# http://arduino.cc/en/Tutorial/Tone3[Simple Keyboard^]
84+
* #EXEMPLO# http://arduino.cc/en/Tutorial/Tone4[multiple tones^]
85+
* #EXEMPLO# http://arduino.cc/en/Tutorial/PWM[PWM^]
8686

8787
--
88-
// SEE ALSO SECTION ENDS
88+
// SEE ALSO SECTION ENDS

0 commit comments

Comments
 (0)