Skip to content

Instantly share code, notes, and snippets.

%\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
@Natlleli
Natlleli / MarchaImperial.ino
Last active January 19, 2017 03:21
Marcha Imperial enBuzzer con Arduino uno
#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
@Natlleli
Natlleli / marcha_imperial
Created January 19, 2017 03:19 — forked from tagliati/marcha_imperial
Marcha imperial para arduino
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
@Natlleli
Natlleli / jingle_bells.cc
Created January 19, 2017 03:17 — forked from elubow/jingle_bells.cc
Using a Piezo Element and Arduino, you can play jingle bells using this code sample.
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);