Sfoglia il codice sorgente

Cleanup for DIGIPOTS settings

Scott Lahteine 6 anni fa
parent
commit
62d52d62dc
29 ha cambiato i file con 406 aggiunte e 29 eliminazioni
  1. 14
    1
      Marlin/Configuration_adv.h
  2. 14
    1
      Marlin/example_configurations/AlephObjects/TAZ4/Configuration_adv.h
  3. 14
    1
      Marlin/example_configurations/Anet/A6/Configuration_adv.h
  4. 14
    1
      Marlin/example_configurations/Anet/A8/Configuration_adv.h
  5. 14
    1
      Marlin/example_configurations/BQ/Hephestos/Configuration_adv.h
  6. 14
    1
      Marlin/example_configurations/BQ/Hephestos_2/Configuration_adv.h
  7. 14
    1
      Marlin/example_configurations/BQ/WITBOX/Configuration_adv.h
  8. 14
    1
      Marlin/example_configurations/Cartesio/Configuration_adv.h
  9. 14
    1
      Marlin/example_configurations/Creality/CR-10/Configuration_adv.h
  10. 14
    1
      Marlin/example_configurations/Felix/Configuration_adv.h
  11. 14
    1
      Marlin/example_configurations/FolgerTech/i3-2020/Configuration_adv.h
  12. 14
    1
      Marlin/example_configurations/Infitary/i3-M508/Configuration_adv.h
  13. 14
    1
      Marlin/example_configurations/Malyan/M150/Configuration_adv.h
  14. 14
    1
      Marlin/example_configurations/Micromake/C1/enhanced/Configuration_adv.h
  15. 14
    1
      Marlin/example_configurations/RigidBot/Configuration_adv.h
  16. 14
    1
      Marlin/example_configurations/SCARA/Configuration_adv.h
  17. 14
    1
      Marlin/example_configurations/Sanguinololu/Configuration_adv.h
  18. 14
    1
      Marlin/example_configurations/TinyBoy2/Configuration_adv.h
  19. 14
    1
      Marlin/example_configurations/Velleman/K8200/Configuration_adv.h
  20. 14
    1
      Marlin/example_configurations/Velleman/K8400/Configuration_adv.h
  21. 14
    1
      Marlin/example_configurations/delta/FLSUN/auto_calibrate/Configuration_adv.h
  22. 14
    1
      Marlin/example_configurations/delta/FLSUN/kossel_mini/Configuration_adv.h
  23. 14
    1
      Marlin/example_configurations/delta/generic/Configuration_adv.h
  24. 14
    1
      Marlin/example_configurations/delta/kossel_mini/Configuration_adv.h
  25. 14
    1
      Marlin/example_configurations/delta/kossel_pro/Configuration_adv.h
  26. 14
    1
      Marlin/example_configurations/delta/kossel_xl/Configuration_adv.h
  27. 14
    1
      Marlin/example_configurations/gCreate/gMax1.5+/Configuration_adv.h
  28. 14
    1
      Marlin/example_configurations/makibox/Configuration_adv.h
  29. 14
    1
      Marlin/example_configurations/tvrrug/Round2/Configuration_adv.h

+ 14
- 1
Marlin/Configuration_adv.h Vedi File

@@ -434,8 +434,21 @@
434 434
 //#define DIGIPOT_MOTOR_CURRENT { 135,135,135,135,135 }   // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
435 435
 //#define DAC_MOTOR_CURRENT_DEFAULT { 70, 80, 90, 80 }    // Default drive percent - X, Y, Z, E axis
436 436
 
437
-// Uncomment to enable an I2C based DIGIPOT like on the Azteeg X3 Pro
437
+// Use an I2C based DIGIPOT (e.g., Azteeg X3 Pro)
438 438
 //#define DIGIPOT_I2C
439
+#if ENABLED(DIGIPOT_I2C) && !defined(DIGIPOT_I2C_ADDRESS_A)
440
+  /**
441
+   * Common slave addresses:
442
+   *
443
+   *                    A   (A shifted)   B   (B shifted)  IC
444
+   * Smoothie          0x2C (0x58)       0x2D (0x5A)       MCP4451
445
+   * AZTEEG_X3_PRO     0x2C (0x58)       0x2E (0x5C)       MCP4451
446
+   * MIGHTYBOARD_REVE  0x2F (0x5E)                         MCP4018
447
+   */
448
+  #define DIGIPOT_I2C_ADDRESS_A 0x2C  // unshifted slave address for first DIGIPOT
449
+  #define DIGIPOT_I2C_ADDRESS_B 0x2D  // unshifted slave address for second DIGIPOT
450
+#endif
451
+
439 452
 //#define DIGIPOT_MCP4018          // Requires library from https://github.com/stawel/SlowSoftI2CMaster
440 453
 #define DIGIPOT_I2C_NUM_CHANNELS 8 // 5DPRINT: 4     AZTEEG_X3_PRO: 8
441 454
 // Actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS

+ 14
- 1
Marlin/example_configurations/AlephObjects/TAZ4/Configuration_adv.h Vedi File

@@ -434,8 +434,21 @@
434 434
 //#define DIGIPOT_MOTOR_CURRENT { 135,135,135,135,135 }   // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
435 435
 //#define DAC_MOTOR_CURRENT_DEFAULT { 70, 80, 90, 80 }    // Default drive percent - X, Y, Z, E axis
436 436
 
437
-// Uncomment to enable an I2C based DIGIPOT like on the Azteeg X3 Pro
437
+// Use an I2C based DIGIPOT (e.g., Azteeg X3 Pro)
438 438
 //#define DIGIPOT_I2C
439
+#if ENABLED(DIGIPOT_I2C) && !defined(DIGIPOT_I2C_ADDRESS_A)
440
+  /**
441
+   * Common slave addresses:
442
+   *
443
+   *                    A   (A shifted)   B   (B shifted)  IC
444
+   * Smoothie          0x2C (0x58)       0x2D (0x5A)       MCP4451
445
+   * AZTEEG_X3_PRO     0x2C (0x58)       0x2E (0x5C)       MCP4451
446
+   * MIGHTYBOARD_REVE  0x2F (0x5E)                         MCP4018
447
+   */
448
+  #define DIGIPOT_I2C_ADDRESS_A 0x2C  // unshifted slave address for first DIGIPOT
449
+  #define DIGIPOT_I2C_ADDRESS_B 0x2D  // unshifted slave address for second DIGIPOT
450
+#endif
451
+
439 452
 //#define DIGIPOT_MCP4018          // Requires library from https://github.com/stawel/SlowSoftI2CMaster
440 453
 #define DIGIPOT_I2C_NUM_CHANNELS 8 // 5DPRINT: 4     AZTEEG_X3_PRO: 8
441 454
 // Actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS

+ 14
- 1
Marlin/example_configurations/Anet/A6/Configuration_adv.h Vedi File

@@ -434,8 +434,21 @@
434 434
 //#define DIGIPOT_MOTOR_CURRENT { 135,135,135,135,135 }   // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
