RN-42XVPでRFCOMMを行うサンプルプログラム。LPC1768のオンボードLEDを受信電文によって点灯・消灯させる。

Dependencies:   mbed

Fork of RN-42XVPsample by suu pen

Files at this revision

API Documentation at this revision

Comitter:
nobukuma
Date:
Thu Oct 30 17:33:04 2014 +0000
Parent:
3:85b75e8e09fc
Commit message:
???????

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 85b75e8e09fc -r 40619324a996 main.cpp
--- a/main.cpp	Wed Oct 29 20:54:51 2014 +0000
+++ b/main.cpp	Thu Oct 30 17:33:04 2014 +0000
@@ -1,4 +1,6 @@
 /*
+  RN-42XVPによるRFCOMM通信のサンプルプログラム(mbed側)
+    ・受け取った電文の1-4ビット目でLPC1768のLED1-4を点灯・消灯させる
 
 RN-42XVP   LPC1768
 -------------------
@@ -6,13 +8,11 @@
 Pin2       p14(rx) or p10
 Pin3       p13(tx) or p9
 Pin10      GND   
-
 */
 #include "mbed.h"
 
 BusOut leds(LED1, LED2, LED3, LED4);
-
-Serial pc(USBTX, USBRX); // (tx, rx) 
+Serial pc(USBTX, USBRX); // For Debug
 Serial xbee(p9, p10);    // RN-42XVP
 
 int main()