Data Sheet
Core Spartan Documentation Modern Robotics, Inc
Version 3.0.3 Page 53
void setSoundBlocking(int level, int frequency, int length, int post_pause)
This function allows the user to set the volume, pitch and duration all in a single
call with a blocking function feature. What makes this function different from
setSound() is that this function blocks other actions while a sound is being
played. Therefore while a sound is being played via this function, no other code
will run. The parameter post_pause is the time after the tone is complete that
the program will wait before proceeding to the next line of code.
beep.setSoundBlocking(LOW, 1350, 9500, 100);
beep.setSoundBlocking(MAX, 2000, 5000, 250);
void morseCode(unsigned char statement, int level, int frequency,)
This function takes in a character string and plays the corresponding Morse Code
beeps. The character string can only contain alphanumeric characters (A-Z, a-z,
0-9).
beep.morseCode(“Hello World”, MEDIUM, 1500);
beep.morseCode(“abc 123 ABC”, HIGH, 3000);
A
•―
M
――
Y
―•――
B
―•••
N
―•
Z
――••
C
―•―•
O
―――
1
•――――
D
―••
P
•――•
2
••―――
E
•
Q
――•―
3
•••――
F
••―•
R
•―•
4
••••―
G
――•
S
•••
5
•••••
H
••••
T
―
6
―••••
I
••
U
••―
7
――•••
J
•―――
V
•••―
8
―――••
K
―•―
W
•――
9
――――•
L
•―••
X
―••―
0
―――――










