Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Setting up a construct for playing morse code
void playLetter(char x)
switch (x):
case 'E':
dit(); return;
case 'T':
dah(); return;
case 'A':
di();dah(); return;
case 'O':
dah();dah();dah(); return;
/*Insert more alphabets here*/
case ' ':
/* We've inserted the wordSpace delay to make sure it relaxes when the letter is a space */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment