The example program for mbed pin-compatible platforms

Dependencies:   mbed

Fork of mbed_blinky by Mbed

Revision:
18:c70f8074d45e
Parent:
17:3dbf734d2731
Child:
19:56d79e19eb8d
--- a/main.cpp	Sun Aug 24 21:22:49 2014 +0000
+++ b/main.cpp	Sun Aug 24 21:26:06 2014 +0000
@@ -9,7 +9,8 @@
     char* output = "Hello World";
     char outputLength = strlen(output);
     char strpos = 0;
-    float timeUnit = 0.092f;
+    const float period13WPM = 0.092f;
+    float timeUnit = period13WPM/2;
     while(strpos < outputLength) { // for each character in string
         MorseCharacter morseChar(output[strpos]);
         char morseParts = morseChar.getNumberOfParts();