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.

main.cpp

Committer:
eqon
Date:
2012-09-05
Revision:
9:46e3084ad83d

File content as of revision 9:46e3084ad83d:

#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;
}