435 435
 //#define DAC_MOTOR_CURRENT_DEFAULT { 70, 80, 90, 80 }    // Default drive percent - X, Y, Z, E axis
436 436
 
437
-// Uncomment to enable an I2C based DIGIPOT like on the Azteeg X3 Pro
437
+// Use an I2C based DIGIPOT (e.g., Azteeg X3 Pro)
438 438
 //#define DIGIPOT_I2C
439
+#if ENABLED(DIGIPOT_I2C) && !defined(DIGIPOT_I2C_ADDRESS_A)
440
+  /**
441
+   * Common slave addresses:
442
+   *
443
+   *                    A   (A shifted)   B   (B shifted)  IC
444
+   * Smoothie          0x2C (0x58)       0x2D (0x5A)       MCP4451
445
+   * AZTEEG_X3_PRO     0x2C (0x58)       0x2E (0x5C)       MCP4451
446
+   * MIGHTYBOARD_REVE  0x2F (0x5E)                         MCP4018
447
+   */
448
+  #define DIGIPOT_I2C_ADDRESS_A 0x2C  // unshifted slave address for first DIGIPOT
449
+  #define DIGIPOT_I2C_ADDRESS_B 0x2D  // unshifted slave address for second DIGIPOT
450
+#endif
451
+
439 452
 //#define DIGIPOT_MCP4018          // Requires library from https://github.com/stawel/SlowSoftI2CMaster
440 453
 #define DIGIPOT_I2C_NUM_CHANNELS 8 // 5DPRINT: 4     AZTEEG_X3_PRO: 8
441 454
 // Actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS

+ 14
- 1
Marlin/example_configurations/Anet/A8/Configuration_adv.h Vedi File

@@ -434,8 +434,21 @@
434 434
 //#define DIGIPOT_MOTOR_CURRENT { 135,135,135,135,135 }   // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
435 435
 //#define DAC_MOTOR_CURRENT_DEFAULT { 70, 80, 90, 80 }    // Default drive percent - X, Y, Z, E axis
436 436
 
437
-// Uncomment to enable an I2C based DIGIPOT like on the Azteeg X3 Pro
437
+// Use an I2C based DIGIPOT (e.g., Azteeg X3 Pro)
438 438
 //#define DIGIPOT_I2C
439
+#if ENABLED(DIGIPOT_I2C) && !defined(DIGIPOT_I2C_ADDRESS_A)
440
+  /**
441
+   * Common slave addresses:
442
+   *
443
+   *                    A   (A shifted)   B   (B shifted)  IC
444
+   * Smoothie          0x2C (0x58)       0x2D (0x5A)       MCP4451
445
+   * AZTEEG_X3_PRO     0x2C (0x58)       0x2E (0x5C)       MCP4451
446
+   * MIGHTYBOARD_REVE  0x2F (0x5E)                         MCP4018
447
+   */
448
+  #define DIGIPOT_I2C_ADDRESS_A 0x2C  // unshifted slave address for first DIGIPOT
449
+  #define DIGIPOT_I2C_ADDRESS_B 0x2D  // unshifted slave address for second DIGIPOT
450
+#endif
451
+
439 452
 //#define DIGIPOT_MCP4018          // Requires library from https://github.com/stawel/SlowSoftI2CMaster
440 453
 #define DIGIPOT_I2C_NUM_CHANNELS 8 // 5DPRINT: 4     AZTEEG_X3_PRO: 8
441 454
 // Actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS

+ 14
- 1
Marlin/example_configurations/BQ/Hephestos/Configuration_adv.h Vedi File

@@ -434,8 +434,21 @@
434 434
 //#define DIGIPOT_MOTOR_CURRENT { 135,135,135,135,135 }   // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
435 435
 //#define DAC_MOTOR_CURRENT_DEFAULT { 70, 80, 90, 80 }    // Default drive percent - X, Y, Z, E axis
436 436
 
437
-// Uncomment to enable an I2C based DIGIPOT like on the Azteeg X3 Pro
437
+// Use an I2C based DIGIPOT (e.g., Azteeg X3 Pro)
438 438
 //#define DIGIPOT_I2C
439
+#if ENABLED(DIGIPOT_I2C) && !defined(DIGIPOT_I2C_ADDRESS_A)
440
+  /**
441
+   * Common slave addresses:
442
+   *
443
+   *                    A   (A shifted)   B   (B shifted)  IC
444
+   * Smoothie          0x2C (0x58)       0x2D (0x5A)       MCP4451
445
+   * AZTEEG_X3_PRO     0x2C (0x58)       0x2E (0x5C)       MCP4451
446
+   * MIGHTYBOARD_REVE  0x2F (0x5E)                         MCP4018
447
+   */
448
+  #define DIGIPOT_I2C_ADDRESS_A 0x2C  // unshifted slave address for first DIGIPOT
449
+  #define DIGIPOT_I2C_ADDRESS_B 0x2D  // unshifted slave address for second DIGIPOT
450
+#endif
451
+
439 452
 //#define DIGIPOT_MCP4018          // Requires library from https://github.com/stawel/SlowSoftI2CMaster
440 453
 #define DIGIPOT_I2C_NUM_CHANNELS 8 // 5DPRINT: 4     AZTEEG_X3_PRO: 8
441 454
 // Actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS

+ 14
- 1
Marlin/example_configurations/BQ/Hephestos_2/Configuration_adv.h Vedi File

@@ -434,8 +434,21 @@
434 434
 #define DIGIPOT_MOTOR_CURRENT { 150, 170, 180, 190, 180 }   // Values 0-255 (bq ZUM Mega 3D (default): X = 150 [~1.17A]; Y = 170 [~1.33A]; Z = 180 [~1.41A]; E0 = 190 [~1.49A])
435 435
 //#define DAC_MOTOR_CURRENT_DEFAULT { 70, 80, 90, 80 }      // Default drive percent - X, Y, Z, E axis
436 436
 
437
-// Uncomment to enable an I2C based DIGIPOT like on the Azteeg X3 Pro
437
+// Use an I2C based DIGIPOT (e.g., Azteeg X3 Pro)
438 438
 //#define DIGIPOT_I2C
439
+#if ENABLED(DIGIPOT_I2C) && !defined(DIGIPOT_I2C_ADDRESS_A)
440
+  /**
441
+   * Common slave addresses:
442
+   *
443
+   *                    A   (A shifted)   B   (B shifted)  IC
444
+   * Smoothie          0x2C (0x58)       0x2D (0x5A)       MCP4451
445
+   * AZTEEG_X3_PRO     0x2C (0x58)       0x2E (0x5C)       MCP4451
446
+   * MIGHTYBOARD_REVE  0x2F (0x5E)                         MCP4018
447
+   */
448
+  #define DIGIPOT_I2C_ADDRESS_A 0x2C  // unshifted slave address for first DIGIPOT
449
+  #define DIGIPOT_I2C_ADDRESS_B 0x2D  // unshifted slave address for second DIGIPOT
450
+#endif
451
+
439 452
 //#define DIGIPOT_MCP4018          // Requires library from https://github.com/stawel/SlowSoftI2CMaster
