Adafruit Bluefruit with KL25Z

Dependencies:   BLE_nRF8001 mbed

Simple implementation of UART on FRDM KL25Z board with nRF8001 Adafruit breakout. Uses RedBearLabs Library and could be made to work with their BLE Shield.

UART Characteristics can be changed to work with either RedBearLabs BLE Controller app or using the Nordic settings the nRF apps or the Adafruit Bluefruit LE apps.

Revision:
1:b394935d1db1
Parent:
0:3e21be32c98b
Child:
2:e6d7390d4429
--- a/main.cpp	Thu Mar 09 16:56:23 2017 +0000
+++ b/main.cpp	Thu Mar 09 22:14:23 2017 +0000
@@ -36,13 +36,14 @@
 SPI spi(PTD2, PTD3, PTD1);    // MOSI , MISO , SCLK  
 DigitalInOut BLE_RDY(PTD5);  // 
 DigitalInOut BLE_REQ(PTD0);   // 
+DigitalInOut BLE_RESET(PTA13); 
 
 unsigned char txbuf[16] = {0};
 unsigned char txlen = 0;
 
 /*----- BLE Utility -------------------------------------------------------------------------*/
 // create peripheral instance, see pinouts above
-BLEPeripheral            blePeripheral        = BLEPeripheral(&BLE_REQ, &BLE_RDY, NULL);
+BLEPeripheral            blePeripheral        = BLEPeripheral(&BLE_REQ, &BLE_RDY, &BLE_RESET);
 
 // create service
 BLEService               uartService          = BLEService("713d0000503e4c75ba943148f18d941e");