This library includes use cases which can be used for replicating BLE use caes.

Interrupt.cpp

Committer:
hemddabral
Date:
2014-09-25
Revision:
3:9e23792d3d5a

File content as of revision 3:9e23792d3d5a:

#include "mbed.h"

DigitalOut led1(LED2);

void cb1(void) { 
    led2 = 1;
    wait(3);
    led2 = 0;
}

void setLED() { 

    while(1) {
        led1 = 1;
        wait(0.05);
        led1 = 0;
        wait(0.95);
    }
}