440 453
 #define DIGIPOT_I2C_NUM_CHANNELS 8 // 5DPRINT: 4     AZTEEG_X3_PRO: 8
441 454
 // Actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS

+ 14
- 1
Marlin/example_configurations/BQ/WITBOX/Configuration_adv.h Vedi File

@@ -434,8 +434,21 @@
434 434
 //#define DIGIPOT_MOTOR_CURRENT { 135,135,135,135,135 }   // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
435 435
 //#define DAC_MOTOR_CURRENT_DEFAULT { 70, 80, 90, 80 }    // Default drive percent - X, Y, Z, E axis
436 436
 
437
-// Uncomment to enable an I2C based DIGIPOT like on the Azteeg X3 Pro
437
+// Use an I2C based DIGIPOT (e.g., Azteeg X3 Pro)
438 438
 //#define DIGIPOT_I2C
439
+#if ENABLED(DIGIPOT_I2C) && !defined(DIGIPOT_I2C_ADDRESS_A)
440
+  /**
441
+   * Common slave addresses:
442
+   *
443
+   *                    A   (A shifted)   B   (B shifted)  IC
444
+   * Smoothie          0x2C (0x58)       0x2D (0x5A)       MCP4451
445
+   * AZTEEG_X3_PRO     0x2C (0x58)       0x2E (0x5C)       MCP4451
446
+   * MIGHTYBOARD_REVE  0x2F (0x5E)                         MCP4018
447
+   */
448
+  #define DIGIPOT_I2C_ADDRESS_A 0x2C  // unshifted slave address for first DIGIPOT
449
+  #define DIGIPOT_I2C_ADDRESS_B 0x2D  // unshifted slave address for second DIGIPOT
450
+#endif
451
+
439 452
 //#define DIGIPOT_MCP4018          // Requires library from https://github.com/stawel/SlowSoftI2CMaster
440 453
 #define DIGIPOT_I2C_NUM_CHANNELS 8 // 5DPRINT: 4     AZTEEG_X3_PRO: 8
441 454
 // Actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS

+ 14
- 1
Marlin/example_configurations/Cartesio/Configuration_adv.h Vedi File

@@ -434,8 +434,21 @@
434 434
 //#define DIGIPOT_MOTOR_CURRENT { 135,135,135,135,135 }   // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
435 435
 //#define DAC_MOTOR_CURRENT_DEFAULT { 70, 80, 90, 80 }    // Default drive percent - X, Y, Z, E axis
436 436
 
437
-// Uncomment to enable an I2C based DIGIPOT like on the Azteeg X3 Pro
437
+// Use an I2C based DIGIPOT (e.g., Azteeg X3 Pro)
438 438
 //#define DIGIPOT_I2C
439
+#if ENABLED(DIGIPOT_I2C) && !defined(DIGIPOT_I2C_ADDRESS_A)
440
+  /**
441
+   * Common slave addresses:
442
+   *
443
+   *                    A   (A shifted)   B   (B shifted)  IC
444
+   * Smoothie          0x2C (0x58)       0x2D (0x5A)       MCP4451
445
+   * AZTEEG_X3_PRO     0x2C (0x58)       0x2E (0x5C)       MCP4451
446
+   * MIGHTYBOARD_REVE  0x2F (0x5E)                         MCP4018
447
+   */
448
+  #define DIGIPOT_I2C_ADDRESS_A 0x2C  // unshifted slave address for first DIGIPOT
449
+  #define DIGIPOT_I2C_ADDRESS_B 0x2D  // unshifted slave address for second DIGIPOT
450
+#endif
451
+
439 452
 //#define DIGIPOT_MCP4018          // Requires library from https://github.com/stawel/SlowSoftI2CMaster
440 453
 #define DIGIPOT_I2C_NUM_CHANNELS 8 // 5DPRINT: 4     AZTEEG_X3_PRO: 8
441 454
 // Actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS

+ 14
- 1
Marlin/example_configurations/Creality/CR-10/Configuration_adv.h Vedi File

@@ -434,8 +434,21 @@
434 434
 //#define DIGIPOT_MOTOR_CURRENT { 135,135,135,135,135 }   // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
435 435
 //#define DAC_MOTOR_CURRENT_DEFAULT { 70, 80, 90, 80 }    // Default drive percent - X, Y, Z, E axis
436 436
 
437
-// Uncomment to enable an I2C based DIGIPOT like on the Azteeg X3 Pro
437
+// Use an I2C based DIGIPOT (e.g., Azteeg X3 Pro)
438 438
 //#define DIGIPOT_I2C
439
+#if ENABLED(DIGIPOT_I2C) && !defined(DIGIPOT_I2C_ADDRESS_A)
440
+  /**
441
+   * Common slave addresses:
442
+   *
443
+   *                    A   (A shifted)   B   (B shifted)  IC
444
+   * Smoothie          0x2C (0x58)       0x2D (0x5A)       MCP4451
445
+   * AZTEEG_X3_PRO     0x2C (0x58)       0x2E (0x5C)       MCP4451
446
+   * MIGHTYBOARD_REVE  0x2F (0x5E)                         MCP4018
447
+   */
448
+  #define DIGIPOT_I2C_ADDRESS_A 0x2C  // unshifted slave address for first DIGIPOT
449
+  #define DIGIPOT_I2C_ADDRESS_B 0x2D  // unshifted slave address for second DIGIPOT
450
+#endif
451
+
439 452
 //#define DIGIPOT_MCP4018          // Requires library from https://github.com/stawel/SlowSoftI2CMaster
440 453
 #define DIGIPOT_I2C_NUM_CHANNELS 8 // 5DPRINT: 4     AZTEEG_X3_PRO: 8
441 454
 // Actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS

+ 14
- 1
Marlin/example_configurations/Felix/Configuration_adv.h Vedi File

@@ -434,8 +434,21 @@
434 434
 //#define DIGIPOT_MOTOR_CURRENT { 135,135,135,135,135 }   // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
435 435
 //#define DAC_MOTOR_CURRENT_DEFAULT { 70, 80, 90, 80 }    // Default drive percent - X, Y, Z, E axis
436 436
 
437
-// Uncomment to enable an I2C based DIGIPOT like on the Azteeg X3 Pro
437
+// Use an I2C based DIGIPOT (e.g., Azteeg X3 Pro)
438 438
 //#define DIGIPOT_I2C
439
+#if ENABLED(DIGIPOT_I2C) && !defined(DIGIPOT_I2C_ADDRESS_A)
440
+  /**
441
+   * Common slave addresses:
442
+   *
443
+   *                    A   (A shifted)   B   (B shifted)  IC
444
+   * Smoothie          0x2C (0x58)       0x2D (0x5A)       MCP4451
445
+   * AZTEEG_X3_PRO     0x2C (0x58)       0x2E (0x5C)       MCP4451
446
+   * MIGHTYBOARD_REVE  0x2F (0x5E)                         MCP4018
447
+   */
448
+  #define DIGIPOT_I2C_ADDRESS_A 0x2C  // unshifted slave address for first DIGIPOT
449
+  #define DIGIPOT_I2C_ADDRESS_B 0x2D  // unshifted slave address for second DIGIPOT
450
+#endif
451
+
439 452
 //#define DIGIPOT_MCP4018          // Requires library from https://github.com/stawel/SlowSoftI2CMaster
