mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-08-05 21:14:05 -06:00
mcp4018: Add initial support for the mcp4018 digipot
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
a090b31713
commit
cc4ecef88b
3 changed files with 107 additions and 1 deletions
|
@ -778,6 +778,31 @@
|
|||
# default is to not scale the 'channel_x' parameters.
|
||||
|
||||
|
||||
# Statically configured MCP4018 digipot connected via two gpio "bit
|
||||
# banging" pins (one may define any number of sections with an
|
||||
# "mcp4018" prefix).
|
||||
#[mcp4018 my_digipot]
|
||||
#scl_pin:
|
||||
# The SCL "clock" pin. This parameter must be provided.
|
||||
#sda_pin:
|
||||
# The SDA "data" pin. This parameter must be provided.
|
||||
#wiper:
|
||||
# The value to statically set the given MCP4018 "wiper" to. This is
|
||||
# typically set to a number between 0.0 and 1.0 with 1.0 being the
|
||||
# highest resistance and 0.0 being the lowest resistance. However,
|
||||
# the range may be changed with the 'scale' parameter (see
|
||||
# below). This parameter must be provided.
|
||||
#scale:
|
||||
# This parameter can be used to alter how the 'wiper' parameter is
|
||||
# interpreted. If provided, then the 'wiper' parameter should be
|
||||
# between 0.0 and 'scale'. This may be useful when the MCP4018 is
|
||||
# used to set stepper voltage references. The 'scale' can be set to
|
||||
# the equivalent stepper amperage if the MCP4018 is at its highest
|
||||
# resistance, and then the 'wiper' parameter can be specified using
|
||||
# the desired amperage value for the stepper. The default is to not
|
||||
# scale the 'wiper' parameter.
|
||||
|
||||
|
||||
# Configure an SX1509 I2C to GPIO expander. Due to the delay incurred
|
||||
# by I2C communication you should NOT use SX1509 pins as stepper enable,
|
||||
# step or dir pins or any other pin that requires fast bit-banging. They
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue