Skip to content

Commit 8081ba7

Browse files
committed
rebuild FastAccelStepper_API.md
1 parent ba09b30 commit 8081ba7

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

extras/doc/FastAccelStepper_API.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -691,14 +691,17 @@ If the new command's direction differs from the previous command,
691691
addQueueEntry() will automatically insert pause commands to ensure
692692
sufficient delay before the first step in the new direction:
693693
694-
- For external direction pins (pin >= 128): Two pause commands of 500µs
695-
each are inserted. This requires two free queue entries; otherwise
696-
AQE_QUEUE_FULL is returned.
694+
- For external direction pins (pin >= 128): The direction pin is controlled
695+
via an external callback (e.g., to an I/O expander). To avoid steps in
696+
the wrong direction, the queue must be empty of steps before the
697+
direction change. If steps are present or the external callback is still
698+
pending, a 2ms pause is inserted and AQE_DIR_PIN_2MS_PAUSE_ADDED is
699+
returned. The caller should retry until the queue drains and the callback
700+
completes.
697701
698702
- For regular direction pins: If setDirectionPin() was called with
699703
dir_change_delay_us > 0, a pause command of that duration is inserted
700-
before the first step. Pure pause commands (steps=0) do not trigger
701-
this delay.
704+
before the first step in the new direction.
702705
703706
- For autoEnable mode: The enable-on delay is extended to at least
704707
dir_change_delay_ticks if a direction change occurs.

0 commit comments

Comments
 (0)