440 453
 #define DIGIPOT_I2C_NUM_CHANNELS 8 // 5DPRINT: 4     AZTEEG_X3_PRO: 8
441 454
 // Actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS

+ 14
- 1
Marlin/example_configurations/FolgerTech/i3-2020/Configuration_adv.h Vedi File

@@ -434,8 +434,21 @@
434 434
 //#define DIGIPOT_MOTOR_CURRENT { 135,135,135,135,135 }   // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
435 435
 //#define DAC_MOTOR_CURRENT_DEFAULT { 70, 80, 90, 80 }    // Default drive percent - X, Y, Z, E axis
436 436
 
437
-// Uncomment to enable an I2C based DIGIPOT like on the Azteeg X3 Pro
437
+// Use an I2C based DIGIPOT (e.g., Azteeg X3 Pro)
438 438
 //#define DIGIPOT_I2C
439
+#if ENABLED(DIGIPOT_I2C) && !defined(DIGIPOT_I2C_ADDRESS_A)
440
+  /**
441
+   * Common slave addresses:
442
+   *
443
+   *                    A   (A shifted)   B   (B shifted)  IC
444
+   * Smoothie          0x2C (0x58)       0x2D (0x5A)       MCP4451
445
+   * AZTEEG_X3_PRO     0x2C (0x58)       0x2E (0x5C)       MCP4451
446
+   * MIGHTYBOARD_REVE  0x2F (0x5E)                         MCP4018
447
+   */
448
+  #define DIGIPOT_I2C_ADDRESS_A 0x2C  // unshifted slave address for first DIGIPOT
449
+  #define DIGIPOT_I2C_ADDRESS_B 0x2D  // unshifted slave address for second DIGIPOT
450
+#endif
451
+
439 452
 //#define DIGIPOT_MCP4018          // Requires library from https://github.com/stawel/SlowSoftI2CMaster
440 453
 #define DIGIPOT_I2C_NUM_CHANNELS 8 // 5DPRINT: 4     AZTEEG_X3_PRO: 8
441 454
 // Actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS

+ 14
- 1
Marlin/example_configurations/Infitary/i3-M508/Configuration_adv.h Vedi File

@@ -434,8 +434,21 @@
434 434
 #define DIGIPOT_MOTOR_CURRENT { 135,135,135,135,135 }   // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
435 435
 //#define DAC_MOTOR_CURRENT_DEFAULT { 70, 80, 90, 80 }    // Default drive percent - X, Y, Z, E axis
436 436
 
437
-// Uncomment to enable an I2C based DIGIPOT like on the Azteeg X3 Pro
437
+// Use an I2C based DIGIPOT (e.g., Azteeg X3 Pro)
438 438
 //#define DIGIPOT_I2C
439
+#if ENABLED(DIGIPOT_I2C) && !defined(DIGIPOT_I2C_ADDRESS_A)
440
+  /**
441
+   * Common slave addresses:
442
+   *
443
+   *                    A   (A shifted)   B   (B shifted)  IC
444
+   * Smoothie          0x2C (0x58)       0x2D (0x5A)       MCP4451
445
+   * AZTEEG_X3_PRO     0x2C (0x58)       0x2E (0x5C)       MCP4451
446
+   * MIGHTYBOARD_REVE  0x2F (0x5E)                         MCP4018
447
+   */
448
+  #define DIGIPOT_I2C_ADDRESS_A 0x2C  // unshifted slave address for first DIGIPOT
449
+  #define DIGIPOT_I2C_ADDRESS_B 0x2D  // unshifted slave address for second DIGIPOT
450
+#endif
451
+
439 452
 //#define DIGIPOT_MCP4018          // Requires library from https://github.com/stawel/SlowSoftI2CMaster
440 453
 #define DIGIPOT_I2C_NUM_CHANNELS 8 // 5DPRINT: 4     AZTEEG_X3_PRO: 8
441 454
 // Actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS

+ 14
- 1
Marlin/example_configurations/Malyan/M150/Configuration_adv.h Vedi File

@@ -434,8 +434,21 @@
434 434
 //#define DIGIPOT_MOTOR_CURRENT { 135,135,135,135,135 }   // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
435 435
 //#define DAC_MOTOR_CURRENT_DEFAULT { 70, 80, 90, 80 }    // Default drive percent - X, Y, Z, E axis
436 436
 
437
-// Uncomment to enable an I2C based DIGIPOT like on the Azteeg X3 Pro
437
+// Use an I2C based DIGIPOT (e.g., Azteeg X3 Pro)
438 438
 //#define DIGIPOT_I2C
439
+#if ENABLED(DIGIPOT_I2C) && !defined(DIGIPOT_I2C_ADDRESS_A)
440
+  /**
441
+   * Common slave addresses:
442
+   *
443
+   *                    A   (A shifted)   B   (B shifted)  IC
444
+   * Smoothie          0x2C (0x58)       0x2D (0x5A)       MCP4451
445
+   * AZTEEG_X3_PRO     0x2C (0x58)       0x2E (0x5C)       MCP4451
446
+   * MIGHTYBOARD_REVE  0x2F (0x5E)                         MCP4018
447
+   */
448
+  #define DIGIPOT_I2C_ADDRESS_A 0x2C  // unshifted slave address for first DIGIPOT
449
+  #define DIGIPOT_I2C_ADDRESS_B 0x2D  // unshifted slave address for second DIGIPOT
450
+#endif
451
+
439 452
 //#define DIGIPOT_MCP4018          // Requires library from https://github.com/stawel/SlowSoftI2CMaster
440 453
 #define DIGIPOT_I2C_NUM_CHANNELS 8 // 5DPRINT: 4     AZTEEG_X3_PRO: 8
441 454
 // Actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS

+ 14
- 1
Marlin/example_configurations/Micromake/C1/enhanced/Configuration_adv.h Vedi File

@@ -434,8 +434,21 @@
434 434
 //#define DIGIPOT_MOTOR_CURRENT { 135,135,135,135,135 }   // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
435 435
 //#define DAC_MOTOR_CURRENT_DEFAULT { 70, 80, 90, 80 }    // Default drive percent - X, Y, Z, E axis
436 436
 
437
-// Uncomment to enable an I2C based DIGIPOT like on the Azteeg X3 Pro
437
+// Use an I2C based DIGIPOT (e.g., Azteeg X3 Pro)
438 438
 //#define DIGIPOT_I2C
