Library to show error code with MBED leds. Decimal error code 1-15 can be set

Dependencies:   mbed

This library can show Your error code (integer 1-15) on MBED Leds.

Revision:
4:74c0b4be19a9
Parent:
3:cbca11570652
Child:
5:1e36a6806e12
--- a/LEDout.h	Wed Sep 05 06:47:09 2012 +0000
+++ b/LEDout.h	Wed Sep 05 06:52:30 2012 +0000
@@ -1,17 +1,35 @@
 #include "mbed.h"
 
-/**
+/**Library to show error code with MBED leds.
 *@file LEDout.h
-*@brief Library to show error code with MBED leds.
+@code
+#include "mbed.h"
+#include "LEDout.h"
+int main()
+{
+    LEDout led;
+    led.blink(15,20);//Blink code 15, 20times, //noblocking, so code can continue
+    for(int k=0; k<10; k++){
+        printf("printing while blinking ;) \n");
+        wait(1);
+    }
+    wait(2);
+    led.blinks(1,3);//blocking, code 1, 3 blinks, code will not continue  until blinks done
+    led.blinkSet(2,3);//blocking, code stops here, blinks will continue blinking
+    return 0;
+}
+@endcode
 *@author Egon
 *@date 9/5/2012
 */
+
+
+
 class LEDout : public BusOut
 {
 public:
     /** 
     *Create a LEDout object
-    * @file LEDout.h
     */
 
     LEDout():BusOut(LED1,LED2,LED3,LED4) {
@@ -20,10 +38,8 @@
         _blankwait=2; //sec
         //  printf("Ledout init\n");
     }
-    /** 
-    
+    /**    
     *   Non-blocking process blink
-    * @file LEDout.h
     *  @param cmd 1-15
     *  @param cnt how many times to blink
     *  @param dur blink interval default 0.2sec
@@ -43,7 +59,6 @@
     }
     /*
     * Blocking process blink
-    * @file LEDout.h
     *  @param cmd 1-15
     *  @param cnt how many times to blink
     *  @param dur blink interval default 0.2sec
@@ -56,9 +71,7 @@
             wait(dur);
         }
     }
-    /*
-    * Blocking process and end with loop
-    * @file LEDout.h
+    /** Blocking process and end with loop
     *  @param cmd 1-15
     *  @param cnt how many times to blink
     *  @param dur blink interval default 0.2sec