tiz
Dependencies: TextLCD X_NUCLEO_IKS01A1 func mbed-src mbed
Fork of mas by
Diff: func/Error.cpp
- Revision:
- 1:1df80fe13928
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/func/Error.cpp Thu Dec 10 18:51:28 2015 +0000 @@ -0,0 +1,17 @@ +#include "Error.h" + +void raise_error(ErrorCode ec) +{ + DigitalOut led(LED1); + while(1) + { + for(int i=0; i<=ec; i++) + { + led=1; + wait(0.3); + led=0; + wait(0.3); + } + wait(2); + } +} \ No newline at end of file