Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request add supports for digital potentiometers (DigiPots) that are included on some control boards. I've tested this code on an Ultimachine RAMBo 1.4 board which has an AD5206 DigiPot chip controlled over SPI. This allows for software control of stepper current. By commenting out the
#define HAS_DIGIPOTS
, the change should be fully removed from compilation.As a part of this code, a new per-axis setting is included to change the DigiPot value was added as
$14n
wheren
is one of the axes indexed from 0-2 for x, y, and z. @chamnit suggested in gnea/grbl#696 that I should open a PR with DigiPots support directly onto gnea/grbl-Mega instead of gnea/grbl. We'll probably want to consider a way that we can reserve the$14n
setting so that it doesn't become a different setting on gnea/grbl than it is on gnea/grbl-Mega.