Skip to content

Commit d8e28f7

Browse files
committed
Make the example 0 so it's the same as the physical robot
1 parent 1643e68 commit d8e28f7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

content/api/servos.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ You can control attached servo motors from the [Arduino](../arduino/). By defaul
1313
The servo assembly can interface with up to sixteen servos connected to it.
1414

1515
```python
16-
servo_one = r.arduino.servos[1]
16+
servo_zero = r.arduino.servos[0]
1717
```
1818

1919
{{% notice tip %}}
@@ -25,8 +25,8 @@ Servo can be connected to any port, you don't have to start at 0!
2525
Servos can be controlled using the `position` parameter. This should be set to a value between -1 and 1.
2626

2727
```python
28-
servo_one.position = 0.65
29-
print(servo_one.position)
28+
servo_zero.position = 0.65
29+
print(servo_zero.position)
3030
>>> 0.65
3131
```
3232

0 commit comments

Comments
 (0)