浏览代码

Add Digipot config for 5DPrint D8 Driver Board

Cameron Lai 10 年前
父节点
当前提交
3a8e36f19e
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5
    0
      Marlin/digipot_mcp4451.cpp

+ 5
- 0
Marlin/digipot_mcp4451.cpp 查看文件

@@ -6,8 +6,13 @@
6 6
 #include "Wire.h"
7 7
 
8 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 13
 #define DIGIPOT_I2C_FACTOR 106.7
10 14
 #define DIGIPOT_I2C_MAX_CURRENT 2.5
15
+#endif
11 16
 
12 17
 static byte current_to_wiper( float current ){
13 18
     return byte(ceil(float((DIGIPOT_I2C_FACTOR*current))));

正在加载...
取消
保存