Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
somo-ii-lib
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Patrick Fenner
somo-ii-lib
Commits
c65f08f9
Commit
c65f08f9
authored
May 27, 2016
by
Patrick Fenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
and countdown test
parent
73cc1a75
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
examples/play_test/play_test.ino
examples/play_test/play_test.ino
+32
-0
No files found.
examples/play_test/play_test.ino
0 → 100644
View file @
c65f08f9
#include <SoftwareSerial.h>
#include <SOMO_II.h>
// set up a new serial object
SoftwareSerial
mySerial
=
SoftwareSerial
(
8
,
9
);
SOMO_II
mp3
=
SOMO_II
(
mySerial
);
void
setup
()
{
mySerial
.
begin
(
9600
);
mp3
.
begin
();
Serial
.
begin
(
9600
);
Serial
.
println
(
F
(
"starting play_test"
));
}
void
loop
()
{
Serial
.
println
(
F
(
"playing countdown"
));
mp3
.
playFile
(
1
,
5
);
delay
(
1000
);
mp3
.
playFile
(
1
,
4
);
delay
(
1000
);
mp3
.
playFile
(
1
,
3
);
delay
(
1000
);
mp3
.
playFile
(
1
,
2
);
delay
(
1000
);
mp3
.
playFile
(
1
,
1
);
delay
(
1000
);
mp3
.
playFile
(
1
,
6
);
delay
(
1000
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment