Skip to content

Commit 85b0461

Browse files
authored
Update Servo-Motor-Module.h
Signed-off-by: Adrian <[email protected]>
1 parent bb8c9f3 commit 85b0461

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/Servo-Motor-Module.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
#include <Servo.h>
22

3-
struct Servo2 {
3+
Servo servo;
4+
5+
class Servo2 {
6+
public:
47
int servo;
58
move(int angle);
69
attach(int pin);
7-
} Servo2;
8-
9-
Servo servo;
10+
};
1011

1112
void Servo2::move(int angle) {
1213
this.angle = angle;

0 commit comments

Comments
 (0)