123

Dependencies:   mbed

Fork of Boboobooo by Clark Lin

Revision:
0:68c173249c01
Child:
6:b046d6ff3745
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