当前位置: 首页>>代码示例>>C++>>正文


C++ setWatch函数代码示例

本文整理汇总了C++中setWatch函数的典型用法代码示例。如果您正苦于以下问题:C++ setWatch函数的具体用法?C++ setWatch怎么用?C++ setWatch使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了setWatch函数的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: lcd_preheat_abs_bedonly

void lcd_preheat_abs_bedonly()
{
    setTargetBed(absPreheatHPBTemp);
    fanSpeed = absPreheatFanSpeed;
    lcd_return_to_status();
    setWatch(); // heater sanity check timer
}
开发者ID:elmarnitsche,项目名称:Firmware-Playground,代码行数:7,代码来源:ultralcd.cpp

示例2: lcd_preheat_flex

void lcd_preheat_flex()
{
    setTargetHotend0(flexPreheatHotendTemp);
    setTargetBed(flexPreheatHPBTemp);
    fanSpeed = 0;
    lcd_return_to_status();
    setWatch(); // heater sanity check timer
}
开发者ID:thisismud,项目名称:Prusa-i3-Plus,代码行数:8,代码来源:ultralcd.cpp

示例3: lcd_preheat_pla2

void lcd_preheat_pla2()
{
    setTargetHotend2(plaPreheatHotendTemp);
    setTargetBed(plaPreheatHPBTemp);
    fanSpeed = plaPreheatFanSpeed;
    lcd_return_to_status();
    setWatch(); // heater sanity check timer
}
开发者ID:elmarnitsche,项目名称:Firmware-Playground,代码行数:8,代码来源:ultralcd.cpp

示例4: lcd_preheat_abs012

void lcd_preheat_abs012()
{
    setTargetHotend0(absPreheatHotendTemp);
    setTargetHotend1(absPreheatHotendTemp);
    setTargetHotend2(absPreheatHotendTemp);
    setTargetBed(absPreheatHPBTemp);
    fanSpeed = absPreheatFanSpeed;
    lcd_return_to_status();
    setWatch(); // heater sanity check timer
}
开发者ID:elmarnitsche,项目名称:Firmware-Playground,代码行数:10,代码来源:ultralcd.cpp

示例5: 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
}
开发者ID:BCN3D,项目名称:Paste-Extruder-Firmware,代码行数:10,代码来源:ultralcd.cpp

示例6: 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
}
开发者ID:BCN3D,项目名称:Paste-Extruder-Firmware,代码行数:10,代码来源:ultralcd.cpp

示例7: lcd_fd

static void lcd_fd()
{
if (fil_temp == 200)
{
setTargetHotend0(plaPreheatHotendTemp);
}
if (fil_temp == 230)
{
setTargetHotend0(absPreheatHotendTemp);
}
setWatch(); // heater sanity check timer
if (!isHeatingHotend(0)&&(filament_seq == 0))
{
filament_seq = 1;
}
if ((filament_seq == 0)&&(pausa_display == 0))
{
pausa_display = 1;
}
if (filament_seq == 1)
{   
if (st_message == 0)  
    {
	lcdDrawUpdate = 2;  
	lcd_implementation_message0(PSTR(""));
    lcd_implementation_message1(PSTR("Se puede sacar"));
	lcd_implementation_message2(PSTR("el filamento.."));
	lcd_implementation_message3(PSTR(""));
	}
}
else
    {
    lcd_implementation_message4(PSTR(" Calentando..."));
    _draw_heater_status(6, 0);
	lcdDrawUpdate = 1;
	u8g.drawBitmapP(9,1,STATUS_SCREENBYTEWIDTH,STATUS_SCREENHEIGHT, (blink % 2) && fanSpeed ? status_screen0_bmp : status_screen1_bmp);
	
	}
	
if ((LCD_CLICKED) || (degTargetHotend(0) == 0)  || (currentMenu == lcd_status_screen))
	{
 	filament_seq = 0;
	st_message = 0;
	pausa_display = 0;
	encoder_zero = 0;
	setTargetHotend0(0);
	lcd_return_to_status();
    }
}
开发者ID:Trideo,项目名称:PrintBox-Max,代码行数:49,代码来源:ultralcd.cpp

示例8: lcd_fc

static void lcd_fc()
{
if (fil_temp == 200)
{
setTargetHotend0(plaPreheatHotendTemp);
}
if (fil_temp == 230)
{
setTargetHotend0(absPreheatHotendTemp);
}
setWatch(); // heater sanity check timer
if (!isHeatingHotend(0)&&(filament_seq == 0))
{
filament_seq = 1;
}
if ((filament_seq == 0)&&(pausa_display == 0))
{
pausa_display = 1;
}
if (filament_seq == 1)
{   
if (st_message == 0)  
    {
	lcdDrawUpdate = 2;  
	lcd_implementation_message0(PSTR("Introducir el nuevo"));
    lcd_implementation_message1(PSTR("filamento y girar el  "));
	lcd_implementation_message2(PSTR("boton hasta que"));
	lcd_implementation_message3(PSTR("salga el filamento"));
	if (encoder_zero == 0)
	{
	encoderPosition = 0;
	encoder_zero = 1;
	}
	}
    if (encoderPosition != 0)
    {
	    move_menu_scale = 1.0;
        current_position[E_AXIS] += float((int)encoderPosition) * move_menu_scale;
        encoderPosition = 0;
		 #ifdef DELTA
        calculate_delta(current_position);
        plan_buffer_line(delta[X_AXIS], delta[Y_AXIS], delta[Z_AXIS], current_position[E_AXIS], manual_feedrate[E_AXIS]/60, active_extruder);
        #else
        plan_buffer_line(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS], manual_feedrate[E_AXIS]/60, active_extruder);
        #endif
        lcdDrawUpdate = 2;
		st_message = 1;
    }
	
    if ((lcdDrawUpdate) && (st_message == 1))
    {
	lcd_implementation_drawedit(PSTR("Extruder"), ftostr31(current_position[E_AXIS]));
    }

}
else
    {
    lcd_implementation_message4(PSTR(" Calentando..."));
    _draw_heater_status(6, 0);
	lcdDrawUpdate = 1;
	u8g.drawBitmapP(9,1,STATUS_SCREENBYTEWIDTH,STATUS_SCREENHEIGHT, (blink % 2) && fanSpeed ? status_screen0_bmp : status_screen1_bmp);
	
	}
	
if ((LCD_CLICKED) || (degTargetHotend(0) == 0)  || (currentMenu == lcd_status_screen))
	{
 	filament_seq = 0;
	st_message = 0;
	pausa_display = 0;
	encoder_zero = 0;
	setTargetHotend0(0);
	lcd_return_to_status();
    }
}
开发者ID:Trideo,项目名称:PrintBox-Max,代码行数:74,代码来源:ultralcd.cpp

示例9: lcd_preheat_bed

void lcd_preheat_bed()
{
	setTargetBed(BED_PREHEAT_TEMP);
	lcd_return_to_status();
	setWatch(); //sanity check
}
开发者ID:BCN3D,项目名称:Paste-Extruder-Firmware,代码行数:6,代码来源:ultralcd.cpp


注:本文中的setWatch函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。