手柄测试

Dependencies:   mbed nRF24L01P

Fork of nRF24L01P_Hello_World by YX ZHANG

Revision:
2:1199904d820e
Parent:
1:5be2682710c6
Child:
3:61afd8d17063
--- 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)