Browse Source

Add Digipot config for 5DPrint D8 Driver Board

Cameron Lai 10 years ago
parent
commit
3a8e36f19e
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      Marlin/digipot_mcp4451.cpp

+ 5
- 0
Marlin/digipot_mcp4451.cpp View File

6
 #include "Wire.h"
6
 #include "Wire.h"
7
 
7
 
8
 // Settings for the I2C based DIGIPOT (MCP4451) on Azteeg X3 Pro
8
 // Settings for the I2C based DIGIPOT (MCP4451) on Azteeg X3 Pro
9
+#if MOTHERBOARD == 88
10
+#define DIGIPOT_I2C_FACTOR 117.96
11
+#define DIGIPOT_I2C_MAX_CURRENT 1.736
12
+#else
9
 #define DIGIPOT_I2C_FACTOR 106.7
13
 #define DIGIPOT_I2C_FACTOR 106.7
10
 #define DIGIPOT_I2C_MAX_CURRENT 2.5
14
 #define DIGIPOT_I2C_MAX_CURRENT 2.5
15
+#endif
11
 
16
 
12
 static byte current_to_wiper( float current ){
17
 static byte current_to_wiper( float current ){
13
     return byte(ceil(float((DIGIPOT_I2C_FACTOR*current))));
18
     return byte(ceil(float((DIGIPOT_I2C_FACTOR*current))));

Loading…
Cancel
Save