A MorseGenerator library example

Dependencies:   MorseGenerator2 mbed

Files at this revision

API Documentation at this revision

Comitter:
wm
Date:
Wed Sep 17 13:34:46 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	Wed Sep 17 13:34:46 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/teams/Training/code/MorseGenerator2/#0ad54d10593c
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Wed Sep 17 13:34:46 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	Wed Sep 17 13:34:46 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/552587b429a1
\ No newline at end of file