tiz

Dependencies:   TextLCD X_NUCLEO_IKS01A1 func mbed-src mbed

Fork of mas by esproj

Committer:
herenvarno
Date:
Tue Aug 23 15:59:59 2016 +0000
Revision:
5:100310ea8fba
Parent:
1:1df80fe13928
final

Who changed what in which revision?

UserRevisionLine numberNew contents of line
herenvarno 1:1df80fe13928 1 #include "Error.h"
herenvarno 1:1df80fe13928 2
herenvarno 1:1df80fe13928 3 void raise_error(ErrorCode ec)
herenvarno 1:1df80fe13928 4 {
herenvarno 1:1df80fe13928 5 DigitalOut led(LED1);
herenvarno 1:1df80fe13928 6 while(1)
herenvarno 1:1df80fe13928 7 {
herenvarno 1:1df80fe13928 8 for(int i=0; i<=ec; i++)
herenvarno 1:1df80fe13928 9 {
herenvarno 1:1df80fe13928 10 led=1;
herenvarno 1:1df80fe13928 11 wait(0.3);
herenvarno 1:1df80fe13928 12 led=0;
herenvarno 1:1df80fe13928 13 wait(0.3);
herenvarno 1:1df80fe13928 14 }
herenvarno 1:1df80fe13928 15 wait(2);
herenvarno 1:1df80fe13928 16 }
herenvarno 1:1df80fe13928 17 }