pepe

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers LED.cpp Source File

LED.cpp

00001 #include "alarma.h"
00002 #include "mbed.h"
00003 
00004 void LED(int a){
00005     if(a == 1){
00006         Indicador = 1;
00007         wait(0.2);
00008         Indicador = 0;
00009         wait(0.2);
00010     }
00011     else if(a == 2)
00012         Indicador = 1;
00013     else
00014         Indicador = 0;
00015     return;
00016 }