Skip to content

[2.0.x] Improved SW micro stepping configuration#11132

Closed
TheLongAndOnly wants to merge 9 commits intoMarlinFirmware:bugfix-2.0.xfrom
TheLongAndOnly:microstep-2.0.x
Closed

[2.0.x] Improved SW micro stepping configuration#11132
TheLongAndOnly wants to merge 9 commits intoMarlinFirmware:bugfix-2.0.xfrom
TheLongAndOnly:microstep-2.0.x

Conversation

@TheLongAndOnly
Copy link
Contributor

Current micro stepping configuration is only limited to 2 pins. In addition there is only a fixed definition for the modes in Conditional_posts.h, which is not very flexible.

This pull requests extends implementation to 3 micro stepping pins (which many drivers require) and allows to define custom micro stepping pin settings in Configuration_adv.h.

* are defined. At max, 3 MS PINS are supported, if less are defined, the last settings are ignoreds
*/
//#define MICROSTEP_CUSTOM
#ifdef MICROSTEP_CUSTOM
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Required for Marlin:

#if ENABLED(MICROSTEP_CUSTOM)

#define MICROSTEP16 LOW,LOW
#define MICROSTEP32 HIGH,HIGH
// MS1 MS2 MS3 Stepper Driver Microstepping mode table
#ifndef MICROSTEP_CUSTOM
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#if DISABLED(MICROSTEP_CUSTOM)

@TheLongAndOnly
Copy link
Contributor Author

Thanks for the feedback. I changed this and added a few more checks to ensure backwards compatibility in case only 2 micro stepping pins are defined.

@TheLongAndOnly
Copy link
Contributor Author

TheLongAndOnly commented Jul 3, 2018

Same here as other pull requests currently failing: error in void CardReader::removeJobRecoveryFile() "success" not defined.

@thinkyhead thinkyhead force-pushed the bugfix-2.0.x branch 2 times, most recently from f454bf2 to 63f4c9b Compare July 7, 2018 02:34
@thinkyhead thinkyhead force-pushed the bugfix-2.0.x branch 4 times, most recently from 0226dcc to 834ea7f Compare August 14, 2018 09:47
@thinkyhead thinkyhead force-pushed the bugfix-2.0.x branch 4 times, most recently from 9fb4e95 to ad12b9b Compare August 21, 2018 14:48
@thinkyhead thinkyhead force-pushed the bugfix-2.0.x branch 2 times, most recently from 9d867f9 to 849dea9 Compare September 24, 2018 03:23
@thinkyhead thinkyhead force-pushed the bugfix-2.0.x branch 2 times, most recently from 579c7f3 to d52deeb Compare October 9, 2018 21:49
@TheLongAndOnly
Copy link
Contributor Author

TheLongAndOnly commented Nov 13, 2018 via email

@Allted
Copy link
Contributor

Allted commented Nov 13, 2018

Sorry, I deleted the comment as I realized it already seems to be in the bugfix branch. I guess it got pulled between my updates. I think this can be closed now?

@thinkyhead thinkyhead closed this Nov 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants