---
tag: m0908
title: Set Trimpot Pins
brief: Set a digital trimpot directly
author: thinkyhead

group: control
requires: DAC_STEPPER_CURRENT|DIGIPOTSS_PIN

codes: [ M908 ]

notes: Requires `DAC_STEPPER_CURRENT` or `DIGIPOTSS_PIN`.

parameters:

- tag: P
  optional: false
  description: Pin (i.e., Address, Channel)
  values:
  - tag: address
    type: int

- tag: S
  optional: false
  description: Current value
  values:
  - tag: current
    type: int

---

Set the digital trimpot current directly by address/channel/pin index. `DAC_STEPPER_CURRENT` pertains to the MCP4728.
