This program demonstrate how to apply BLE_nRF8001 library on mbed platform working with RedBearLab BLE Shield v2.1 or above. Works on Nucleo F401RE with the 2012.07 shield. Need to press reset
Dependencies: BLE_nRF8001 mbed
Fork of nRF8001_SimpleChat by
Diff: main.cpp
- Revision:
- 1:9c7f54eff5de
- Parent:
- 0:c9d37cf1551c
--- a/main.cpp Wed Oct 22 04:25:26 2014 +0000 +++ b/main.cpp Thu Feb 11 21:14:14 2016 +0000 @@ -32,9 +32,10 @@ // The SPI construct, REQN and RDYN IO construct should be modified manually // It depend on the board you are using and the REQN&RDYN configuration on BLE Shield -SPI spi(PTD2, PTD3, PTD1); -DigitalInOut BLE_RDY(PTA12); -DigitalInOut BLE_REQ(PTA2); +// config for Nucleo 401RE +SPI spi(PA_7, PA_6, PA_5); +DigitalInOut BLE_RDY(PA_9); // D8 +DigitalInOut BLE_REQ(PC_7); // D9 unsigned char txbuf[16] = {0}; unsigned char txlen = 0;