---
tag: m0281
title: Edit Servo Angles
brief: Set servo deploy and/or stow angles
author: thinkyhead

group: servos
since: 2.0.0
requires: EDITABLE_SERVO_ANGLES
eeprom: true

codes: [ M281 ]
related: [ M280, M282 ]

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/report the position of a servo. Without `L` or `U` the current values will be reported.
