A morse generator example

Dependencies:   MorseGenerator mbed

Files at this revision

API Documentation at this revision

Comitter:
screamer
Date:
Tue Sep 16 15:04:40 2014 +0000
Commit message:
Initial revision

Changed in this revision

MorseGenerator.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MorseGenerator.lib	Tue Sep 16 15:04:40 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/teams/Training/code/MorseGenerator/#e6269370b33f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Sep 16 15:04:40 2014 +0000
@@ -0,0 +1,16 @@
+#include "mbed.h"
+#include "MorseGenerator.h"
+
+DigitalOut myled(LED1);
+
+void morse_callback(int val) {
+    myled = val;
+}
+
+int main() {
+    MorseGenerator morse = MorseGenerator(morse_callback);
+
+    while (1) {
+        morse.transmit("CQCQ DE M6SPX");
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Sep 16 15:04:40 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/552587b429a1
\ No newline at end of file