Ma Xiaobing / Mbed 2 deprecated nRF24L01Preceive

Dependencies:   BufferedSerial mbed nRF24L01P

Fork of nRF24L01P_Hello_World by YX ZHANG

Files at this revision

API Documentation at this revision

Comitter:
zhangyx
Date:
Sat May 06 04:46:18 2017 +0000
Parent:
1:5be2682710c6
Child:
3:61afd8d17063
Commit message:
test version

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Wed Jan 19 23:53:19 2011 +0000
+++ b/main.cpp	Sat May 06 04:46:18 2017 +0000
@@ -1,14 +1,16 @@
 #include "mbed.h"
 #include "nRF24L01P.h"
 
-Serial pc(USBTX, USBRX); // tx, rx
+Serial pc(USBTX, USBRX, 115200); // tx, rx
 
-nRF24L01P my_nrf24l01p(p5, p6, p7, p8, p9, p10);    // mosi, miso, sck, csn, ce, irq
+nRF24L01P my_nrf24l01p(D4, D5, D3, D7, D8, D6);    // mosi, miso, sck, csn, ce, irq
 
 DigitalOut myled1(LED1);
 DigitalOut myled2(LED2);
 
 int main() {
+    
+    pc.printf("init\r\n");
 
 // The nRF24L01+ supports transfers from 1 to 32 bytes, but Sparkfun's
 //  "Nordic Serial Interface Board" (http://www.sparkfun.com/products/9019)
--- a/mbed.bld	Wed Jan 19 23:53:19 2011 +0000
+++ b/mbed.bld	Sat May 06 04:46:18 2017 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/e2ac27c8e93e
+https://mbed.org/users/mbed_official/code/mbed/builds/794e51388b66
\ No newline at end of file