diff options
author | jake-b <1012393+jake-b@users.noreply.github.com> | 2022-09-02 11:30:06 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-02 10:30:06 -0400 |
commit | ae6c16422f1107139fa2f36cbd31360b37312ff7 (patch) | |
tree | e739bbce8c7a129b7e0314fdc17ce2c98523e454 /docs/G-Codes.md | |
parent | 354915d2ad0e17f5b7df98c1e78da1585c52f441 (diff) | |
download | kutter-ae6c16422f1107139fa2f36cbd31360b37312ff7.tar.gz kutter-ae6c16422f1107139fa2f36cbd31360b37312ff7.tar.xz kutter-ae6c16422f1107139fa2f36cbd31360b37312ff7.zip |
mcp4018: Add SET_DIGIPOT command to mcp4018 implementation (#5737)
Added a SET_DIGIPOT command to the mcp4018 implementation.
Previously the mcp4018 was read only, and set at the time of
configuration. This allows you to change the value during a
print, which is needed for some older printers that need to
lower the stepper current during preheating.
Signed-off-by: Jake Bordens <jake@allaboutjake.com>
Diffstat (limited to 'docs/G-Codes.md')
-rw-r--r-- | docs/G-Codes.md | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/G-Codes.md b/docs/G-Codes.md index afa808c8..fb9e4a7a 100644 --- a/docs/G-Codes.md +++ b/docs/G-Codes.md @@ -746,6 +746,20 @@ scheduled to run after the stepper move completes, however if a manual stepper move uses SYNC=0 then future G-Code movement commands may run in parallel with the stepper movement. +### [mcp4018] + +The following command is available when a +[mcp4018 config section](Config_Reference.md#mcp4018) is +enabled. + +#### SET_DIGIPOT + +`SET_DIGIPOT DIGIPOT=config_name WIPER=<value>`: This command will +change the current value of the digipot. This value should typically +be between 0.0 and 1.0, unless a 'scale' is defined in the config. +When 'scale' is defined, then this value should be between 0.0 and +'scale'. + ### [led] The following command is available when any of the |