本文整理汇总了C++中setTargetHotend2函数的典型用法代码示例。如果您正苦于以下问题:C++ setTargetHotend2函数的具体用法?C++ setTargetHotend2怎么用?C++ setTargetHotend2使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了setTargetHotend2函数的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: checkHitEndstops
void checkHitEndstops()
{
if( endstop_x_hit || endstop_y_hit || endstop_z_hit) {
SERIAL_ECHO_START;
SERIAL_ECHOPGM(MSG_ENDSTOPS_HIT);
if(endstop_x_hit) {
SERIAL_ECHOPAIR(" X:",(float)endstops_trigsteps[X_AXIS]/axis_steps_per_unit[X_AXIS]);
LCD_MESSAGEPGM(MSG_ENDSTOPS_HIT "X");
}
if(endstop_y_hit) {
SERIAL_ECHOPAIR(" Y:",(float)endstops_trigsteps[Y_AXIS]/axis_steps_per_unit[Y_AXIS]);
LCD_MESSAGEPGM(MSG_ENDSTOPS_HIT "Y");
}
if(endstop_z_hit) {
SERIAL_ECHOPAIR(" Z:",(float)endstops_trigsteps[Z_AXIS]/axis_steps_per_unit[Z_AXIS]);
LCD_MESSAGEPGM(MSG_ENDSTOPS_HIT "Z");
}
SERIAL_ECHOLN("");
endstop_x_hit=false;
endstop_y_hit=false;
endstop_z_hit=false;
#ifdef ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
if (abort_on_endstop_hit)
{
card.sdprinting = false;
card.closefile();
quickStop();
setTargetHotend0(0);
setTargetHotend1(0);
setTargetHotend2(0);
}
#endif
}
}
示例2: lcd_cooldown
static void lcd_cooldown()
{
setTargetHotend0(0);
setTargetHotend1(0);
setTargetHotend2(0);
setTargetBed(0);
lcd_return_to_status();
}
示例3: lcd_preheat_abs2
void lcd_preheat_abs2()
{
setTargetHotend2(absPreheatHotendTemp);
setTargetBed(absPreheatHPBTemp);
fanSpeed = absPreheatFanSpeed;
lcd_return_to_status();
setWatch(); // heater sanity check timer
}
示例4: lcd_preheat_pla
void lcd_preheat_pla()
{
setTargetHotend0(plaPreheatHotendTemp);
setTargetHotend1(plaPreheatHotendTemp);
setTargetHotend2(plaPreheatHotendTemp);
setTargetBed(plaPreheatHPBTemp);
fanSpeed = plaPreheatFanSpeed;
lcd_return_to_status();
}
示例5: lcd_preheat_abs
void lcd_preheat_abs()
{
setTargetHotend0(absPreheatHotendTemp);
setTargetHotend1(absPreheatHotendTemp);
setTargetHotend2(absPreheatHotendTemp);
setTargetBed(absPreheatHPBTemp);
fanSpeed = absPreheatFanSpeed;
lcd_return_to_status();
}
示例6: lcd_preheat_pla
void lcd_preheat_pla()
{
setTargetHotend0(plaPreheatHotendTemp);
setTargetHotend1(plaPreheatHotendTemp);
setTargetHotend2(plaPreheatHotendTemp);
setTargetBed(plaPreheatHPBTemp);
fanSpeed = plaPreheatFanSpeed;
lcd_return_to_status();
setWatch(); // heater sanity check timer
}
示例7: lcd_preheat_laybrick
void lcd_preheat_laybrick()
{
setTargetHotend0(LAYBRICK_PREHEAT_HOTEND_TEMP);
setTargetHotend1(LAYBRICK_PREHEAT_HOTEND_TEMP);
setTargetHotend2(LAYBRICK_PREHEAT_HOTEND_TEMP);
setTargetBed(LAYBRICK_PREHEAT_HPB_TEMP);
fanSpeed = LAYBRICK_PREHEAT_FAN_SPEED;
lcd_return_to_status();
setWatch(); // heater sanity check timer
}
示例8: lcd_preheat_nylon
void lcd_preheat_nylon()
{
setTargetHotend0(nylonPreheatHotendTemp);
setTargetHotend1(nylonPreheatHotendTemp);
setTargetHotend2(nylonPreheatHotendTemp);
setTargetBed(nylonPreheatHPBTemp);
fanSpeed = nylonPreheatFanSpeed;
lcd_return_to_status();
setWatch(); // heater sanity check timer
}
示例9: lcd_preheat_abs
void lcd_preheat_abs()
{
setTargetHotend0(absPreheatHotendTemp);
setTargetHotend1(absPreheatHotendTemp);
setTargetHotend2(absPreheatHotendTemp);
setTargetBed(absPreheatHPBTemp);
#if FAN_PIN > -1
fanSpeed = absPreheatFanSpeed;
analogWrite(FAN_PIN, fanSpeed);
#endif
lcd_return_to_status();
}
示例10: checkHitEndstops
void checkHitEndstops()
{
if( endstop_x_hit || endstop_y_hit || endstop_z_hit || endstop_j_hit) {
SERIAL_ECHO_START;
snprintf(json_str,JSONSIZE,"{%s:[",MSG_ENDSTOPS_HIT);
SERIAL_PROTOCOL(json_str);
comma = false;
if(endstop_x_hit) {
SERIAL_PROTOCOLPGM("\"x\"");
LCD_MESSAGEPGM(MSG_ENDSTOPS_HIT "X");
comma = true;
}
if(endstop_y_hit) {
if (comma) SERIAL_PROTOCOLPGM(",");
SERIAL_PROTOCOLPGM("\"y\"");
LCD_MESSAGEPGM(MSG_ENDSTOPS_HIT "Y");
comma = true;
}
if(endstop_z_hit) {
if (comma) SERIAL_PROTOCOLPGM(",");
SERIAL_PROTOCOLPGM("\"z\"");
LCD_MESSAGEPGM(MSG_ENDSTOPS_HIT "Z");
comma = true;
}
if(endstop_j_hit) {
if (comma) SERIAL_PROTOCOLPGM(",");
SERIAL_PROTOCOLPGM("\"j\"");
LCD_MESSAGEPGM(MSG_ENDSTOPS_HIT "J");
}
SERIAL_PROTOCOL("]}");
SERIAL_MSG_END;
endstop_x_hit=false;
endstop_y_hit=false;
endstop_z_hit=false;
endstop_j_hit=false;
#ifdef ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
if (abort_on_endstop_hit)
{
card.sdprinting = false;
card.closefile();
quickStop();
setTargetHotend0(0);
setTargetHotend1(0);
setTargetHotend2(0);
}
#endif
}
}
示例11: checkHitEndstops
void checkHitEndstops() {
if (endstop_x_hit || endstop_y_hit || endstop_z_hit || endstop_z_probe_hit) { // #ifdef || endstop_z_probe_hit to save space if needed.
SERIAL_ECHO_START;
SERIAL_ECHOPGM(MSG_ENDSTOPS_HIT);
if (endstop_x_hit) {
SERIAL_ECHOPAIR(" X:", (float)endstops_trigsteps[X_AXIS] / axis_steps_per_unit[X_AXIS]);
LCD_MESSAGEPGM(MSG_ENDSTOPS_HIT "X");
}
if (endstop_y_hit) {
SERIAL_ECHOPAIR(" Y:", (float)endstops_trigsteps[Y_AXIS] / axis_steps_per_unit[Y_AXIS]);
LCD_MESSAGEPGM(MSG_ENDSTOPS_HIT "Y");
}
if (endstop_z_hit) {
SERIAL_ECHOPAIR(" Z:", (float)endstops_trigsteps[Z_AXIS] / axis_steps_per_unit[Z_AXIS]);
LCD_MESSAGEPGM(MSG_ENDSTOPS_HIT "Z");
}
#ifdef Z_PROBE_ENDSTOP
if (endstop_z_probe_hit) {
SERIAL_ECHOPAIR(" Z_PROBE:", (float)endstops_trigsteps[Z_AXIS] / axis_steps_per_unit[Z_AXIS]);
LCD_MESSAGEPGM(MSG_ENDSTOPS_HIT "ZP");
}
#endif
SERIAL_EOL;
endstops_hit_on_purpose();
#if defined(ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED) && defined(SDSUPPORT)
if (abort_on_endstop_hit) {
card.sdprinting = false;
card.closefile();
quickStop();
setTargetHotend0(0);
setTargetHotend1(0);
setTargetHotend2(0);
setTargetHotend3(0);
setTargetBed(0);
}
#endif
}
}