439
+#if ENABLED(DIGIPOT_I2C) && !defined(DIGIPOT_I2C_ADDRESS_A)
440
+  /**
441
+   * Common slave addresses:
442
+   *
443
+   *                    A   (A shifted)   B   (B shifted)  IC
444
+   * Smoothie          0x2C (0x58)       0x2D (0x5A)       MCP4451
445
+   * AZTEEG_X3_PRO     0x2C (0x58)       0x2E (0x5C)       MCP4451
446
+   * MIGHTYBOARD_REVE  0x2F (0x5E)                         MCP4018
447
+   */
448
+  #define DIGIPOT_I2C_ADDRESS_A 0x2C  // unshifted slave address for first DIGIPOT
449
+  #define DIGIPOT_I2C_ADDRESS_B 0x2D  // unshifted slave address for second DIGIPOT
450
+#endif
451
+
439 452
 //#define DIGIPOT_MCP4018          // Requires library from https://github.com/stawel/SlowSoftI2CMaster
440 453
 #define DIGIPOT_I2C_NUM_CHANNELS 8 // 5DPRINT: 4     AZTEEG_X3_PRO: 8
441 454
 // Actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS

+ 14
- 1
Marlin/example_configurations/RigidBot/Configuration_adv.h Vedi File

@@ -434,8 +434,21 @@
434 434
 //#define DIGIPOT_MOTOR_CURRENT { 135,135,135,135,135 }   // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
435 435
 //#define DAC_MOTOR_CURRENT_DEFAULT { 70, 80, 90, 80 }    // Default drive percent - X, Y, Z, E axis
436 436
 
437
-// Uncomment to enable an I2C based DIGIPOT like on the Azteeg X3 Pro
437
+// Use an I2C based DIGIPOT (e.g., Azteeg X3 Pro)
438 438
 //#define DIGIPOT_I2C
439
+#if ENABLED(DIGIPOT_I2C) && !defined(DIGIPOT_I2C_ADDRESS_A)
440
+  /**
441
+   * Common slave addresses:
442
+   *
443
+   *                    A   (A shifted)   B   (B shifted)  IC
444
+   * Smoothie          0x2C (0x58)       0x2D (0x5A)       MCP4451
445
+   * AZTEEG_X3_PRO     0x2C (0x58)       0x2E (0x5C)       MCP4451
446
+   * MIGHTYBOARD_REVE  0x2F (0x5E)                         MCP4018
447
+   */
448
+  #define DIGIPOT_I2C_ADDRESS_A 0x2C  // unshifted slave address for first DIGIPOT
449
+  #define DIGIPOT_I2C_ADDRESS_B 0x2D  // unshifted slave address for second DIGIPOT
450
+#endif
451
+
439 452
 //#define DIGIPOT_MCP4018          // Requires library from https://github.com/stawel/SlowSoftI2CMaster
440 453
 #define DIGIPOT_I2C_NUM_CHANNELS 8 // 5DPRINT: 4     AZTEEG_X3_PRO: 8
441 454
 // Actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS

+ 14
- 1
Marlin/example_configurations/SCARA/Configuration_adv.h Vedi File

@@ -434,8 +434,21 @@
434 434
 //#define DIGIPOT_MOTOR_CURRENT { 135,135,135,135,135 }   // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
435 435
 //#define DAC_MOTOR_CURRENT_DEFAULT { 70, 80, 90, 80 }    // Default drive percent - X, Y, Z, E axis
436 436
 
437
-// Uncomment to enable an I2C based DIGIPOT like on the Azteeg X3 Pro
437
+// Use an I2C based DIGIPOT (e.g., Azteeg X3 Pro)
438 438
 //#define DIGIPOT_I2C
439
+#if ENABLED(DIGIPOT_I2C) && !defined(DIGIPOT_I2C_ADDRESS_A)
440
+  /**
441
+   * Common slave addresses:
442
+   *
443
+   *                    A   (A shifted)   B   (B shifted)  IC
444
+   * Smoothie          0x2C (0x58)       0x2D (0x5A)       MCP4451
445
+   * AZTEEG_X3_PRO     0x2C (0x58)       0x2E (0x5C)       MCP4451
446
+   * MIGHTYBOARD_REVE  0x2F (0x5E)                         MCP4018
447
+   */
448
+  #define DIGIPOT_I2C_ADDRESS_A 0x2C  // unshifted slave address for first DIGIPOT
449
+  #define DIGIPOT_I2C_ADDRESS_B 0x2D  // unshifted slave address for second DIGIPOT
450
+#endif
451
+
439 452
 //#define DIGIPOT_MCP4018          // Requires library from https://github.com/stawel/SlowSoftI2CMaster
440 453
 #define DIGIPOT_I2C_NUM_CHANNELS 8 // 5DPRINT: 4     AZTEEG_X3_PRO: 8
441 454
 // Actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS

+ 14
- 1
Marlin/example_configurations/Sanguinololu/Configuration_adv.h Vedi File

@@ -423,8 +423,21 @@
423 423
 //#define DIGIPOT_MOTOR_CURRENT { 135,135,135,135,135 }   // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
424 424
 //#define DAC_MOTOR_CURRENT_DEFAULT { 70, 80, 90, 80 }    // Default drive percent - X, Y, Z, E axis
425 425
 
426
-// Uncomment to enable an I2C based DIGIPOT like on the Azteeg X3 Pro
426
+// Use an I2C based DIGIPOT (e.g., Azteeg X3 Pro)
427 427
 //#define DIGIPOT_I2C
428
+#if ENABLED(DIGIPOT_I2C) && !defined(DIGIPOT_I2C_ADDRESS_A)
429
+  /**
430
+   * Common slave addresses:
431
+   *
432
+   *                    A   (A shifted)   B   (B shifted)  IC
433
+   * Smoothie          0x2C (0x58)       0x2D (0x5A)       MCP4451
434
+   * AZTEEG_X3_PRO     0x2C (0x58)       0x2E (0x5C)       MCP4451
435
+   * MIGHTYBOARD_REVE  0x2F (0x5E)                         MCP4018
436
+   */
437
+  #define DIGIPOT_I2C_ADDRESS_A 0x2C  // unshifted slave address for first DIGIPOT
438
+  #define DIGIPOT_I2C_ADDRESS_B 0x2D  // unshifted slave address for second DIGIPOT
439
+#endif
440
+
428 441
 //#define DIGIPOT_MCP4018          // Requires library from https://github.com/stawel/SlowSoftI2CMaster
429 442
 #define DIGIPOT_I2C_NUM_CHANNELS 8 // 5DPRINT: 4     AZTEEG_X3_PRO: 8
430 443
 // Actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS

+ 14
- 1
Marlin/example_configurations/TinyBoy2/Configuration_adv.h Vedi File

@@ -434,8 +434,21 @@
434 434
 //#define DIGIPOT_MOTOR_CURRENT { 135,135,135,135,135 }   // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
435 435
 //#define DAC_MOTOR_CURRENT_DEFAULT { 70, 80, 90, 80 }    // Default drive percent - X, Y, Z, E axis
436 436
 
437
-// Uncomment to enable an I2C based DIGIPOT like on the Azteeg X3 Pro
437
+// Use an I2C based DIGIPOT (e.g., Azteeg X3 Pro)
438 438
 //#define DIGIPOT_I2C
439
+#if ENABLED(DIGIPOT_I2C) && !defined(DIGIPOT_I2C_ADDRESS_A)
440
+  /**
441
+   * Common slave addresses:
442
+   *
443
+   *                    A   (A shifted)   B   (B shifted)  IC
444
+   * Smoothie          0x2C (0x58)       0x2D (0x5A)       MCP4451
445
+   * AZTEEG_X3_PRO     0x2C (0x58)       0x2E (0x5C)       MCP4451
446
+   * MIGHTYBOARD_REVE  0x2F (0x5E)                         MCP4018
447
+   */
448
+  #define DIGIPOT_I2C_ADDRESS_A 0x2C  // unshifted slave address for first DIGIPOT
449
+  #define DIGIPOT_I2C_ADDRESS_B 0x2D  // unshifted slave address for second DIGIPOT
450
+#endif
451
+
439 452
 //#define DIGIPOT_MCP4018          // Requires library from https://github.com/stawel/SlowSoftI2CMaster
440 453
 #define DIGIPOT_I2C_NUM_CHANNELS 8 // 5DPRINT: 4     AZTEEG_X3_PRO: 8
441 454
 // Actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS

+ 14
- 1
Marlin/example_configurations/Velleman/K8200/Configuration_adv.h Vedi File

@@ -447,8 +447,21 @@
447 447
 //#define DIGIPOT_MOTOR_CURRENT { 135,135,135,135,135 }   // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
448 448
 //#define DAC_MOTOR_CURRENT_DEFAULT { 70, 80, 90, 80 }    // Default drive percent - X, Y, Z, E axis
449 449
 
450
-// Uncomment to enable an I2C based DIGIPOT like on the Azteeg X3 Pro
450
+// Use an I2C based DIGIPOT (e.g., Azteeg X3 Pro)
451 451
 //#define DIGIPOT_I2C
452
+#if ENABLED(DIGIPOT_I2C) && !defined(DIGIPOT_I2C_ADDRESS_A)
453
+  /**
454
+   * Common slave addresses:
455
+   *
456
+   *                    A   (A shifted)   B   (B shifted)  IC
457
+   * Smoothie          0x2C (0x58)       0x2D (0x5A)       MCP4451
458
+   * AZTEEG_X3_PRO     0x2C (0x58)       0x2E (0x5C)       MCP4451
459
+   * MIGHTYBOARD_REVE  0x2F (0x5E)                         MCP4018
460
+   */
461
+  #define DIGIPOT_I2C_ADDRESS_A 0x2C  // unshifted slave address for first DIGIPOT
462
+  #define DIGIPOT_I2C_ADDRESS_B 0x2D  // unshifted slave address for second DIGIPOT
463
+#endif
464
+
452 465
 //#define DIGIPOT_MCP4018          // Requires library from https://github.com/stawel/SlowSoftI2CMaster
453 466
 #define DIGIPOT_I2C_NUM_CHANNELS 8 // 5DPRINT: 4     AZTEEG_X3_PRO: 8
454 467
 // Actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS

+ 14
- 1
Marlin/example_configurations/Velleman/K8400/Configuration_adv.h Vedi File

@@ -434,8 +434,21 @@
434 434
 //#define DIGIPOT_MOTOR_CURRENT { 135,135,135,135,135 }   // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
435 435
 //#define DAC_MOTOR_CURRENT_DEFAULT { 70, 80, 90, 80 }    // Default drive percent - X, Y, Z, E axis
436 436
 
437
-// Uncomment to enable an I2C based DIGIPOT like on the Azteeg X3 Pro
437
+// Use an I2C based DIGIPOT (e.g., Azteeg X3 Pro)
438 438
 //#define DIGIPOT_I2C
439
+#if ENABLED(DIGIPOT_I2C) && !defined(DIGIPOT_I2C_ADDRESS_A)
440
+  /**
441
+   * Common slave addresses:
442
+   *
443
+   *                    A   (A shifted)   B   (B shifted)  IC
444
+   * Smoothie          0x2C (0x58)       0x2D (0x5A)       MCP4451
445
+   * AZTEEG_X3_PRO     0x2C (0x58)       0x2E (0x5C)       MCP4451
446
+   * MIGHTYBOARD_REVE  0x2F (0x5E)                         MCP4018
447
+   */
448
+  #define DIGIPOT_I2C_ADDRESS_A 0x2C  // unshifted slave address for first DIGIPOT
449
+  #define DIGIPOT_I2C_ADDRESS_B 0x2D  // unshifted slave address for second DIGIPOT
450
+#endif
451
+
439 452
 //#define DIGIPOT_MCP4018          // Requires library from https://github.com/stawel/SlowSoftI2CMaster
440 453
 #define DIGIPOT_I2C_NUM_CHANNELS 8 // 5DPRINT: 4     AZTEEG_X3_PRO: 8
441 454
 // Actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS

+ 14
- 1
Marlin/example_configurations/delta/FLSUN/auto_calibrate/Configuration_adv.h Vedi File

@@ -436,8 +436,21 @@
436 436
 #define DIGIPOT_MOTOR_CURRENT { 135,135,135,135,135 }   // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
437 437
 //#define DAC_MOTOR_CURRENT_DEFAULT { 70, 80, 90, 80 }    // Default drive percent - X, Y, Z, E axis
438 438
 
439
-// Uncomment to enable an I2C based DIGIPOT like on the Azteeg X3 Pro
439
+// Use an I2C based DIGIPOT (e.g., Azteeg X3 Pro)
440 440
 //#define DIGIPOT_I2C
441
+#if ENABLED(DIGIPOT_I2C) && !defined(DIGIPOT_I2C_ADDRESS_A)
442
+  /**
443
+   * Common slave addresses:
444
+   *
445
+   *                    A   (A shifted)   B   (B shifted)  IC
446
+   * Smoothie          0x2C (0x58)       0x2D (0x5A)       MCP4451
447
+   * AZTEEG_X3_PRO     0x2C (0x58)       0x2E (0x5C)       MCP4451
448
+   * MIGHTYBOARD_REVE  0x2F (0x5E)                         MCP4018
449
+   */
450
+  #define DIGIPOT_I2C_ADDRESS_A 0x2C  // unshifted slave address for first DIGIPOT
451
+  #define DIGIPOT_I2C_ADDRESS_B 0x2D  // unshifted slave address for second DIGIPOT
452
+#endif
453
+
441 454
 //#define DIGIPOT_MCP4018          // Requires library from https://github.com/stawel/SlowSoftI2CMaster
442 455
 #define DIGIPOT_I2C_NUM_CHANNELS 8 // 5DPRINT: 4     AZTEEG_X3_PRO: 8
443 456
 // Actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS

+ 14
- 1
Marlin/example_configurations/delta/FLSUN/kossel_mini/Configuration_adv.h Vedi File

@@ -436,8 +436,21 @@
436 436
 //#define DIGIPOT_MOTOR_CURRENT { 135,135,135,135,135 }   // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
437 437
 //#define DAC_MOTOR_CURRENT_DEFAULT { 70, 80, 90, 80 }    // Default drive percent - X, Y, Z, E axis
438 438
 
439
-// Uncomment to enable an I2C based DIGIPOT like on the Azteeg X3 Pro
439
+// Use an I2C based DIGIPOT (e.g., Azteeg X3 Pro)
440 440
 //#define DIGIPOT_I2C
