flexi-bot/docs/marlin/_gcode/M281.md
2023-09-05 20:38:49 +02:00

48 lines
797 B
Markdown

---
tag: m0281
title: Edit Servo Angles
brief: Set servo deploy and/or stow angles
author: thinkyhead
since: 2.0.0
requires: EDITABLE_SERVO_ANGLES
group: servos
codes: [ M281 ]
parameters:
-
tag: P
optional: false
description: Servo index to update / report.
values:
-
tag: index
type: int
-
tag: L
optional: true
description: Deploy angle in degrees.
values:
-
tag: degrees
type: int
-
tag: U
optional: true
description: Stow angle in degrees.
values:
-
tag: degrees
type: int
example:
-
pre: Set 90° deploy and 0° stow angles for servo 0.
code: M281 P0 L90 U0
---
Set or get the position of a servo. Without `L` or `U` the current values will be reported.