Nobuaki Aoki / Mbed 2 deprecated RN-42XVPsample

Dependencies:   mbed

Fork of RN-42XVPsample by suu pen

Files at this revision

API Documentation at this revision

Comitter:
nobukuma
Date:
Wed Oct 29 20:54:51 2014 +0000
Parent:
2:f50bbef12435
Child:
4:40619324a996
Commit message:
0x0f?????????

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Wed Oct 29 20:20:22 2014 +0000
+++ b/main.cpp	Wed Oct 29 20:54:51 2014 +0000
@@ -18,15 +18,16 @@
 int main()
 {
     uint8_t rawData;
-    uint8_t newData;
-
+ 
     xbee.baud(115200);
 
     while(1) {
         if (xbee.readable() == 1) {
             rawData = xbee.getc();
             pc.printf("rawData = %02x\n", rawData);
-            leds = rawData;            
+            if (rawData <= 0x0f) {
+                leds = rawData;
+            }
         }
     }
 }