Skip to content

Commit 82fde4f

Browse files
authored
Update Servo_Motor_Module.h
Signed-off-by: Adrian <[email protected]>
1 parent 906493f commit 82fde4f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Servo_Motor_Module.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ Servo servo;
44

55
class Servo2 {
66
public:
7-
int pin;
87
bool move(int angle);
9-
bool attach();
8+
bool attach(int pin);
109
};
1110

1211
bool Servo2::move(int angle) {
@@ -15,7 +14,7 @@ bool Servo2::move(int angle) {
1514
return true;
1615
}
1716

18-
bool Servo2::attach() {
17+
bool Servo2::attach(int pin) {
1918
servo.attach(pin);
2019
return true;
2120
}

0 commit comments

Comments
 (0)