21 lines
426 B
C
21 lines
426 B
C
#ifndef _SERVO_H_
|
|
#define _SERVO_H_
|
|
|
|
#define Shutter_pin1 5
|
|
#define Shutter_pin2 6
|
|
|
|
#include <Arduino.h>
|
|
|
|
void servo_init(uint8_t servo_pin,uint8_t servo_channel);
|
|
int calculatePWM(float degree);
|
|
void servo_set_angle( float angle );
|
|
float servo_get_angle();
|
|
void servo_off();
|
|
void servo_up();
|
|
void servo_down();
|
|
void servo_offset(float angle,uint8_t dir);
|
|
|
|
void shutter_up();
|
|
void shutter_down();
|
|
void shutter_off();
|
|
#endif |