Re: [accelstepper] Digest for accelstepper@googlegroups.com - 1 update in 1 topic

8 views
Skip to first unread message

Luciano Veneziano

unread,
Jan 20, 2026, 3:22:12 PM (13 days ago) Jan 20
to accels...@googlegroups.com
Grazie mille!

L.V.

Il mar 20 gen 2026, 19:02 <accels...@googlegroups.com> ha scritto:
Richard Hulme <lionhe...@gmail.com>: Jan 20 02:16AM -0800

When using 3 wire Half Step, you cannot moveTo a negative value. This is
caused by the following in the cpp file:
 
void AccelStepper::step6(long step)
{
switch (step % 6)
 
Change it to this to allow normal operation:
 
void AccelStepper::step6(long step)
{
int s = step % 6;
if (s < 0) s += 6; // normalize negative remainder
 
switch (s)
 
It worked for me but glad to be corrected if cause other issues..
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to accelstepper...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages