Skip to content

Commit 9bc1d05

Browse files
authored
🧑‍💻 Allow DIGIPOT Rsx / Vrefmax override (MarlinFirmware#23885)
1 parent 40ed3c5 commit 9bc1d05

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Marlin/src/feature/digipot/digipot_mcp4018.cpp

+7-3
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,13 @@
3131

3232
// Settings for the I2C based DIGIPOT (MCP4018) based on WT150
3333

34-
#define DIGIPOT_A4988_Rsx 0.250
35-
#define DIGIPOT_A4988_Vrefmax 1.666
36-
#define DIGIPOT_MCP4018_MAX_VALUE 127
34+
#ifndef DIGIPOT_A4988_Rsx
35+
#define DIGIPOT_A4988_Rsx 0.250
36+
#endif
37+
#ifndef DIGIPOT_A4988_Vrefmax
38+
#define DIGIPOT_A4988_Vrefmax 1.666
39+
#endif
40+
#define DIGIPOT_MCP4018_MAX_VALUE 127
3741

3842
#define DIGIPOT_A4988_Itripmax(Vref) ((Vref) / (8.0 * DIGIPOT_A4988_Rsx))
3943

0 commit comments

Comments
 (0)