dualchock3_bluetooth_program

Dependencies:   mbed SerialMultiByte

Files at this revision

API Documentation at this revision

Comitter:
LVRhase01
Date:
Sat Jan 23 13:04:42 2021 +0000
Parent:
1:4975fece403d
Commit message:
changed deta to data.

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 4975fece403d -r b2298d306097 main.cpp
--- a/main.cpp	Wed Oct 14 11:32:49 2020 +0000
+++ b/main.cpp	Sat Jan 23 13:04:42 2021 +0000
@@ -8,11 +8,11 @@
 {
     arduino.setHeaders(127,127);
     arduino.startReceive(8);//
-    uint8_t deta[9];
+    uint8_t data[9];
     while(true) {
-        arduino.getData(deta);
+        arduino.getData(data);
         for (uint8_t i = 0; i < 8; i++) {
-            pc.printf("%d",deta[i]);
+            pc.printf("%d",data[i]);
             pc.printf("\t");
         }
         pc.printf("\n");