servom

Dependents:   servomotore progetto8 progetto9 progetto10 ... more

Revision:
0:a62b163b1dbb
diff -r 000000000000 -r a62b163b1dbb SG90.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SG90.h	Sat Apr 05 07:56:43 2014 +0000
@@ -0,0 +1,24 @@
+#ifndef SG90_H
+#define SG90_H
+#include "mbed.h"
+#include "PwmOut.h"
+
+class servo {
+    
+public:
+
+PwmOut pwm1, pwm2, pwm3, pwm4;
+servo();
+
+
+void init();
+void right(int);
+void left(int);
+void position(int, int);
+
+int s1, s2, s3, s4;
+
+
+
+};
+#endif
\ No newline at end of file