We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19072b8 commit 8198c44Copy full SHA for 8198c44
src/U2Vydm8gQ29tcG9uZW50.h
@@ -8,7 +8,7 @@ typedef struct setup2 {
8
9
Servo servo;
10
11
-void moveServo(int angle) {
12
- servo.attach(setup.servo);
+void moveServo(int i, int angle) {
+ servo.attach(pin[i].servo);
13
servo.write(angle);
14
}
0 commit comments