---
tag: m0043b
title: Toggle Pins
brief: Get information about pins.
author: thinkyhead
contrib: [ TwoRedCells ]
experimental: true
requires: PINS_DEBUGGING
group: debug

codes: [ M43 T ]

notes:
  - Requires `PINS_DEBUGGING`. This feature should be disabled for production use.
  - See [`M43`](/docs/gcode/M043.html) for other pins debug options.

parameters:
  -
    tag: S
    optional: true
    description: Start Pin number. If not given, will default to 0
    values:
      -
        tag: pin
        type: int
  -
    tag: L
    optional: true
    description: End Pin number. If not given, will default to last pin defined for this board
    values:
      -
        tag: pin
        type: int
  -
    tag: I
    optional: true
    description: Flag to ignore Marlin's pin protection. **Use with caution!!!!**
    values:
      -
        type: bool
  -
    tag: R
    optional: true
    description: Repeat pulses on each pin this number of times before continuing to next pin. If not given will default to 1.
    values:
      -
        tag: count
        type: int
  -
    tag: W
    optional: true
    description: Wait time (in milliseconds) transitions. If not given will default to 500.
    values:
      -
        tag: time
        type: int

examples:
  -
    pre: Toggle pins 3-6 five times with 1 second low and 1 second high pulses but only if the pin isn't in the protected list.
    code: M43 T S3 L6 R5 W1000

---

The `M43 T` command toggles one or more pins.
