tiz

Dependencies:   TextLCD X_NUCLEO_IKS01A1 func mbed-src mbed

Fork of mas by esproj

func/Error.cpp

Committer:
herenvarno
Date:
2015-12-10
Revision:
1:1df80fe13928

File content as of revision 1:1df80fe13928:

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