Servo Motor Kutuphanesi(Library)

Dependents:   RTOS_servo_motor step_servo_potile_motor thread_servo_led

Revision:
0:a693d4a007d6
Child:
1:d9dc08980d89
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/servo.h	Sun Dec 15 18:43:39 2019 +0000
@@ -0,0 +1,80 @@
+
+/*
+
+Kutuphaneyi yazan(Author): Egitimci/Yazar - Mehmet Akif ARVAS
+
+Yazarin Kitaplari:
+
+Arm islemci Programlama - Seckin Yayincilik
+Buy(Satın alma linki): https://www.seckin.com.tr/kitap/926844928
+
+Arduino ile robotik programlama - Seckin Yayincilik
+Buy(Satın alma linki): https://www.seckin.com.tr/kitap/469991743
+
+twitter: @arvasmehmetakif
+instagram: @arvasmehmetakif
+
+*/
+
+/*
+
+//Ornek Kod(Example Code):
+
+//Koda başlangıcı:
+
+#include "mbed.h"
+#include "servo.h"
+
+servo motor(PA_0);
+
+int main()
+{
+
+    while(true) {
+    motor.derece(0);
+    wait(1);
+    motor.derece(45);
+wait(1);
+    motor.derece(90);
+        wait(1);
+
+    motor.derece(135);
+            wait(1);
+           motor.derece(180);
+        wait(1);
+    }
+
+}
+//Kod Sonu
+*/
+
+
+#ifndef servo_h
+#define servo_h
+
+#include "mbed.h"
+
+
+
+
+class servo {
+ 
+ 
+  public:
+ 
+ 
+    servo(PinName pa);
+ 
+     int derece(int deger);
+ 
+ 
+    private:
+
+        DigitalOut sinyalpini;
+
+
+};
+ 
+
+
+#endif
\ No newline at end of file