收到xy自动缩放

Dependencies:   MQTT SDFileSystem WIZnet_Library mbed

Fork of wmx_laser by w mx

Revision:
10:3c154d398def
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test.txt	Fri Aug 03 09:45:20 2018 +0000
@@ -0,0 +1,22 @@
+int numbers[100][3];
+void str2numbers(char buf[])
+{
+    pc.printf("%s\r\n",buf);
+    char *p = buf;
+    int index = 0;
+    int a,x,y,z;
+    while(true)
+    {
+        p = strchr(p, '(');
+        if(!p) break;
+        p++;
+        sscanf(p, "%d%d%d",&x,&y,&z);
+        pc.printf("%d %d %d \r\n",x,y,z);
+        numbers[index][0] = x;
+        numbers[index][1] = y;
+        numbers[index][2] = z;
+        index++;
+}
+    
+}
+            
\ No newline at end of file