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

Committer:
hemddabral
Date:
Thu Sep 25 12:54:44 2014 +0000
Revision:
3:9e23792d3d5a
interrupt experiment added

Who changed what in which revision?

UserRevisionLine numberNew contents of line
hemddabral 3:9e23792d3d5a 1 #include "mbed.h"
hemddabral 3:9e23792d3d5a 2
hemddabral 3:9e23792d3d5a 3 DigitalOut led1(LED2);
hemddabral 3:9e23792d3d5a 4
hemddabral 3:9e23792d3d5a 5 void cb1(void) {
hemddabral 3:9e23792d3d5a 6 led2 = 1;
hemddabral 3:9e23792d3d5a 7 wait(3);
hemddabral 3:9e23792d3d5a 8 led2 = 0;
hemddabral 3:9e23792d3d5a 9 }
hemddabral 3:9e23792d3d5a 10
hemddabral 3:9e23792d3d5a 11 void setLED() {
hemddabral 3:9e23792d3d5a 12
hemddabral 3:9e23792d3d5a 13 while(1) {
hemddabral 3:9e23792d3d5a 14 led1 = 1;
hemddabral 3:9e23792d3d5a 15 wait(0.05);
hemddabral 3:9e23792d3d5a 16 led1 = 0;
hemddabral 3:9e23792d3d5a 17 wait(0.95);
hemddabral 3:9e23792d3d5a 18 }
hemddabral 3:9e23792d3d5a 19 }