# API Reference v10.3.1 (Python)

## DigitalOutputAction (enum)

Module: zaber_motion.ascii

Action type for digital output.

To use this type, add `from zaber_motion.ascii import DigitalOutputAction` to the top of your source code.

Related Guides:

- [Device I/O](https://software.zaber.com/motion-library/docs/guides/device_features/device_io.md)

| Name | Value | Description |
| --- | --- | --- |
| `DigitalOutputAction.OFF` | `0` | Set the digital output low. |
| `DigitalOutputAction.ON` | `1` | Set the digital output high. |
| `DigitalOutputAction.TOGGLE` | `2` | Toggle the current state of the digital output. |
| `DigitalOutputAction.KEEP` | `3` | Leave the digital output in its current state. |
