This library includes use cases which can be used for replicating BLE use caes.
Diff: Interrupt.cpp
- Revision:
- 3:9e23792d3d5a
diff -r c6894656d2f1 -r 9e23792d3d5a Interrupt.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Interrupt.cpp Thu Sep 25 12:54:44 2014 +0000 @@ -0,0 +1,19 @@ +#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); + } +} \ No newline at end of file