Added tone example

This commit is contained in:
Tom Igoe 2010-01-21 19:11:01 +00:00
parent dc944e1629
commit 6ca75b361e
1 changed files with 15 additions and 1 deletions

View File

@ -1,4 +1,18 @@
#include "pitches.h"
/*
Melody
Plays a melody
circuit:
* 8-ohm speaker on digital pin 8
created 21 Jan 2010
by Tom Igoe
http://arduino.cc/en/Tutorial/Tone
*/
#include "pitches.h"
// notes in the melody:
int melody[] = {