Skip to content

Commit cddc3eb

Browse files
authored
Create servo.h
Signed-off-by: Adrian <[email protected]>
1 parent 1791bd6 commit cddc3eb

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/servo.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#include <Servo.h>
2+
3+
Servo servo;
4+
5+
void attachServo(servo, int pin) {
6+
servo.attach(pin);
7+
}
8+
9+
void moveServo(servo, int angle) {
10+
servo.write(angle);
11+
}

0 commit comments

Comments
 (0)