Servo Motor Kutuphanesi(Library)

Dependents:   RTOS_servo_motor step_servo_potile_motor thread_servo_led

servo.h

Committer:
marvas
Date:
2019-12-21
Revision:
1:d9dc08980d89
Parent:
0:a693d4a007d6

File content as of revision 1:d9dc08980d89:


/*

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);
  DigitalOut sinyalpini;


};
 


#endif