-
Notifications
You must be signed in to change notification settings - Fork 0
/
servoMotor.h
33 lines (26 loc) · 1.14 KB
/
servoMotor.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/******************************************************************************
* *
* Program : FileLogger *
* *
* FILE : servoMotor.h *
* *
* Date : 28 / 05 / 2021 *
* *
* Programmers : Team Software "TORQ" *
* *
******************************************************************************/
#pragma once
#include <Servo.h>
#include <Arduino.h>
class ServoMotor
{
public:
ServoMotor(byte m_pin);
Servo servo;
void rotate_left(int r_angle);
void rotate_right(int r_angle);
void reset();
void init();
byte pin;
int pos;
};