QQQ

Dependencies:   mbed-rtos mbed

Fork of BX-car_s by Tony Lin

Revision:
0:68c173249c01
Child:
9:33b99cb45e99
diff -r 000000000000 -r 68c173249c01 servo_api.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/servo_api.h	Sun May 25 12:41:59 2014 +0000
@@ -0,0 +1,31 @@
+
+
+
+#include "mbed.h"
+
+
+
+class BX_servo{
+    
+    
+    public:
+        int set_angle(int a);
+    
+        BX_servo(void);
+    
+    
+    
+    
+    
+    
+    
+    private:
+    
+        //-90~0~90
+        int angle ;
+    
+        PwmOut* servo_in;
+         //0~36  // 18 mid  
+        float angle_level[37];
+    
+    };
\ No newline at end of file