mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-17 11:54:33 +01:00
Added tone example
This commit is contained in:
parent
dc944e1629
commit
6ca75b361e
@ -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:
|
// notes in the melody:
|
||||||
int melody[] = {
|
int melody[] = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user