This is a simple class written to flash out morse code. It can be used to flash out data from the terminal or from a buffer
Diff: MorseCode.h
- Revision:
- 0:c3c4f0cd78cd
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MorseCode.h Wed Sep 18 16:27:24 2013 +0000 @@ -0,0 +1,20 @@ +#include "mbed.h" + +class MorseCode{ + public: + MorseCode(PinName pin); + + void blink_buffer (unsigned char * Pbuffer); + bool Print_ASCII_Char(unsigned char letter); + float get_unit(); + void set_unit(float); + + private : + // objects + DigitalOut _pin; + void blink_letter (unsigned int letter); + void Dash(); + void Dot(); + +}; +