Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gang Axis with I2S does not work #21

Closed
fireup924 opened this issue Mar 26, 2022 · 2 comments
Closed

Gang Axis with I2S does not work #21

fireup924 opened this issue Mar 26, 2022 · 2 comments

Comments

@fireup924
Copy link

I'm trying to Gang the Y axis with the 4th axis and it does not seem to be working for me. I'm using I2S mode, the M3_DIRECTION_PIN works but the M3_STEP_PIN and M3_ENABLE_PIN are not working.

@fireup924
Copy link
Author

I think I've fixed the problem in driver.c

after line 509 I added the following:

#ifdef GANGING_ENABLED
  #ifdef X2_ENABLE_PIN
    DIGITAL_OUT(X2_ENABLE_PIN, enable.x);
  #endif
  #ifdef Y2_ENABLE_PIN
    DIGITAL_OUT(Y2_ENABLE_PIN, enable.y);
  #endif
  #ifdef Z2_ENABLE_PIN
    DIGITAL_OUT(Z2_ENABLE_PIN, enable.z);
  #endif
#endif

and also on lines 616, 619 and 622

#ifdef X2_STEP_PIN
    DIGITAL_OUT(X_STEP_PIN, step_outbits_2.x);
#endif
#ifdef Y2_STEP_PIN
    DIGITAL_OUT(X_STEP_PIN, step_outbits_2.y);
#endif
#ifdef Z2_STEP_PIN
    DIGITAL_OUT(X_STEP_PIN, step_outbits_2.z);
#endif 

I changed them to :

#ifdef X2_STEP_PIN
    DIGITAL_OUT(X2_STEP_PIN, step_outbits_2.x);
#endif
#ifdef Y2_STEP_PIN
    DIGITAL_OUT(Y2_STEP_PIN, step_outbits_2.y);
#endif
#ifdef Z2_STEP_PIN
    DIGITAL_OUT(Z2_STEP_PIN, step_outbits_2.z);
#endif 

Those changes made it work for me, I haven't tested Auto Square feature yet...

terjeio added a commit that referenced this issue Mar 27, 2022
@terjeio
Copy link
Contributor

terjeio commented Mar 27, 2022

Thanks for reporting, fix comitted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants