Skip to content

Commit

Permalink
πŸ§‘β€πŸ’» Allow DIGIPOT Rsx / Vrefmax override (MarlinFirmware#23885)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrnt authored Mar 13, 2022
1 parent 40ed3c5 commit 9bc1d05
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Marlin/src/feature/digipot/digipot_mcp4018.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,13 @@

// Settings for the I2C based DIGIPOT (MCP4018) based on WT150

#define DIGIPOT_A4988_Rsx 0.250
#define DIGIPOT_A4988_Vrefmax 1.666
#define DIGIPOT_MCP4018_MAX_VALUE 127
#ifndef DIGIPOT_A4988_Rsx
#define DIGIPOT_A4988_Rsx 0.250
#endif
#ifndef DIGIPOT_A4988_Vrefmax
#define DIGIPOT_A4988_Vrefmax 1.666
#endif
#define DIGIPOT_MCP4018_MAX_VALUE 127

#define DIGIPOT_A4988_Itripmax(Vref) ((Vref) / (8.0 * DIGIPOT_A4988_Rsx))

Expand Down

0 comments on commit 9bc1d05

Please sign in to comment.