Skip to content

Commit d8d7718

Browse files
committed
reorganized folders
1 parent b0bcba5 commit d8d7718

815 files changed

Lines changed: 48 additions & 48 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,48 @@
1-
/*
2-
* Example code to run auditory sweeping stimuli on FED3
3-
* January 2022
4-
* alexxai@wustl.edu
5-
*/
6-
7-
int tonePin = 14; //Set to 0 for internal beeper, or 14 for output connection
8-
9-
void setup ()
10-
{
11-
pinMode (tonePin, OUTPUT);
12-
}
13-
14-
void loop() {
15-
int i;
16-
17-
//Fast up sweep from 1Khz to 8Khz
18-
for (i = 1000; i <= 8000; i = i + 100) {
19-
tone(tonePin , i);
20-
delay(2);
21-
}
22-
noTone(tonePin);
23-
delay (1000);
24-
25-
//Fast down sweep from 8Khz to 1Khz
26-
for (i = 8000; i >= 1000; i = i - 100) {
27-
tone(tonePin, i);
28-
delay(2);
29-
}
30-
noTone(tonePin);
31-
delay (1000);
32-
33-
//Slow up sweep from 1Khz to 8Khz
34-
for (i = 1000; i <= 8000; i = i + 100) {
35-
tone(tonePin, i);
36-
delay(6);
37-
}
38-
noTone(tonePin);
39-
delay (1000);
40-
41-
//Slow down sweep from 8Khz to 1Khz
42-
for (i = 8000; i >= 1000; i = i - 100) {
43-
tone(tonePin, i);
44-
delay(6);
45-
}
46-
noTone(tonePin);
47-
delay (1000);
48-
}
1+
/*
2+
* Example code to run auditory sweeping stimuli on FED3
3+
* January 2022
4+
* alexxai@wustl.edu
5+
*/
6+
7+
int tonePin = 14; //Set to 0 for internal beeper, or 14 for output connection
8+
9+
void setup ()
10+
{
11+
pinMode (tonePin, OUTPUT);
12+
}
13+
14+
void loop() {
15+
int i;
16+
17+
//Fast up sweep from 1Khz to 8Khz
18+
for (i = 1000; i <= 8000; i = i + 100) {
19+
tone(tonePin , i);
20+
delay(2);
21+
}
22+
noTone(tonePin);
23+
delay (1000);
24+
25+
//Fast down sweep from 8Khz to 1Khz
26+
for (i = 8000; i >= 1000; i = i - 100) {
27+
tone(tonePin, i);
28+
delay(2);
29+
}
30+
noTone(tonePin);
31+
delay (1000);
32+
33+
//Slow up sweep from 1Khz to 8Khz
34+
for (i = 1000; i <= 8000; i = i + 100) {
35+
tone(tonePin, i);
36+
delay(6);
37+
}
38+
noTone(tonePin);
39+
delay (1000);
40+
41+
//Slow down sweep from 8Khz to 1Khz
42+
for (i = 8000; i >= 1000; i = i - 100) {
43+
tone(tonePin, i);
44+
delay(6);
45+
}
46+
noTone(tonePin);
47+
delay (1000);
48+
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)