A MorseGenerator library that uses LED to blink morse code
Dependents: MorseGenerator_Example2 9v1
Diff: MorseGenerator.h
- Revision:
- 1:bad1b4ca49df
- Parent:
- 0:0ad54d10593c
--- a/MorseGenerator.h Wed Sep 17 13:29:39 2014 +0000 +++ b/MorseGenerator.h Wed Sep 17 17:09:04 2014 +0300 @@ -18,7 +18,6 @@ * Example: * @code * #include "mbed.h" - * #include "main.h" * #include "morsegenerator.h" * * DigitalOut myled(p18); @@ -26,10 +25,10 @@ * void morse_callback(int val) { * myled = val; * } - * + * * int main() { * MorseGenerator morse = MorseGenerator(morse_callback); - * + * * while (1) { * morse.transmit("CQCQ DE M6SPX"); * } @@ -39,7 +38,7 @@ class MorseGenerator { MapType morse_map; callback_type callback; - + void generate_morse_map(); void add_mappings(string morse_chars, const string morse_codes[]); public: @@ -48,13 +47,13 @@ * @param callback called when turning on or off. */ MorseGenerator(callback_type callback); - + /** transmit a string * * @param message to transmit. */ void transmit(string message); - + /** transmit a char * * @param char to transmit.