Sfoglia il codice sorgente

Add Digipot config for 5DPrint D8 Driver Board

Cameron Lai 10 anni fa
parent
commit
3a8e36f19e
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. 5
    0
      Marlin/digipot_mcp4451.cpp

+ 5
- 0
Marlin/digipot_mcp4451.cpp Vedi File

@@ -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))));

Loading…
Annulla
Salva