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.

Committer:
eqon
Date:
Wed Sep 05 07:27:16 2012 +0000
Revision:
12:8f420e390452
Parent:
9:46e3084ad83d
Publish v1

Who changed what in which revision?

UserRevisionLine numberNew contents of line
eqon 9:46e3084ad83d 1 #include "mbed.h"
eqon 9:46e3084ad83d 2 #include "LEDout.h"
eqon 9:46e3084ad83d 3 int main()
eqon 9:46e3084ad83d 4 {
eqon 9:46e3084ad83d 5 LEDout led;
eqon 9:46e3084ad83d 6 led.blink(15,20);//Blink code 15, 20times, //noblocking, so code can continue
eqon 9:46e3084ad83d 7 for(int k=0; k<10; k++){
eqon 9:46e3084ad83d 8 printf("printing while blinking ;) \n");
eqon 9:46e3084ad83d 9 wait(1);
eqon 9:46e3084ad83d 10 }
eqon 9:46e3084ad83d 11 wait(2);
eqon 9:46e3084ad83d 12 led.blinks(1,3);//blocking, code 1, 3 blinks, code will not continue until blinks done
eqon 9:46e3084ad83d 13 led.blinkSet(2,3);//blocking, code stops here, blinks will continue blinking
eqon 9:46e3084ad83d 14 return 0;
eqon 9:46e3084ad83d 15 }