LOOP_LOGICAL_AXES(i)if(parser.seenval(IAXIS_CHAR(i)))stepper.set_digipot_current(i,parser.value_int());// X Y Z (I J K U V W) E (map to drivers according to DIGIPOT_CHANNELS. Default with NUM_AXES 3: map X Y Z E to X Y Z E0)
// Additional extruders use B,C.
// TODO: Change these parameters because 'E' is used and D should be reserved for debugging. B<index>?
LOOP_LOGICAL_AXES(i)if(parser.seenval(IAXIS_CHAR(i)))digipot_i2c.set_current(i,parser.value_float());// X Y Z (I J K U V W) E (map to drivers according to pots adresses. Default with NUM_AXES 3 X Y Z E: map to X Y Z E0)
// Additional extruders use B,C,D.
// TODO: Change these parameters because 'E' is used and because 'D' should be reserved for debugging. B<index>?
LOOP_LOGICAL_AXES(i)if(parser.seenval(IAXIS_CHAR(i)))stepper_dac.set_current_percent(i,parser.value_float());// X Y Z (I J K U V W) E (map to drivers according to DAC_STEPPER_ORDER. Default with NUM_AXES 3: X Y Z E map to X Y Z E0)
#endif
}
@ -119,8 +139,14 @@ void GcodeSuite::M907() {
SERIAL_CHAR('',IAXIS_CHAR(q));
SERIAL_ECHO(stepper.motor_current_setting[q]);
}
SERIAL_CHAR('','B');// B (maps to E1 by default)
SERIAL_ECHOLN(stepper.motor_current_setting[4]);
#if E_STEPPERS >= 2
SERIAL_ECHOPGM_P(PSTR(" B"),stepper.motor_current_setting[E_AXIS+1]// B (maps to E1 with NUM_AXES 3 according to DIGIPOT_CHANNELS)
#if E_STEPPERS >= 3
,PSTR(" C"),stepper.motor_current_setting[E_AXIS+2]// C (mapping to E2 must be defined by DIGIPOT_CHANNELS)