Browse Source

Add Digipot config for 5DPrint D8 Driver Board

pull/1/head
Cameron Lai 11 years ago
parent
commit
3a8e36f19e
  1. 5
      Marlin/digipot_mcp4451.cpp

5
Marlin/digipot_mcp4451.cpp

@ -6,8 +6,13 @@
#include "Wire.h"
// Settings for the I2C based DIGIPOT (MCP4451) on Azteeg X3 Pro
#if MOTHERBOARD == 88
#define DIGIPOT_I2C_FACTOR 117.96
#define DIGIPOT_I2C_MAX_CURRENT 1.736
#else
#define DIGIPOT_I2C_FACTOR 106.7
#define DIGIPOT_I2C_MAX_CURRENT 2.5
#endif
static byte current_to_wiper( float current ){
return byte(ceil(float((DIGIPOT_I2C_FACTOR*current))));

Loading…
Cancel
Save