pxt-calliope/libs/servo/docs/reference/servos.md

20 lines
284 B
Markdown
Raw Normal View History

# Servos
Rotate and run servos connected to the pins.
```cards
servos.P0.setPulse(1500)
servos.P0.setAngle(90)
servos.P0.run(50)
```
## See also
[set pulse](/reference/servos/set-pulse),
[set angle](/reference/servos/set-angle),
[run](/reference/servos/run)
```package
servo
```