Browse Source

MCP4451 Digipot Support for Azteeg X5 GT (#21680)

unknownlamer 3 years ago
parent
commit
5dfe28db2a
No account linked to committer's email address
2 changed files with 4 additions and 1 deletions
  1. 3
    0
      Marlin/src/feature/digipot/digipot_mcp4451.cpp
  2. 1
    1
      Marlin/src/inc/SanityCheck.h

+ 3
- 0
Marlin/src/feature/digipot/digipot_mcp4451.cpp View File

@@ -40,6 +40,9 @@
40 40
 #elif MB(AZTEEG_X5_MINI, AZTEEG_X5_MINI_WIFI)
41 41
   #define DIGIPOT_I2C_FACTOR      113.5f
42 42
   #define DIGIPOT_I2C_MAX_CURRENT   2.0f
43
+#elif MB(AZTEEG_X5_GT)
44
+  #define DIGIPOT_I2C_FACTOR       51.0f
45
+  #define DIGIPOT_I2C_MAX_CURRENT   3.0f
43 46
 #else
44 47
   #define DIGIPOT_I2C_FACTOR      106.7f
45 48
   #define DIGIPOT_I2C_MAX_CURRENT   2.5f

+ 1
- 1
Marlin/src/inc/SanityCheck.h View File

@@ -2846,7 +2846,7 @@ static_assert(hbm[Z_AXIS] >= 0, "HOMING_BUMP_MM.Z must be greater than or equal
2846 2846
 #if HAS_MOTOR_CURRENT_I2C
2847 2847
   #if BOTH(DIGIPOT_MCP4018, DIGIPOT_MCP4451)
2848 2848
     #error "Enable only one of DIGIPOT_MCP4018 or DIGIPOT_MCP4451."
2849
-  #elif !MB(MKS_SBASE) \
2849
+#elif !MB(MKS_SBASE, AZTEEG_X5_GT, AZTEEG_X5_MINI, AZTEEG_X5_MINI_WIFI) \
2850 2850
     && (!defined(DIGIPOTS_I2C_SDA_X) || !defined(DIGIPOTS_I2C_SDA_Y) || !defined(DIGIPOTS_I2C_SDA_Z) || !defined(DIGIPOTS_I2C_SDA_E0) || !defined(DIGIPOTS_I2C_SDA_E1))
2851 2851
       #error "DIGIPOT_MCP4018/4451 requires DIGIPOTS_I2C_SDA_* pins to be defined."
2852 2852
   #endif

Loading…
Cancel
Save