-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuzzy.ino
More file actions
executable file
·62 lines (60 loc) · 897 Bytes
/
buzzy.ino
File metadata and controls
executable file
·62 lines (60 loc) · 897 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
//Creating Buzzes to Make Music
int buzz = 13;
int c = 262;
int g= 392;
int a= 440;
int f =349;
int e = 330;
int d=294;
void setup() {
// put your setup code here, to run once:
pinMode(buzz,OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
for(int i=0;i<2;i++)
{
tone(buzz,c,300);
delay(300);
}
for(int i=0;i<2;i++)
{
tone(buzz,g,300);
delay(300);
}
for(int i=0;i<2;i++)
{
tone(buzz,a,300);
delay(300);
}
for(int i=0;i<1;i++)
{
tone(buzz,g,300);
delay(300);
}
for(int i=0;i<2;i++)
{
tone(buzz,f,300);
delay(300);
}
for(int i=0;i<2;i++)
{
tone(buzz,e,300);
delay(300);
}
for(int i=0;i<2;i++)
{
tone(buzz,d,300);
delay(300);
}
for(int i=0;i<1;i++)
{
tone(buzz,c,300);
delay(300);
}
for(int i=0;i<2;i++)
{
tone(buzz,c,300);
delay(300);
}
}