Entradas

Mostrando entradas de septiembre, 2019

Código de nuestro piano arduino

Código para la placa Arduino /*   Melody   Plays a melody   circuit:   - 8 ohm speaker on digital pin 8   created 21 Jan 2010   modified 30 Aug 2011   by Tom Igoe   This example code is in the public domain.   http://www.arduino.cc/en/Tutorial/Tone */ /*************************************************  * Public Constants  *************************************************/ #define NOTE_B0  31 #define NOTE_C1  33 #define NOTE_CS1 35 #define NOTE_D1  37 #define NOTE_DS1 39 #define NOTE_E1  41 #define NOTE_F1  44 #define NOTE_FS1 46 #define NOTE_G1  49 #define NOTE_GS1 52 #define NOTE_A1  55 #define NOTE_AS1 58 #define NOTE_B1  62 #define NOTE_C2  65 #define NOTE_CS2 69 #define NOTE_D2  73 #define NOTE_DS2 78 #define NOTE_E2  82 #define NOTE_F2  87...