Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: MorseGenerator_Example2 9v1
Revision 1:bad1b4ca49df, committed 2014-09-17
- Comitter:
- screamer
- Date:
- Wed Sep 17 17:09:04 2014 +0300
- Parent:
- 0:0ad54d10593c
- Commit message:
- * fixed - main.h usage
Changed in this revision
MorseGenerator.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r 0ad54d10593c -r bad1b4ca49df MorseGenerator.h --- 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.