37 lines
557 B
Markdown
37 lines
557 B
Markdown
---
|
|
tag: m0280
|
|
title: Servo Position
|
|
brief: Set or get a servo position.
|
|
author: thinkyhead
|
|
|
|
requires: NUM_SERVOS>0
|
|
group: servos
|
|
|
|
codes: [ M280 ]
|
|
|
|
notes: Requires `NUM_SERVOS` of 1 or more.
|
|
|
|
parameters:
|
|
-
|
|
tag: P
|
|
optional: false
|
|
description: Servo index to set or get
|
|
values:
|
|
-
|
|
tag: index
|
|
type: int
|
|
-
|
|
tag: S
|
|
optional: false
|
|
description: Servo position to set. Omit to read the current position.
|
|
values:
|
|
-
|
|
tag: pos
|
|
type: int
|
|
|
|
examples:
|
|
|
|
---
|
|
|
|
Set or get the position of a servo.
|