Skip to content

Commit 01530f4

Browse files
authored
Update Servo_Motor_Module.h
Signed-off-by: Adrian <[email protected]>
1 parent 4b66a7b commit 01530f4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Servo_Motor_Module.h

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

55
class Servo2 {
66
public:
7+
int pin;
78
int move(int angle);
8-
int attach(int pin);
9+
int attach();
910
};
1011

1112
int Servo2::move(int angle) {
@@ -14,7 +15,7 @@ int Servo2::move(int angle) {
1415
return true;
1516
}
1617

17-
int Servo2::attach(int pin) {
18+
int Servo2::attach() {
1819
servo.attach(pin);
1920
return true;
2021
}

0 commit comments

Comments
 (0)