Using at Craft Club

Dependencies:   FatFileSystem mbed

Revision:
1:f0b59bec1d9b
Parent:
0:606b230e5b4a
--- a/TestShell.cpp	Sat Apr 10 00:30:24 2010 +0000
+++ b/TestShell.cpp	Tue Jan 27 17:06:52 2015 +0000
@@ -29,6 +29,7 @@
 #include "Utils.h"
 #include "USBHost.h"
 #include "hci.h"
+void PWM_Control(int pad,int x,int y,int z);
 
 void printf(const BD_ADDR* addr)
 {
@@ -131,7 +132,7 @@
                     int x = (d[2] & 0x60) >> 5 | d[4] << 2;
                     int y = (d[3] & 0x20) >> 4 | d[5] << 2;
                     int z = (d[3] & 0x40) >> 5 | d[6] << 2;
-                    printf("WII %04X %d %d %d\n",pad,x,y,z);
+                    PWM_Control(pad,x,y,z);
                 }
                 break;
                 default: