Skip to content

Commit bcb33ac

Browse files
authored
Update readme.md
Signed-off-by: Adrian <[email protected]>
1 parent a20e7d9 commit bcb33ac

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

readme.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,24 @@ ServoMotor example = 9;
3232

3333
### Use
3434

35+
#### Attach
36+
3537
```ino
36-
Servo.move(int angle);
38+
Servo.attach(int pin);
3739
```
3840

39-
**Description** Move the Servo
41+
**Parameters**
42+
* `Servo` Name of the defined `Servo` class
43+
* `pin` Pin of the Servo
44+
45+
#### Move
46+
47+
```ino
48+
Servo.move(int angle);
49+
```
4050

4151
**Parameters**
42-
* `Servo [ before the word "move" ]` Name of the defined `Servo` class
52+
* `Servo` Name of the defined `Servo` class
4353
* `angle` Angle to rotate
4454

4555
**Example**

0 commit comments

Comments
 (0)