Add Ultiboard2 electronics. With PWM current settings. For the few people that have this new board as experiment in their UM-Original.

This commit is contained in:
daid
2014-01-06 11:05:02 +01:00
parent 89a304fd98
commit 380144c20f
3 changed files with 110 additions and 0 deletions

View File

@@ -2778,6 +2778,15 @@ void process_commands()
if(code_seen('B')) digipot_current(4,code_value());
if(code_seen('S')) for(int i=0;i<=4;i++) digipot_current(i,code_value());
#endif
#ifdef MOTOR_CURRENT_PWM_XY_PIN
if(code_seen('X')) digipot_current(0, code_value());
#endif
#ifdef MOTOR_CURRENT_PWM_Z_PIN
if(code_seen('Z')) digipot_current(1, code_value());
#endif
#ifdef MOTOR_CURRENT_PWM_E_PIN
if(code_seen('E')) digipot_current(2, code_value());
#endif
}
break;
case 908: // M908 Control digital trimpot directly.