A nice BLE demo program which allows remote switch of an LED via GATT interface.

Dependencies:   BLE_API mbed nRF51822

Fork of BLE_Button by Bluetooth Low Energy

Revision:
11:80f2c19ecbce
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bricks/blink.h	Sat Jan 07 23:48:53 2017 +0000
@@ -0,0 +1,17 @@
+// blink.h - blinking sequences for LED1
+#ifndef _BLINK_H_
+#define _BLINK_H_
+
+#include <mbed.h>
+
+#  define IDLE      "x       "           // 'idle' blinking sequence
+#  define ADVERTISE "x xxx       "       // 'advertise' blinking sequence
+#  define CONNECTED "  xxx       "       // 'connected' blinking sequence
+#  define ACTION    "x x x x x       "   // 'action' blinking sequence
+#  define FAULT     "x x x x xxx "       // 'fault' blinking sequence
+
+   void morse(const char *pattern, double periode = 0.2);
+   void blink(const char *pattern, const char* next, double interval = 0.2);
+   void blink(const char *pattern, double periode = 0.2);
+
+#endif // _BLINK_H_
\ No newline at end of file