This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| %\title{Reporte Experimento X} | |
| \documentclass[12pt,letterpaper]{article} % Tipo de documento y otras especificaciones | |
| \usepackage[utf8]{inputenc} % Para escribir tildes y eñes | |
| \usepackage[spanish]{babel} % Para que los títulos de figuras, tablas y otros estén en español | |
| \addto\captionsspanish{\renewcommand{\tablename}{Tabla}} % Cambiar nombre a tablas | |
| \addto\captionsspanish{\renewcommand{\listtablename}{Índice de tablas}} % Cambiar nombre a lista de tablas | |
| \usepackage{geometry} | |
| \geometry{left=18mm,right=18mm,top=21mm,bottom=21mm} % Tamaño del área de escritura de la página | |
| \usepackage{ucs} | |
| \usepackage{amsmath} % Los paquetes ams son desarrollados por la American Mathematical Society |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define C0 16.35 | |
| #define Db0 17.32 | |
| #define D0 18.35 | |
| #define Eb0 19.45 | |
| #define E0 20.60 | |
| #define F0 21.83 | |
| #define Gb0 23.12 | |
| #define G0 24.50 | |
| #define Ab0 25.96 | |
| #define LA0 27.50 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| int ledPin = 13; | |
| //led for visualization (use 13 for built-in led) | |
| int speakerPin = 11; | |
| //speaker connected to one of the PWM ports | |
| #define c 261 | |
| #define d 294 | |
| #define e 329 | |
| #define f 349 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| int speakerPin = 5; | |
| int length = 26; | |
| char notes[] = "eeeeeeegcde fffffeeeeddedg"; | |
| int beats[] = { 1, 1, 2, 1, 1, 2, 1, 1, 1, 1, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2}; | |
| int tempo = 300; | |
| void playTone(int tone, int duration) { | |
| for (long i = 0; i < duration * 1000L; i += tone * 2) { | |
| digitalWrite(speakerPin, HIGH); | |
| delayMicroseconds(tone); |