441
+#if ENABLED(DIGIPOT_I2C) && !defined(DIGIPOT_I2C_ADDRESS_A)
442
+  /**
443
+   * Common slave addresses:
444
+   *
445
+   *                    A   (A shifted)   B   (B shifted)  IC
446
+   * Smoothie          0x2C (0x58)       0x2D (0x5A)       MCP4451
447
+   * AZTEEG_X3_PRO     0x2C (0x58)       0x2E (0x5C)       MCP4451
448
+   * MIGHTYBOARD_REVE  0x2F (0x5E)                         MCP4018
449
+   */
450
+  #define DIGIPOT_I2C_ADDRESS_A 0x2C  // unshifted slave address for first DIGIPOT
451
+  #define DIGIPOT_I2C_ADDRESS_B 0x2D  // unshifted slave address for second DIGIPOT
452
+#endif
453
+
441 454
 //#define DIGIPOT_MCP4018          // Requires library from https://github.com/stawel/SlowSoftI2CMaster
442 455
 #define DIGIPOT_I2C_NUM_CHANNELS 8 // 5DPRINT: 4     AZTEEG_X3_PRO: 8
443 456
 // Actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS

+ 14
- 1
Marlin/example_configurations/delta/generic/Configuration_adv.h Vedi File

@@ -436,8 +436,21 @@
436 436
 //#define DIGIPOT_MOTOR_CURRENT { 135,135,135,135,135 }   // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
437 437
 //#define DAC_MOTOR_CURRENT_DEFAULT { 70, 80, 90, 80 }    // Default drive percent - X, Y, Z, E axis
438 438
 
439
-// Uncomment to enable an I2C based DIGIPOT like on the Azteeg X3 Pro
439
+// Use an I2C based DIGIPOT (e.g., Azteeg X3 Pro)
440 440
 //#define DIGIPOT_I2C
441
+#if ENABLED(DIGIPOT_I2C) && !defined(DIGIPOT_I2C_ADDRESS_A)
442
+  /**
443
+   * Common slave addresses:
444
+   *
445
+   *                    A   (A shifted)   B   (B shifted)  IC
446
+   * Smoothie          0x2C (0x58)       0x2D (0x5A)       MCP4451
447
+   * AZTEEG_X3_PRO     0x2C (0x58)       0x2E (0x5C)       MCP4451
448
+   * MIGHTYBOARD_REVE  0x2F (0x5E)                         MCP4018
449
+   */
450
+  #define DIGIPOT_I2C_ADDRESS_A 0x2C  // unshifted slave address for first DIGIPOT
451
+  #define DIGIPOT_I2C_ADDRESS_B 0x2D  // unshifted slave address for second DIGIPOT
452
+#endif
453
+
441 454
 //#define DIGIPOT_MCP4018          // Requires library from https://github.com/stawel/SlowSoftI2CMaster
442 455
 #define DIGIPOT_I2C_NUM_CHANNELS 8 // 5DPRINT: 4     AZTEEG_X3_PRO: 8
443 456
 // Actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS

+ 14
- 1
Marlin/example_configurations/delta/kossel_mini/Configuration_adv.h Vedi File

@@ -436,8 +436,21 @@
436 436
 //#define DIGIPOT_MOTOR_CURRENT { 135,135,135,135,135 }   // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
437 437
 //#define DAC_MOTOR_CURRENT_DEFAULT { 70, 80, 90, 80 }    // Default drive percent - X, Y, Z, E axis
438 438
 
439
-// Uncomment to enable an I2C based DIGIPOT like on the Azteeg X3 Pro
439
+// Use an I2C based DIGIPOT (e.g., Azteeg X3 Pro)
440 440
 //#define DIGIPOT_I2C
441
+#if ENABLED(DIGIPOT_I2C) && !defined(DIGIPOT_I2C_ADDRESS_A)
442
+  /**
443
+   * Common slave addresses:
444
+   *
445
+   *                    A   (A shifted)   B   (B shifted)  IC
446
+   * Smoothie          0x2C (0x58)       0x2D (0x5A)       MCP4451
447
+   * AZTEEG_X3_PRO     0x2C (0x58)       0x2E (0x5C)       MCP4451
448
+   * MIGHTYBOARD_REVE  0x2F (0x5E)                         MCP4018
449
+   */
450
+  #define DIGIPOT_I2C_ADDRESS_A 0x2C  // unshifted slave address for first DIGIPOT
451
+  #define DIGIPOT_I2C_ADDRESS_B 0x2D  // unshifted slave address for second DIGIPOT
452
+#endif
453
+
441 454
 //#define DIGIPOT_MCP4018          // Requires library from https://github.com/stawel/SlowSoftI2CMaster
442 455
 #define DIGIPOT_I2C_NUM_CHANNELS 8 // 5DPRINT: 4     AZTEEG_X3_PRO: 8
443 456
 // Actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS

+ 14
- 1
Marlin/example_configurations/delta/kossel_pro/Configuration_adv.h Vedi File

@@ -441,8 +441,21 @@
441 441
 //#define DIGIPOT_MOTOR_CURRENT { 135,135,135,135,135 }   // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
442 442
 //#define DAC_MOTOR_CURRENT_DEFAULT { 70, 80, 90, 80 }    // Default drive percent - X, Y, Z, E axis
443 443
 
444
-// Uncomment to enable an I2C based DIGIPOT like on the Azteeg X3 Pro
444
+// Use an I2C based DIGIPOT (e.g., Azteeg X3 Pro)
445 445
 //#define DIGIPOT_I2C
446
+#if ENABLED(DIGIPOT_I2C) && !defined(DIGIPOT_I2C_ADDRESS_A)
447
+  /**
448
+   * Common slave addresses:
449
+   *
450
+   *                    A   (A shifted)   B   (B shifted)  IC
451
+   * Smoothie          0x2C (0x58)       0x2D (0x5A)       MCP4451
452
+   * AZTEEG_X3_PRO     0x2C (0x58)       0x2E (0x5C)       MCP4451
453
+   * MIGHTYBOARD_REVE  0x2F (0x5E)                         MCP4018
454
+   */
455
+  #define DIGIPOT_I2C_ADDRESS_A 0x2C  // unshifted slave address for first DIGIPOT
456
+  #define DIGIPOT_I2C_ADDRESS_B 0x2D  // unshifted slave address for second DIGIPOT
457
+#endif
458
+
446 459
 //#define DIGIPOT_MCP4018          // Requires library from https://github.com/stawel/SlowSoftI2CMaster
447 460
 #define DIGIPOT_I2C_NUM_CHANNELS 8 // 5DPRINT: 4     AZTEEG_X3_PRO: 8
448 461
 // Actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS

+ 14
- 1
Marlin/example_configurations/delta/kossel_xl/Configuration_adv.h Vedi File

@@ -436,8 +436,21 @@
436 436
 //#define DIGIPOT_MOTOR_CURRENT { 135,135,135,135,135 }   // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
