Skip to content

Commit 727e4e8

Browse files
authored
Update U2Vydm8gQ29tcG9uZW50.h
Signed-off-by: Adrian <[email protected]>
1 parent 2edecc9 commit 727e4e8

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/U2Vydm8gQ29tcG9uZW50.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
#include <stdio.h>
33
#include <string.h>
44

5-
typedef struct setup2 {
6-
int servo;
7-
} ServoConfig;
5+
class setup2 {
6+
public:
7+
int servo;
8+
};
89

910
Servo servo;
10-
ServoConfig servo;
11+
setup2 servo;
1112

1213
void moveServo(int i, int angle) {
1314
servo.attach(pin[i].servo);

0 commit comments

Comments
 (0)