本文整理汇总了C++中enquecommand_P函数的典型用法代码示例。如果您正苦于以下问题:C++ enquecommand_P函数的具体用法?C++ enquecommand_P怎么用?C++ enquecommand_P使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了enquecommand_P函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: lcd_sdcard_stop
static void lcd_sdcard_stop()
{
card.sdprinting = false;
card.closefile();
quickStop();
if(SD_FINISHED_STEPPERRELEASE)
{
enquecommand_P(PSTR(SD_FINISHED_RELEASECOMMAND));
}
autotempShutdown();
}
开发者ID:RedWagon,项目名称:cad,代码行数:11,代码来源:ultralcd.cpp
示例2: menu_action_sdfile
static void menu_action_sdfile(const char* filename, char* longFilename)
{
char cmd[30];
char* c;
sprintf_P(cmd, PSTR("M23 %s"), filename);
for(c = &cmd[4]; *c; c++)
*c = tolower(*c);
enquecommand(cmd);
enquecommand_P(PSTR("M24"));
lcd_return_to_status();
}
开发者ID:RedWagon,项目名称:cad,代码行数:11,代码来源:ultralcd.cpp
示例3: lcd_sdcard_stop
static void lcd_sdcard_stop()
{
card.sdprinting = false;
card.closefile();
quickStop();
if(SD_FINISHED_STEPPERRELEASE)
{
enquecommand_P(PSTR(SD_FINISHED_RELEASECOMMAND));
}
cancel_heatup = true;
}
开发者ID:FracktalWorks,项目名称:BobcMarlin,代码行数:12,代码来源:ultralcd.cpp
示例4: st_synchronize
void CardReader::printingHasFinished()
{
st_synchronize();
quickStop();
sdprinting = false;
if(SD_FINISHED_STEPPERRELEASE)
{
//finishAndDisableSteppers();
enquecommand_P(PSTR(SD_FINISHED_RELEASECOMMAND));
}
autotempShutdown();
}
开发者ID:BadgerOps,项目名称:reprap,代码行数:12,代码来源:cardreader.cpp
示例5: initsd
void CardReader::checkautostart(bool force)
{
if(!force)
{
if(!autostart_stilltocheck)
return;
if(autostart_atmillis<millis())
return;
}
autostart_stilltocheck=false;
if(!cardOK)
{
initsd();
if(!cardOK) //fail
return;
}
char autoname[30];
sprintf_P(autoname, PSTR("auto%i.g"), lastnr);
for(int8_t i=0;i<(int8_t)strlen(autoname);i++)
autoname[i]=tolower(autoname[i]);
dir_t p;
root.rewind();
bool found=false;
while (root.readDir(p, NULL) > 0)
{
for(int8_t i=0;i<(int8_t)strlen((char*)p.name);i++)
p.name[i]=tolower(p.name[i]);
//Serial.print((char*)p.name);
//Serial.print(" ");
//Serial.println(autoname);
if(p.name[9]!='~') //skip safety copies
if(strncmp((char*)p.name,autoname,5)==0)
{
char cmd[30];
sprintf_P(cmd, PSTR("M23 %s"), autoname);
enquecommand(cmd);
enquecommand_P(PSTR("M24"));
found=true;
}
}
if(!found)
lastnr=-1;
else
lastnr++;
clearError();
}
开发者ID:RyuHa,项目名称:Ultimaker2Marlin,代码行数:50,代码来源:cardreader.cpp
示例6: lcd_sdcard_stop
static void lcd_sdcard_stop()
{
card.sdprinting = false;
card.closefile();
quickStop();
if(SD_FINISHED_STEPPERRELEASE)
{
if (current_position[Z_AXIS] < Z_MAX_POS - 191)
{
enquecommand_P(PSTR(SD_FINISHED_MOVEEXTRUDERAWAY1));
enquecommand_P(PSTR(SD_FINISHED_RELEASECOMMAND));
}
else
{
enquecommand_P(PSTR(SD_FINISHED_MOVEEXTRUDERAWAY0));
enquecommand_P(PSTR(SD_FINISHED_RELEASECOMMAND));
}
}
disable_heater();
autotempShutdown();
lcd_setstatus(MSG_PRINT_ABORTED);
}
开发者ID:Drayson80,项目名称:UMO_Marlin_v20140622,代码行数:23,代码来源:ultralcd.cpp
示例7: lcd_sdcard_stop
static void lcd_sdcard_stop()
{
card.sdprinting = false;
card.closefile();
quickStop();
if(SD_FINISHED_STEPPERRELEASE)
{
enquecommand_P(PSTR(SD_FINISHED_RELEASECOMMAND));
}
autotempShutdown();
cancel_heatup = true;
lcd_setstatus(MSG_PRINT_ABORTED);
}
开发者ID:Trideo,项目名称:PrintBox-Max,代码行数:15,代码来源:ultralcd.cpp
示例8: lcd_menu_change_material_remove_wait_user_ready
static void lcd_menu_change_material_remove_wait_user_ready()
{
run_history = true;
current_position[E_AXIS] = 0;
plan_set_e_position(current_position[E_AXIS]);
lcd_change_to_menu(lcd_menu_change_material_insert_wait_user, MAIN_MENU_ITEM_POS(0));
char buffer[32];
memset (buffer,0,sizeof(buffer));
enquecommand_P(PSTR("G28 X0 Y0"));
sprintf_P(buffer, PSTR("G1 F%i X%i Y%i"), int(homing_feedrate[0]), int (X_MAX_LENGTH/2), 10);
enquecommand(buffer);
LED_GLOW();
}
开发者ID:norpchen,项目名称:Ultimaker2Marlin,代码行数:15,代码来源:UltiLCD2_menu_material.cpp
示例9: lcd_menu_material_main
static void lcd_menu_material_main()
{
lcd_tripple_menu(PSTR("CHANGE"), PSTR("SETTINGS"), PSTR("RETURN"));
if (lcd_lib_button_pressed)
{
if (IS_SELECTED_MAIN(0) && !is_command_queued())
{
minProgress = 0;
char buffer[32];
enquecommand_P(PSTR("G28 X0 Y0"));
sprintf_P(buffer, PSTR("G1 F%i X%i Y%i"), int(homing_feedrate[0]), X_MAX_LENGTH/2, 10);
enquecommand(buffer);
lcd_change_to_menu_change_material(lcd_menu_material_main_return);
}
else if (IS_SELECTED_MAIN(1))
lcd_change_to_menu(lcd_menu_material_select, SCROLL_MENU_ITEM_POS(0));
else if (IS_SELECTED_MAIN(2))
lcd_change_to_menu(lcd_menu_main);
}
lcd_lib_update_screen();
}
开发者ID:Ronan87,项目名称:Ultimaker2Marlin,代码行数:23,代码来源:UltiLCD2_menu_material.cpp
示例10: st_synchronize
void CardReader::printingHasFinished()
{
st_synchronize();
if(file_subcall_ctr>0) //heading up to a parent file that called current as a procedure.
{
file.close();
file_subcall_ctr--;
openFile(filenames[file_subcall_ctr],true,true);
setIndex(filespos[file_subcall_ctr]);
startFileprint();
}
else
{
quickStop();
file.close();
sdprinting = false;
if(SD_FINISHED_STEPPERRELEASE)
{
//finishAndDisableSteppers();
enquecommand_P(PSTR(SD_FINISHED_RELEASECOMMAND));
}
autotempShutdown();
}
}
开发者ID:elmarnitsche,项目名称:Prusa-i3-Plus,代码行数:24,代码来源:cardreader.cpp
示例11: process
//.........这里部分代码省略.........
{
int16_t t;
t=atoi((const char*)buff_value+2);
if (t<0 || t>280) return;
if (buff_value[1] == '0')
{
setTargetHotend(t,0);
}
else
{
setTargetHotend(t,1);
}
}
else if (buff_value[0]=='S')
{
int16_t t;
uint8_t i;
t=atoi((const char*)buff_value+1);
if (t<1) t=1;
else if (t>50) t=50;
feedmultiply=t*10;
}
break;
case 'P':
uint8_t i;
if (buff_value[0]=='H')
{
enquecommand_P(PSTR("G28"));
}
else if (buff_value[0]=='C')
{
//host::startOnboardBuild(utility::TOOLHEAD_CALIBRATE);
}
else if (buff_value[0]=='X')
{
extern bool cancel_heatup;
writeString((char *)"{SYS:CANCELING}");
//card.pauseSDPrint();
//disable_heater();
card.sdprinting = false;
card.closefile();
quickStop();
if(SD_FINISHED_STEPPERRELEASE)
{
enquecommand_P(PSTR(SD_FINISHED_RELEASECOMMAND));
}
autotempShutdown();
cancel_heatup = true;
writeString((char *)"{SYS:STARTED}");
writeString((char *)"{U:RG1R180180120P0L1S0D0O1E1H0C0X1Y1Z1A2B2N3M0}");
}
else if (buff_value[0]=='P')
{
writeString((char *)"{SYS:PAUSE}");
card.pauseSDPrint();
writeString((char *)"{SYS:PAUSED}");
}
else if (buff_value[0]=='R')
{
开发者ID:MalyanSystem,项目名称:Malyan-M180-Marlin,代码行数:67,代码来源:LcdBoard.cpp
示例12: cancelMaterialInsert
static void cancelMaterialInsert()
{
digipot_current(2, motor_current_setting[2]);//Set E motor power to default.
doCooldown();
enquecommand_P(PSTR("G28 X0 Y0"));
}
开发者ID:DiamondMind3DPrinters,项目名称:DMv2-Marlin,代码行数:6,代码来源:UltiLCD2_menu_material.cpp
示例13: lcd_menu_material_main_return
static void lcd_menu_material_main_return()
{
doCooldown();
enquecommand_P(PSTR("G28 X0 Y0"));
currentMenu = lcd_menu_material_main;
}
开发者ID:Ronan87,项目名称:Ultimaker2Marlin,代码行数:6,代码来源:UltiLCD2_menu_material.cpp
示例14: parkHeadForHeating
static void parkHeadForHeating()
{
lcd_material_reset_defaults();
enquecommand_P(PSTR("G1 F12000 X110 Y10"));
enquecommand_P(PSTR("M84"));//Disable motor power.
}
开发者ID:Hyna,项目名称:Ultimaker2Marlin,代码行数:6,代码来源:UltiLCD2_menu_first_run.cpp
示例15: laser_test_fire
static void laser_test_fire(uint8_t power, uint8_t dwell) {
enquecommand_P(PSTR("M80")); // Enable laser accessories since we don't know if its been done (and there's no penalty for doing it again).
laser_fire(power);
delay(dwell);
laser_extinguish();
}
开发者ID:tianshiz,项目名称:3DPrinterr,代码行数:6,代码来源:ultralcd.cpp
示例16: action_laser_acc_off
static void action_laser_acc_off() {
enquecommand_P(PSTR("M81"));
}
开发者ID:tianshiz,项目名称:3DPrinterr,代码行数:3,代码来源:ultralcd.cpp
示例17: parkHeadForHeating
static void parkHeadForHeating()
{
enquecommand_P(PSTR("G1 F12000 X110 Y0"));
}
开发者ID:ThomasSc,项目名称:SecretMarlin,代码行数:4,代码来源:UltiLCD2_menu_first_run.cpp
示例18: homeBed
static void homeBed()
{
add_homeing[Z_AXIS] += 0.2;//Adjust the Z homing position to account for the thickness of the paper.
enquecommand_P(PSTR("G28 Z0"));
}
开发者ID:ThomasSc,项目名称:SecretMarlin,代码行数:5,代码来源:UltiLCD2_menu_first_run.cpp
示例19: lcd_calibrate_bed
////i2
static void lcd_calibrate_bed()
{
enquecommand_P(PSTR("G21"));//set units to millimeters
if (fil_temp == 200)
{
enquecommand_P(PSTR("M190 S60"));//wait for bed temperature to be reached
enquecommand_P(PSTR("M104 S200"));//set temperature
}
if (fil_temp == 230)
{
enquecommand_P(PSTR("M190 S80"));//wait for bed temperature to be reached
enquecommand_P(PSTR("M104 S230"));//set temperature
}
enquecommand_P(PSTR("G28 X0 Y0"));//Home x and y axis
enquecommand_P(PSTR("G1 X20 Y20 F4000"));//Center extruder above bed
enquecommand_P(PSTR("G28 Z0"));
enquecommand_P(PSTR("G1 Z5 F5000"));//lift nozzle
if (fil_temp == 200)
{
enquecommand_P(PSTR("M109 S200"));//set temperature
}
if (fil_temp == 230)
{
enquecommand_P(PSTR("M109 S230"));//set temperature
}
enquecommand_P(PSTR("G90"));//use absolute coordinates
enquecommand_P(PSTR("G92 E0"));
enquecommand_P(PSTR("M82"));//use absolute distances for extrusion
//if (fil_temp == 200)
//{
//enquecommand_P(PSTR("M106 S255"));
//}
enquecommand_P(PSTR("G1 E-1.00000 F1020.00000"));//
enquecommand_P(PSTR("G92 E0"));//
enquecommand_P(PSTR("G1 Z0.250 F6000.000"));//
enquecommand_P(PSTR("G1 X27.500 Y27.500 F6000.000"));//
enquecommand_P(PSTR("G1 E1.00000 F1020.00000"));//
enquecommand_P(PSTR("G1 X272.290 Y27.500 E10.32102 F1200.000"));//
enquecommand_P(PSTR("G1 X272.464 Y27.536 E10.32778"));//
enquecommand_P(PSTR("G1 X272.500 Y27.710 E10.33455"));//
enquecommand_P(PSTR("G1 X272.500 Y272.290 E19.64757"));//
enquecommand_P(PSTR("G1 X272.464 Y272.464 E19.65433"));//
enquecommand_P(PSTR("G1 X272.290 Y272.500 E19.66110"));//
enquecommand_P(PSTR("G1 X27.710 Y272.500 E28.97412"));//
enquecommand_P(PSTR("G1 X27.536 Y272.464 E28.98089"));//
enquecommand_P(PSTR("G1 X27.500 Y272.290 E28.98765"));//
enquecommand_P(PSTR("G1 X27.500 Y34.710 E38.03413"));//
enquecommand_P(PSTR("G1 X27.536 Y34.536 E38.04089"));//
enquecommand_P(PSTR("G1 X27.710 Y34.500 E38.04766"));//
enquecommand_P(PSTR("G1 X260.459 Y34.500 E46.91018"));//
enquecommand_P(PSTR("G1 E45.91018 F1020.00000"));//
enquecommand_P(PSTR("G92 E0"));//
enquecommand_P(PSTR("G1 Z3 F6000"));//
//if (fil_temp == 200)
//{
//enquecommand_P(PSTR("M107"));
//}
enquecommand_P(PSTR("G28 X0"));//turn off temperature
enquecommand_P(PSTR("M84"));
enquecommand_P(PSTR("G28 X0"));//home X axis
enquecommand_P(PSTR("M84"));//disable motors
enquecommand_P(PSTR("M140 S0"));//turn off heatbed
fil_temp = 0;
lcd_return_to_status();
}
开发者ID:Trideo,项目名称:PrintBox-Max,代码行数:66,代码来源:ultralcd.cpp
示例20: reprapworld_keypad_move_home
static void reprapworld_keypad_move_home() {
enquecommand_P((PSTR("G28"))); // move all axis home
}
开发者ID:tianshiz,项目名称:3DPrinterr,代码行数:3,代码来源:ultralcd.cpp
注:本文中的enquecommand_P函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论