437 437
 //#define DAC_MOTOR_CURRENT_DEFAULT { 70, 80, 90, 80 }    // Default drive percent - X, Y, Z, E axis
438 438
 
439
-// Uncomment to enable an I2C based DIGIPOT like on the Azteeg X3 Pro
439
+// Use an I2C based DIGIPOT (e.g., Azteeg X3 Pro)
440 440
 //#define DIGIPOT_I2C
441
+#if ENABLED(DIGIPOT_I2C) && !defined(DIGIPOT_I2C_ADDRESS_A)
442
+  /**
443
+   * Common slave addresses:
444
+   *
445
+   *                    A   (A shifted)   B   (B shifted)  IC
446
+   * Smoothie          0x2C (0x58)       0x2D (0x5A)       MCP4451
447
+   * AZTEEG_X3_PRO     0x2C (0x58)       0x2E (0x5C)       MCP4451
448
+   * MIGHTYBOARD_REVE  0x2F (0x5E)                         MCP4018
449
+   */
450
+  #define DIGIPOT_I2C_ADDRESS_A 0x2C  // unshifted slave address for first DIGIPOT
451
+  #define DIGIPOT_I2C_ADDRESS_B 0x2D  // unshifted slave address for second DIGIPOT
452
+#endif
453
+
441 454
 //#define DIGIPOT_MCP4018          // Requires library from https://github.com/stawel/SlowSoftI2CMaster
442 455
 #define DIGIPOT_I2C_NUM_CHANNELS 8 // 5DPRINT: 4     AZTEEG_X3_PRO: 8
443 456
 // Actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS

+ 14
- 1
Marlin/example_configurations/gCreate/gMax1.5+/Configuration_adv.h Vedi File

@@ -434,8 +434,21 @@
434 434
 //#define DIGIPOT_MOTOR_CURRENT { 135,135,135,135,135 }   // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
435 435
 //#define DAC_MOTOR_CURRENT_DEFAULT { 70, 80, 90, 80 }    // Default drive percent - X, Y, Z, E axis
436 436
 
437
-// Uncomment to enable an I2C based DIGIPOT like on the Azteeg X3 Pro
437
+// Use an I2C based DIGIPOT (e.g., Azteeg X3 Pro)
438 438
 //#define DIGIPOT_I2C
439
+#if ENABLED(DIGIPOT_I2C) && !defined(DIGIPOT_I2C_ADDRESS_A)
440
+  /**
441
+   * Common slave addresses:
442
+   *
443
+   *                    A   (A shifted)   B   (B shifted)  IC
444
+   * Smoothie          0x2C (0x58)       0x2D (0x5A)       MCP4451
445
+   * AZTEEG_X3_PRO     0x2C (0x58)       0x2E (0x5C)       MCP4451
446
+   * MIGHTYBOARD_REVE  0x2F (0x5E)                         MCP4018
447
+   */
448
+  #define DIGIPOT_I2C_ADDRESS_A 0x2C  // unshifted slave address for first DIGIPOT
449
+  #define DIGIPOT_I2C_ADDRESS_B 0x2D  // unshifted slave address for second DIGIPOT
450
+#endif
451
+
439 452
 //#define DIGIPOT_MCP4018          // Requires library from https://github.com/stawel/SlowSoftI2CMaster
440 453
 #define DIGIPOT_I2C_NUM_CHANNELS 8 // 5DPRINT: 4     AZTEEG_X3_PRO: 8
441 454
 // Actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS

+ 14
- 1
Marlin/example_configurations/makibox/Configuration_adv.h Vedi File

@@ -434,8 +434,21 @@
434 434
 //#define DIGIPOT_MOTOR_CURRENT { 135,135,135,135,135 }   // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
435 435
 //#define DAC_MOTOR_CURRENT_DEFAULT { 70, 80, 90, 80 }    // Default drive percent - X, Y, Z, E axis
436 436
 
437
-// Uncomment to enable an I2C based DIGIPOT like on the Azteeg X3 Pro
437
+// Use an I2C based DIGIPOT (e.g., Azteeg X3 Pro)
438 438
 //#define DIGIPOT_I2C
439
+#if ENABLED(DIGIPOT_I2C) && !defined(DIGIPOT_I2C_ADDRESS_A)
440
+  /**
441
+   * Common slave addresses:
442
+   *
443
+   *                    A   (A shifted)   B   (B shifted)  IC
444
+   * Smoothie          0x2C (0x58)       0x2D (0x5A)       MCP4451
445
+   * AZTEEG_X3_PRO     0x2C (0x58)       0x2E (0x5C)       MCP4451
446
+   * MIGHTYBOARD_REVE  0x2F (0x5E)                         MCP4018
447
+   */
448
+  #define DIGIPOT_I2C_ADDRESS_A 0x2C  // unshifted slave address for first DIGIPOT
449
+  #define DIGIPOT_I2C_ADDRESS_B 0x2D  // unshifted slave address for second DIGIPOT
450
+#endif
451
+
439 452
 //#define DIGIPOT_MCP4018          // Requires library from https://github.com/stawel/SlowSoftI2CMaster
440 453
 #define DIGIPOT_I2C_NUM_CHANNELS 4 // 5DPRINT: 4     AZTEEG_X3_PRO: 8
441 454
 // Actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS

+ 14
- 1
Marlin/example_configurations/tvrrug/Round2/Configuration_adv.h Vedi File

@@ -434,8 +434,21 @@
434 434
 //#define DIGIPOT_MOTOR_CURRENT { 135,135,135,135,135 }   // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
435 435
 //#define DAC_MOTOR_CURRENT_DEFAULT { 70, 80, 90, 80 }    // Default drive percent - X, Y, Z, E axis
436 436
 
437
-// Uncomment to enable an I2C based DIGIPOT like on the Azteeg X3 Pro
437
+// Use an I2C based DIGIPOT (e.g., Azteeg X3 Pro)
438 438
 //#define DIGIPOT_I2C
439
+#if ENABLED(DIGIPOT_I2C) && !defined(DIGIPOT_I2C_ADDRESS_A)
440
+  /**
441
+   * Common slave addresses:
442
+   *
443
+   *                    A   (A shifted)   B   (B shifted)  IC
444
+   * Smoothie          0x2C (0x58)       0x2D (0x5A)       MCP4451
445
+   * AZTEEG_X3_PRO     0x2C (0x58)       0x2E (0x5C)       MCP4451
446
+   * MIGHTYBOARD_REVE  0x2F (0x5E)                         MCP4018
447
+   */
448
+  #define DIGIPOT_I2C_ADDRESS_A 0x2C  // unshifted slave address for first DIGIPOT
449
+  #define DIGIPOT_I2C_ADDRESS_B 0x2D  // unshifted slave address for second DIGIPOT
450
+#endif
451
+
439 452
 //#define DIGIPOT_MCP4018          // Requires library from https://github.com/stawel/SlowSoftI2CMaster
440 453
 #define DIGIPOT_I2C_NUM_CHANNELS 8 // 5DPRINT: 4     AZTEEG_X3_PRO: 8
441 454
 // Actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS

Loading…
Annulla
Salva