Small Demo demonstrating BLE Advertising
Dependencies: BLE_API X_NUCLEO_IDB0XA1 mbed
Fork of BLE_HeartRate_IDB0XA1 by
bricks/blink.h@27:09ec26511db8, 2016-12-11 (annotated)
- Committer:
- hux
- Date:
- Sun Dec 11 19:18:02 2016 +0000
- Revision:
- 27:09ec26511db8
- Parent:
- 22:e82c7b8a6072
Fine tuning of Blob class; looking very smart now!
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
hux | 22:e82c7b8a6072 | 1 | // blink.h - blinking sequences for LED1 |
hux | 22:e82c7b8a6072 | 2 | #ifndef _BLINK_H_ |
hux | 22:e82c7b8a6072 | 3 | #define _BLINK_H_ |
hux | 22:e82c7b8a6072 | 4 | |
hux | 22:e82c7b8a6072 | 5 | #include <mbed.h> |
hux | 22:e82c7b8a6072 | 6 | |
hux | 27:09ec26511db8 | 7 | # define IDLE "x " // 'idle' blinking sequence |
hux | 27:09ec26511db8 | 8 | # define ADVERTISE "x xxx " // 'advertise' blinking sequence |
hux | 27:09ec26511db8 | 9 | # define ACTION "x x x x x " // 'action' blinking sequence |
hux | 27:09ec26511db8 | 10 | # define FAULT "x x x x xxx " // 'fault' blinking sequence |
hux | 27:09ec26511db8 | 11 | |
hux | 22:e82c7b8a6072 | 12 | void morse(const char *pattern, double periode = 0.2); |
hux | 27:09ec26511db8 | 13 | void blink(const char *pattern, const char* next, double interval = 0.2); |
hux | 27:09ec26511db8 | 14 | void blink(const char *pattern, double periode = 0.2); |
hux | 22:e82c7b8a6072 | 15 | |
hux | 22:e82c7b8a6072 | 16 | #endif // _BLINK_H_ |