/*
LUIZ GUSTAVO BARBOSA
2 ELN
/*
CABEÇALHO
/*
Utilizando as funções:
tone( pino , frequencia );
noTone( pino );
_ __ _ __ _ _ __ ___
| '_ \| |/ _` | '_ \ / _ \
| |_) | | (_| | | | | (_) |
| .__/|_|\__,_|_| |_|\___/
| |
|_|
|--------- CENTRAL -----------|
CSL DSL FSL GSL ASL CS DS FS GS AS CSH DSH FSH GSH ASH
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _
___//|_//|_____//|_//|_//|_____//|_//|_____//|_//|_//|_ ___//|_//|_____//|_//|_//|__
/ /// /// / /// /// /// / /// /// / /// /// /// / /// /// / /// /// /// /|
/ ||/ ||/ / ||/ ||/ ||/ / ||/ ||/ / ||/ ||/ ||/ / ||/ ||/ / ||/ ||/ ||/ / /
/___/___/___/___/___/___/___/___/___/___/___/___/___/___/___/___/___/___/___/___/___/ /
|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|/
CL DL EL FL GL AL BL C D E F G A B CH DH EH FH GH AH BH
440
Hz
CL = 131 Hz
CLS = 139 Hz
DL = 147 Hz
DLS = 156 Hz
EL = 165 Hz
FL = 175 Hz
FLS = 185 Hz
GL = 196 Hz
GLS = 208 Hz
AL = 220 Hz
ALS = 233 Hz
BL = 247 Hz
C = 261 Hz
CS = 277 Hz
D = 294 Hz
DS = 311 Hz
E = 329 Hz
F = 349 Hz
FS = 370 Hz
G = 391 Hz
GS = 415 Hz
A = 440 Hz
AS = 455 Hz
B = 466 Hz
CH = 523 Hz
CSH = 554 Hz
DH = 587 Hz
DSH = 622 Hz
EH = 659 Hz
FH = 698 Hz
FSH = 740 Hz
GH = 784 Hz
GSH = 830 Hz
AH = 880 Hz
ASH = 910 Hz
BH = 932 Hz
*/
//============== NOMEAR PINOS ===============
int speakerPin = 13; // Conecte o alto-falante ao pino 13 do Arduino
//=========== INCLUIR BIBLIOTECAS ===========
//=========== VARIÁVEIS E TABELAS ===========
//================ SUB-ROTINAS ==============
//================== SETUP ==================
void setup() {
pinMode(speakerPin, OUTPUT);
//---------- CONDIÇÕES INICIAIS ----------
}//fecha void setup()
//============== LOOP INFINITO ===============
void loop() {
// Tocar um tom por 1 segundo
tone(speakerPin, 261); // Frequência de 261Hz
delay(1000);
noTone(speakerPin); // Parar de tocar
delay(1000); // Esperar por 1 segundo
// Tocar um tom por 1 segundo
tone(speakerPin, 294); // Frequência de 261Hz
delay(1000);
noTone(speakerPin); // Parar de tocar
delay(1000); // Esperar por 1 segundo
// Tocar um tom por 1 segundo
tone(speakerPin, 329); // Frequência de 261Hz
delay(1000);
noTone(speakerPin); // Parar de tocar
delay(1000); // Esperar por 1 segundo
// Tocar um tom por 1 segundo
tone(speakerPin, 349); // Frequência de 261Hz
delay(1000);
noTone(speakerPin); // Parar de tocar
delay(1000); // Esperar por 1 segundo
// Tocar um tom por 1 segundo
tone(speakerPin, 371); // Frequência de 261Hz
delay(1000);
noTone(speakerPin); // Parar de tocar
delay(1000); // Esperar por 1 segundo
// Tocar um tom por 1 segundo
tone(speakerPin, 440); // Frequência de 261Hz
delay(1000);
noTone(speakerPin); // Parar de tocar
delay(1000); // Esperar por 1 segundo
// Tocar um tom por 1 segundo
tone(speakerPin, 466); // Frequência de 261Hz
delay(1000);
noTone(speakerPin); // Parar de tocar
delay(1000); // Esperar por 1 segundo
// Tocar um tom por 1 segundo
tone(speakerPin, 523); // Frequência de 261Hz
delay(1000);
noTone(speakerPin); // Parar de tocar
delay(1000); // Esperar por 1 segundo
// Tocar um tom por 1 segundo
tone(speakerPin, 587); // Frequência de 261Hz
delay(1000);
noTone(speakerPin); // Parar de tocar
delay(1000); // Esperar por 1 segundo
// Tocar um tom por 1 segundo
tone(speakerPin, 659); // Frequência de 261Hz
delay(1000);
noTone(speakerPin); // Parar de tocar
delay(1000); // Esperar por 1 segundo
// Tocar um tom por 1 segundo
tone(speakerPin, 698); // Frequência de 261Hz
delay(1000);
noTone(speakerPin); // Parar de tocar
delay(1000); // Esperar por 1 segundo
// Tocar um tom por 1 segundo
tone(speakerPin, 784); // Frequência de 261Hz
delay(1000);
noTone(speakerPin); // Parar de tocar
delay(1000); // Esperar por 1 segundo
// Tocar um tom por 1 segundo
tone(speakerPin, 880); // Frequência de 261Hz
delay(1000);
noTone(speakerPin); // Parar de tocar
delay(1000); // Esperar por 1 segundo
// Tocar um tom por 1 segundo
tone(speakerPin, 932); // Frequência de 261Hz
delay(1000);
noTone(speakerPin); // Parar de tocar
delay(1000); // Esperar por 1 segundo
// Tocar um tom por 1 segundo
tone(speakerPin, 1046); // Frequência de 261Hz
delay(1000);
noTone(speakerPin); // Parar de tocar
delay(1000); // Esperar por 1 segundo
}//fecha void loop()