We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40ed3c5 commit 9bc1d05Copy full SHA for 9bc1d05
Marlin/src/feature/digipot/digipot_mcp4018.cpp
@@ -31,9 +31,13 @@
31
32
// Settings for the I2C based DIGIPOT (MCP4018) based on WT150
33
34
-#define DIGIPOT_A4988_Rsx 0.250
35
-#define DIGIPOT_A4988_Vrefmax 1.666
36
-#define DIGIPOT_MCP4018_MAX_VALUE 127
+#ifndef DIGIPOT_A4988_Rsx
+ #define DIGIPOT_A4988_Rsx 0.250
+#endif
37
+#ifndef DIGIPOT_A4988_Vrefmax
38
+ #define DIGIPOT_A4988_Vrefmax 1.666
39
40
+#define DIGIPOT_MCP4018_MAX_VALUE 127
41
42
#define DIGIPOT_A4988_Itripmax(Vref) ((Vref) / (8.0 * DIGIPOT_A4988_Rsx))
43
0 commit comments