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
Diff: bricks/target.h
- Revision:
- 12:0d0ca44397dd
- Parent:
- 11:80f2c19ecbce
diff -r 80f2c19ecbce -r 0d0ca44397dd bricks/target.h --- a/bricks/target.h Sat Jan 07 23:48:53 2017 +0000 +++ b/bricks/target.h Sat Oct 21 19:55:47 2017 +0000 @@ -3,6 +3,8 @@ #ifndef _BRICKS_TARGET_H_ #define _BRICKS_TARGET_H_ +#define MTCONNECT04 // MtM nRF51822 module MtConnect04 + // platform specific defines - comment out platforms which are not used // We work only with two kinds of platform: // @@ -16,4 +18,8 @@ # define LED_INVERTED // inverted LED for nRF51 targets #endif +#ifdef MTCONNECT04 +# define BLINK_LED p16 +#endif + #endif // _BRICKS_TARGET_H_