-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainMotor.h
33 lines (27 loc) · 1.19 KB
/
mainMotor.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 : mainMotor.h *
* *
* Date : 28 / 05 / 2021 *
* *
* Programmers : Team Software "TORQ" *
* *
******************************************************************************/
#pragma once
#include <Arduino.h>
class MainMotor
{
public:
MainMotor(byte m_enable_pin, byte m_input_a, byte m_input_b);
void set_rpm(int rpm);
void rotate_clockwise();
void rotate_anti_clockwise();
void rotate_stop();
void init();
byte input_a;
byte input_b;
byte enable_pin;
int rpm;
};