This library includes use cases which can be used for replicating BLE use caes.
Revision 3:9e23792d3d5a, committed 2014-09-25
- Comitter:
- hemddabral
- Date:
- Thu Sep 25 12:54:44 2014 +0000
- Parent:
- 2:c6894656d2f1
- Commit message:
- interrupt experiment added
Changed in this revision
--- /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
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/TestScenarios.h Thu Sep 25 12:54:44 2014 +0000 @@ -0,0 +1,6 @@ +#ifndef __TEST_SCENARIOS_H__ +#define __TEST_SCENARIOS_H__ + +void setLED(); + +#endif // __TEST_SCENARIOS_H__ \ No newline at end of file
--- a/main.cpp Thu Sep 25 11:55:16 2014 +0000 +++ b/main.cpp Thu Sep 25 12:54:44 2014 +0000 @@ -1,7 +1,9 @@ #include "UseCases.h" +#include "TestScenarios.h" int main() { - multipleServiceUseCase(); + //multipleServiceUseCase(); + setLED(); }