Morse code was created in the 1800’s by Samuel Morse to transmit information over the telegraph. Messages can be transmitted by encoding words and numbers into a series long and short pulses, commonly referred to as ’dahs’ and ‘dits’.
Using Morse code is a quick and simple way to display error codes while developing code for your Unduino.
This library is easily integrated to your application by including MorseCode.c and MorseCode.h and then following the instructions in MorseCode.h
Instructions
- include MorseCode.c and MorseCode.h in your project.
- add #include”MorseCode.h” atop any file that will be calling this library
- set output pin in MorseCode.h by modifying MORSECODE_PIN and MORSECODE_TRIS
- set output active/inactive states in MORSECODE_PIN_ACTIVE and MORSECODE_PIN_INACTIVE
- set output rate in words per minute in MORSECODE_WPM
- in your startup code, call MorseCodeInit();
- use MorseCodePutChar() or MorseCodePutStr() to send a message.
For Example
MorseCodeInit(); //initialize the library
MorseCodePutChar( 'X' ); //send the X character
MorseCodePutStr( "HELLO" ); //send the string "HELLO"
Download: Morse Code Project Version Zero
0 Responses to “Morse Code Library”