{"action":"created","issue":{"url":"https://api.github.com/repos/luc-github/Repetier-Firmware-4-Davinci/issues/343","repository_url":"https://api.github.com/repos/luc-github/Repetier-Firmware-4-Davinci","labels_url":"https://api.github.com/repos/luc-github/Repetier-Firmware-4-Davinci/issues/343/labels{/name}","comments_url":"https://api.github.com/repos/luc-github/Repetier-Firmware-4-Davinci/issues/343/comments","events_url":"https://api.github.com/repos/luc-github/Repetier-Firmware-4-Davinci/issues/343/events","html_url":"https://github.com/luc-github/Repetier-Firmware-4-Davinci/issues/343","id":422061666,"node_id":"MDU6SXNzdWU0MjIwNjE2NjY=","number":343,"title":"Winstar LCD on a DaVinci serial number starting with 3F10A ","user":{"login":"curnowdj","id":37953928,"node_id":"MDQ6VXNlcjM3OTUzOTI4","avatar_url":"https://avatars0.githubusercontent.com/u/37953928?v=4","gravatar_id":"","url":"https://api.github.com/users/curnowdj","html_url":"https://github.com/curnowdj","followers_url":"https://api.github.com/users/curnowdj/followers","following_url":"https://api.github.com/users/curnowdj/following{/other_user}","gists_url":"https://api.github.com/users/curnowdj/gists{/gist_id}","starred_url":"https://api.github.com/users/curnowdj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/curnowdj/subscriptions","organizations_url":"https://api.github.com/users/curnowdj/orgs","repos_url":"https://api.github.com/users/curnowdj/repos","events_url":"https://api.github.com/users/curnowdj/events{/privacy}","received_events_url":"https://api.github.com/users/curnowdj/received_events","type":"User","site_admin":false},"labels":[{"id":167733699,"node_id":"MDU6TGFiZWwxNjc3MzM2OTk=","url":"https://api.github.com/repos/luc-github/Repetier-Firmware-4-Davinci/labels/User%20Issue%20(PEBCAK)","name":"User Issue (PEBCAK)","color":"eb6420","default":false},{"id":145843678,"node_id":"MDU6TGFiZWwxNDU4NDM2Nzg=","url":"https://api.github.com/repos/luc-github/Repetier-Firmware-4-Davinci/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2019-03-18T06:47:55Z","updated_at":"2019-03-31T01:16:38Z","closed_at":null,"author_association":"NONE","body":"I can not get the Winstar LCD on a DaVinci serial number starting with 3F10A working. The upload seems to go fine but no joy with the LCD. It has the back light and the 2 black bars but no characters.\r\nI seem to think there is a issue with where to put the variant.cpp file. I am running Ubuntu Linux which makes it a bit more difficult to work out where to put it. I copied it to the arduino/hardware/variants folder but did not solve the issue.\r\nThis my config.h\r\n/*\r\n    This file is part of Repetier-Firmware.\r\n\r\n    Repetier-Firmware is free software: you can redistribute it and/or modify\r\n    it under the terms of the GNU General Public License as published by\r\n    the Free Software Foundation, either version 3 of the License, or\r\n    (at your option) any later version.\r\n\r\n    Repetier-Firmware is distributed in the hope that it will be useful,\r\n    but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r\n    GNU General Public License for more details.\r\n\r\n    You should have received a copy of the GNU General Public License\r\n    along with Repetier-Firmware.  If not, see <http://www.gnu.org/licenses/>.\r\n\r\n*/\r\n\r\n#ifndef CONFIGURATION_H\r\n#define CONFIGURATION_H\r\n\r\n// ################## EDIT THESE SETTINGS MANUALLY ################\r\n\r\n#define DAVINCI 2// \"0\" if not DAVINCI, \"1\" For DAVINCI 1.0, \"2\" For DAVINCI 2.0 with 1 FAN, \"3\" For DAVINCI 2.0 with 2 FAN, 4 for AiO (WITH NO SCANNER SUPPORT)\r\n#define MODEL  1//\"0\" for first generation (jumper JP1 to reset ) , \"1\" for new generation   (jumper J37 to reset)\r\n#define REPURPOSE_FAN_TO_COOL_EXTRUSIONS 0 //Setting this to 1 will repurpose the main Extruder cooling fan to be controlled VIA M106/M107\r\n                                           //Warning: for DaVinci 1.0 need to add a permanent fan with power supply to cool extruder\r\n\r\n// ################ END MANUAL SETTINGS ##########################\r\n\r\n//Version\r\n#define VERSION_MAJOR \"1\"\r\n#define VERSION_MINOR_YEAR \"17\"\r\n#define VERSION_MINOR_MONTH \"08\"\r\n#define VERSION_MINOR_DAY \"01\"\r\n#define VERSION_BUILD \"1\"\r\n\r\n//Davinci screen is not standard reprap it is WINSTAR 16x4\r\n#if DAVINCI==0\r\n#define WINSTAR_SCREEN 0\r\n#else\r\n#define WINSTAR_SCREEN 1\r\n#endif\r\n\r\n//Decouple Test feature, do not disable it unless you know what you are doing!!!\r\n//if you have decouple issue it means you have hardware issue or bad air flow management!!!\r\n//this feature is a safety feature, if you disable it is dangerous!!!\r\n#define FEATURE_DECOUPLE_TEST 1\r\n//this will hide on sd card no extension files and bin/hex/dat files to make navigation and selection easier\r\n#define HIDE_BINARY_ON_SD 1\r\n#define UI_AUTOLIGHTOFF_AFTER 1\r\n#define ENABLE_CLEAN_DRIPBOX 1\r\n#define ENABLE_CLEAN_NOZZLE 1\r\n#define FEATURE_ENCODER\t0\r\n//ensure of some define if AiO\r\n#if DAVINCI==4\r\n//no drip box\r\n#undef ENABLE_CLEAN_DRIPBOX\r\n#define ENABLE_CLEAN_DRIPBOX 0\r\n//it must be model 1\r\n#undef MODEL\r\n#define MODEL 1\r\n#endif\r\n//to enable communication using wifi module set to 1\r\n#define ENABLE_WIFI 0\r\n//define the wifi serial output\r\n//on Davinci use Serial\r\n//on RADDS use Serial1\r\n#if ENABLE_WIFI\r\n#if DAVINCI == 0\r\n#define WIFI_SERIAL Serial1\r\n#else\r\n#define WIFI_SERIAL Serial\r\n#endif\r\n#endif\r\n//if wifi is enabled serial need to slow down a little, this is a delay in ms after a '\\n' so normaly after a command or a message\r\n#define DELAY_BY_LINE 50\r\n#if ENABLE_CLEAN_NOZZLE\r\n  #if DAVINCI==0 \r\n    #define CLEAN_X 20\r\n    #define CLEAN_Y 20\r\n  #endif\r\n  #if DAVINCI==1 //cleaner of Davinci 1.0 is not in same position of 2.0 neither AiO\r\n    #define CLEAN_X 20\r\n    #define CLEAN_Y 20\r\n  #endif\r\n  #if DAVINCI==2 || DAVINCI==3\r\n    #define CLEAN_X 0\r\n    #define CLEAN_Y 30\r\n  #endif\r\n  #if DAVINCI==4\r\n    #define CLEAN_X 35\r\n    #define CLEAN_Y 55\r\n  #endif\r\n#endif\r\n#define CASE_KEEP_LIGHT_DEFAULT_ON 1\r\n#define CASE_FILAMENT_SENSOR_DEFAULT_ON 1\r\n#define CASE_TOP_SENSOR_DEFAULT_ON 1\r\n#define CASE_SOUND_DEFAULT_ON 1\r\n#define CASE_WIFI_DEFAULT_ON 0\r\n//default mode is advanced\r\n#define CASE_DISPLAY_MODE_DEFAULT 1\r\n\r\n//Laser and turntable\r\n#if DAVINCI == 4\r\n#define TURNTABLE_STEP_PER_MM 110\r\n//table perimeter in mm for angle rotation as not direct drive for turntable\r\n#define TURNTABLE_PERIMETER 616 \r\n//P/360 => 616/360 = 1.711111\r\n#define TURNTABLE_MM_PER_DEG 1.7111111 \r\n#define TURNTABLE_DEFAULT_SPEED 10\r\n#define TURNTABLE_MAX_SPEED 50\r\n#define TURNTABLE_HOME_SPEED 25\r\n#define TURNTABLE_INVERT_ENABLE 0\r\n#define TURNTABLE_INVERT_DIR 1\r\n#define TURNTABLE_STEP_PIN     22\r\n#define TURNTABLE_DIR_PIN      13\r\n#define TURNTABLE_ENABLE_PIN   26 \r\n#define NUM_MOTOR_DRIVERS 1 \r\n#define MOTOR_DRIVER_1(var) StepperDriver<TURNTABLE_STEP_PIN,TURNTABLE_DIR_PIN,TURNTABLE_ENABLE_PIN,TURNTABLE_INVERT_DIR,TURNTABLE_INVERT_ENABLE> var(TURNTABLE_STEP_PER_MM,TURNTABLE_DEFAULT_SPEED)\r\n#endif\r\n\r\n/* Some words on units:\r\n\r\nFrom 0.80 onwards the units used are unified for easier configuration, watch out when transferring from older configs!\r\n\r\nSpeed is in mm/s\r\nAcceleration in mm/s^2\r\nTemperature is in degrees celsius\r\n\r\n\r\n##########################################################################################\r\n##                                        IMPORTANT                                     ##\r\n##########################################################################################\r\n\r\nFor easy configuration, the default settings enable parameter storage in EEPROM.\r\nThis means, after the first upload many variables can only be changed using the special\r\nM commands as described in the documentation. Changing these values in the configuration.h\r\nfile has no effect. Parameters overriden by EEPROM settings are calibration values, extruder\r\nvalues except thermistor tables and some other parameter likely to change during usage\r\nlike advance steps or ops mode.\r\nTo override EEPROM settings with config settings, set EEPROM_MODE 0\r\n\r\n*/\r\n\r\n\r\n// BASIC SETTINGS: select your board type, thermistor type, axis scaling, and endstop configuration\r\n\r\n/** Number of extruders. Maximum 6 extruders. */\r\n#if DAVINCI==0\r\n#define NUM_EXTRUDER 1\r\n#endif\r\n//1.0/1.0A/AiO have 1 extruder\r\n#if DAVINCI==1 || DAVINCI==4\r\n#define NUM_EXTRUDER 1\r\n#endif\r\n//2.0/2.0A have 2 extruders\r\n#if DAVINCI==2 || DAVINCI==3\r\n#define NUM_EXTRUDER 2\r\n#endif\r\n\r\n/** Set to 1 if all extruder motors go to 1 nozzle that mixes your colors. */\r\n#define MIXING_EXTRUDER 0\r\n\r\n//// The following define selects which electronics board you have. Please choose the one that matches your setup\r\n// Arduino Due with RADDS       = 402\r\n// Arduino Due with RAMPS-FD    = 403\r\n// Arduino Due with RAMPS-FD V2 = 404\r\n// Felix Printers for arm       = 405\r\n// DAM&DICE DUE                 = 406\r\n// Smart RAMPS for Due          = 408\r\n// Ultratronics Board           = 409\r\n// DUE3DOM                      = 410\r\n// DUE3DOM MINI                 = 411\r\n// Alligator Board rev1         = 500\r\n// Alligator Board rev2         = 501\r\n//DaVinci                              = 999\r\n\r\n#if DAVINCI==0\r\n#define MOTHERBOARD 402\r\n#else\r\n#define MOTHERBOARD 999\r\n#endif\r\n\r\n#include \"pins.h\"\r\n\r\n// Override pin definitions from pins.h\r\n//#define FAN_PIN   4  // Extruder 2 uses the default fan output, so move to an other pin\r\n//#define EXTERNALSERIAL  use Arduino serial library instead of build in. Requires more ram, has only 63 byte input buffer.\r\n\r\n\r\n/*\r\nWe can connect BlueTooth to serial converter module directly to boards with a free serial port. Of course could you also\r\nuse it to connect a second device like Raspberry PI internal connection. Just make sure only one port of the 2 supported\r\ngets used, or you will get problems with checksums etc.\r\n- On RADDS board use the 4 extension pins new blue fuse with 1 = Serial1\r\n- 100 is programming port on due\r\n- 101 is native port on due. Us eit to support both ports at the same time!\r\n*/\r\n#define BLUETOOTH_SERIAL   -1                      // Port number (1..3) - For RADDS use 1\r\n#define BLUETOOTH_BAUD     115200                 // communication speed\r\n\r\n\r\n// Uncomment the following line if you are using Arduino compatible firmware made for Arduino version earlier then 1.0\r\n// If it is incompatible you will get compiler errors about write functions not being compatible!\r\n//#define COMPAT_PRE1\r\n\r\n/* Define the type of axis movements needed for your printer. The typical case\r\nis a full cartesian system where x, y and z moves are handled by separate motors.\r\n\r\n0 = full cartesian system, xyz have separate motors.\r\n1 = z axis + xy H-gantry (x_motor = x+y, y_motor = x-y)\r\n2 = z axis + xy H-gantry (x_motor = x+y, y_motor = y-x)\r\n3 = Delta printers (Rostock, Kossel, RostockMax, Cerberus, etc)\r\n4 = Tuga printer (Scott-Russell mechanism)\r\n5 = Bipod system (not implemented)\r\n8 = y axis + xz H-gantry (x_motor = x+z, z_motor = x-z)\r\n9 = y axis + xz H-gantry (x_motor = x+z, z_motor = z-x)\r\nCases 1, 2, 8 and 9 cover all needed xy and xz H gantry systems. If you get results mirrored etc. you can swap motor connections for x and y.\r\nIf a motor turns in the wrong direction change INVERT_X_DIR or INVERT_Y_DIR.\r\n*/\r\n#define DRIVE_SYSTEM CARTESIAN\r\n\r\n/* You can write some GCODE to be executed on startup. Use this e.g. to set some \r\npins. Separate multiple GCODEs with \\n\r\n*/\r\n//#define STARTUP_GCODE \"\"\r\n\r\n\r\n/*Bed Coating menu\r\n */\r\n#define UI_BED_COATING 1\r\n \r\n// ##########################################################################################\r\n// ##                               Calibration                                            ##\r\n// ##########################################################################################\r\n\r\n/** Drive settings for the Delta printers\r\n*/\r\n#if DRIVE_SYSTEM == DELTA\r\n    // ***************************************************\r\n    // *** These parameter are only for Delta printers ***\r\n    // ***************************************************\r\n\r\n/** \\brief Delta drive type: 0 - belts and pulleys, 1 - filament drive */\r\n#define DELTA_DRIVE_TYPE 0\r\n\r\n#if DELTA_DRIVE_TYPE == 0\r\n/** \\brief Pitch in mm of drive belt. GT2 = 2mm */\r\n#define BELT_PITCH 2\r\n/** \\brief Number of teeth on X, Y and Z tower pulleys */\r\n#define PULLEY_TEETH 20\r\n#define PULLEY_CIRCUMFERENCE (BELT_PITCH * PULLEY_TEETH)\r\n#elif DELTA_DRIVE_TYPE == 1\r\n/** \\brief Filament pulley diameter in millimeters */\r\n#define PULLEY_DIAMETER 10\r\n#define PULLEY_CIRCUMFERENCE (PULLEY_DIAMETER * 3.1415927)\r\n#endif\r\n\r\n/** \\brief Steps per rotation of stepper motor */\r\n#define STEPS_PER_ROTATION 200\r\n\r\n/** \\brief Micro stepping rate of X, Y and Y tower stepper drivers */\r\n#define MICRO_STEPS 16\r\n\r\n// Calculations\r\n#define AXIS_STEPS_PER_MM ((float)(MICRO_STEPS * STEPS_PER_ROTATION) / PULLEY_CIRCUMFERENCE)\r\n#define XAXIS_STEPS_PER_MM AXIS_STEPS_PER_MM\r\n#define YAXIS_STEPS_PER_MM AXIS_STEPS_PER_MM\r\n#define ZAXIS_STEPS_PER_MM AXIS_STEPS_PER_MM\r\n#else\r\n// *******************************************************\r\n// *** These parameter are for all other printer types ***\r\n// *******************************************************\r\n\r\n/** Drive settings for printers with cartesian drive systems */\r\n/** \\brief Number of steps for a 1mm move in x direction.\r\nFor xy gantry use 2*belt moved!\r\nOverridden if EEPROM activated. */\r\n#define XAXIS_STEPS_PER_MM 80\r\n/** \\brief Number of steps for a 1mm move in y direction.\r\nFor xy gantry use 2*belt moved!\r\nOverridden if EEPROM activated.*/\r\n#define YAXIS_STEPS_PER_MM 80\r\n/** \\brief Number of steps for a 1mm move in z direction  Overridden if EEPROM activated.*/\r\n#define ZAXIS_STEPS_PER_MM 2560\r\n#endif\r\n\r\n// ##########################################################################################\r\n// ##                           Extruder configuration                                     ##\r\n// ##########################################################################################\r\n\r\n// You can use either PWM (pulse width modulation) or PDM (pulse density modulation) for\r\n// extruders or coolers. PDM will give more signal changes per second, so on average it gives\r\n// the cleaner signal. The only advantage of PWM is giving signals at a fixed rate and never more\r\n// then PWM.\r\n#define PDM_FOR_EXTRUDER 1\r\n#if REPURPOSE_FAN_TO_COOL_EXTRUSIONS\r\n#define PDM_FOR_COOLER 0\r\n#else\r\n#define PDM_FOR_COOLER 1\r\n#endif\r\n\r\n// The firmware checks if the heater and sensor got decoupled, which is dangerous. Since it will never reach target\r\n// temperature, the heater will stay on for every which can burn your printer or house.\r\n// As an additional barrier to your smoke detectors (I hope you have one above your printer) we now\r\n// do some more checks to detect if something got wrong.\r\n\r\n#if FEATURE_DECOUPLE_TEST\r\n// If the temp. is on hold target, it may not sway more then this degrees celsius, or we mark\r\n// sensor as defect.\r\n#define DECOUPLING_TEST_MAX_HOLD_VARIANCE 15\r\n// Minimum temp. rise we expect after the set duration of full heating is over.\r\n// Always keep a good safety margin to get no false positives. If your period is e.g. 10 seconds\r\n// because at startup you already need 7 seconds until heater starts to rise temp. for sensor\r\n// then you have 3 seconds of increased heating to reach 1°„C.\r\n#define DECOUPLING_TEST_MIN_TEMP_RISE 1\r\n// Set to 1 if you want firmware to kill print on decouple\r\n#define KILL_IF_SENSOR_DEFECT 1\r\n\r\n#endif\r\n// for each extruder, fan will stay on until extruder temperature is below this value\r\n#define EXTRUDER_FAN_COOL_TEMP 50\r\n// Retraction for sd pause over lcd\r\n#define RETRACT_ON_PAUSE 2\r\n// These commands get executed after storing position and going to park position.\r\n#define PAUSE_START_COMMANDS \"M117 SD Paused\"\r\n// These commands get executed before we go to stored position.\r\n#define PAUSE_END_COMMANDS \"M117 Printing ...\"\r\n/* Set to 1 if all extruders use the same heater block. Temp. control is then always\r\ncontrolled by settings in extruder 0 definition. */\r\n#define SHARED_EXTRUDER_HEATER 0\r\n/* Speed in mm/s for extruder moves fom internal commands, e.g. switching extruder. */\r\n#define EXTRUDER_SWITCH_XY_SPEED 100\r\n\r\n#define EXT0_X_OFFSET 0\r\n#define EXT0_Y_OFFSET 0\r\n#define EXT0_Z_OFFSET 0\r\n// for skeinforge 40 and later, steps to pull the plastic 1 mm inside the extruder, not out.  Overridden if EEPROM activated.\r\n#define EXT0_STEPS_PER_MM 99 //425 // 825.698 //457\r\n// What type of sensor is used?\r\n// 1 is 100k thermistor (Epcos B57560G0107F000 - RepRap-Fab.org and many other)\r\n// 2 is 200k thermistor\r\n// 3 is mendel-parts thermistor (EPCOS G550)\r\n// 4 is 10k thermistor\r\n// 8 is ATC Semitec 104GT-2\r\n// 13 is PT100 for E3D/Ultimaker\r\n// 5 is userdefined thermistor table 0\r\n// 6 is userdefined thermistor table 1\r\n// 7 is userdefined thermistor table 2\r\n// 12 is 100k RS thermistor 198-961\r\n// 13 is PT100 for E3D/Ultimaker\r\n// 14 is 100K NTC 3950\r\n// 50 is userdefined thermistor table 0 for PTC thermistors\r\n// 51 is userdefined thermistor table 0 for PTC thermistors\r\n// 52 is userdefined thermistor table 0 for PTC thermistors\r\n// 60 is AD8494, AD8495, AD8496 or AD8497 (5mV/degC and 1/4 the price of AD595 but only MSOT_08 package)\r\n// 61 is AD8494, AD8495, AD8496 or AD8497 (5mV/degC and 1.25 Vref offset like Adafruit breakout)\r\n// 97 Generic thermistor table 1\r\n// 98 Generic thermistor table 2\r\n// 99 Generic thermistor table 3\r\n// 100 is AD595\r\n// 101 is MAX6675\r\n// 102 is MAX31855\r\n#define EXT0_TEMPSENSOR_TYPE 5\r\n// Analog input pin for reading temperatures or pin enabling SS for MAX6675\r\n#define EXT0_TEMPSENSOR_PIN TEMP_0_PIN\r\n// Which pin enables the heater\r\n#define EXT0_HEATER_PIN HEATER_0_PIN\r\n#define EXT0_STEP_PIN E0_STEP_PIN\r\n#define EXT0_DIR_PIN E0_DIR_PIN\r\n// set to false/true for normal / inverse direction\r\n#if DAVINCI==0\r\n#define EXT0_INVERSE false\r\n#endif\r\n#if DAVINCI==1 || DAVINCI==4\r\n#define EXT0_INVERSE false\r\n#endif\r\n#if DAVINCI==2 || DAVINCI==3\r\n#define EXT0_INVERSE true\r\n#endif\r\n#define EXT0_ENABLE_PIN E0_ENABLE_PIN\r\n/* Set to 1 to mirror motor. Pins for mirrored motor are below */\r\n#define EXT0_MIRROR_STEPPER 0\r\n#define EXT0_STEP2_PIN E0_STEP_PIN\r\n#define EXT0_DIR2_PIN E0_DIR_PIN\r\n#define EXT0_INVERSE2 false\r\n#define EXT0_ENABLE2_PIN E0_ENABLE_PIN\r\n\r\n// For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1\r\n#define EXT0_ENABLE_ON 0\r\n// The following speed settings are for skeinforge 40+ where e is the\r\n// length of filament pulled inside the heater. For repsnap or older\r\n// skeinforge use higher values.\r\n//  Overridden if EEPROM activated.\r\n#define EXT0_MAX_FEEDRATE 50\r\n// Feedrate from halted extruder in mm/s\r\n//  Overridden if EEPROM activated.\r\n#define EXT0_MAX_START_FEEDRATE 20\r\n// Acceleration in mm/s^2\r\n//  Overridden if EEPROM activated.\r\n#define EXT0_MAX_ACCELERATION 5000\r\n/** Type of heat manager for this extruder.\r\n- 0 = Simply switch on/off if temperature is reached. Works always.\r\n- 1 = PID Temperature control. Is better but needs good PID values. Defaults are a good start for most extruder.\r\n- 3 = Dead-time control. PID_P becomes dead-time in seconds.\r\n Overridden if EEPROM activated.\r\n*/\r\n#define EXT0_HEAT_MANAGER 3\r\n/** Wait x seconds, after reaching target temperature. Only used for M109.  Overridden if EEPROM activated. */\r\n#define EXT0_WATCHPERIOD 1\r\n\r\n/** \\brief The maximum value, I-gain can contribute to the output.\r\n\r\nA good value is slightly higher then the output needed for your temperature.\r\nValues for starts:\r\n130 => PLA for temperatures from 170-180 deg C\r\n180 => ABS for temperatures around 240 deg C\r\n\r\nThe precise values may differ for different nozzle/resistor combination.\r\n Overridden if EEPROM activated.\r\n*/\r\n#define EXT0_PID_INTEGRAL_DRIVE_MAX 230\r\n/** \\brief lower value for integral part\r\n\r\nThe I state should converge to the exact heater output needed for the target temperature.\r\nTo prevent a long deviation from the target zone, this value limits the lower value.\r\nA good start is 30 lower then the optimal value. You need to leave room for cooling.\r\n Overridden if EEPROM activated.\r\n*/\r\n#define EXT0_PID_INTEGRAL_DRIVE_MIN 40\r\n/** P-gain.  Overridden if EEPROM activated. */\r\n#define EXT0_PID_PGAIN_OR_DEAD_TIME   3\r\n/** I-gain. Overridden if EEPROM activated.\r\n*/\r\n#define EXT0_PID_I   2\r\n/** Dgain.  Overridden if EEPROM activated.*/\r\n#define EXT0_PID_D 40\r\n// maximum time the heater is can be switched on. Max = 255.  Overridden if EEPROM activated.\r\n#define EXT0_PID_MAX 255\r\n/** \\brief Faktor for the advance algorithm. 0 disables the algorithm.  Overridden if EEPROM activated.\r\nK is the factor for the quadratic term, which is normally disabled in newer versions. If you want to use\r\nthe quadratic factor make sure ENABLE_QUADRATIC_ADVANCE is defined.\r\nL is the linear factor and seems to be working better then the quadratic dependency.\r\n*/\r\n#define EXT0_ADVANCE_K 0.0f\r\n#define EXT0_ADVANCE_L 0.0f\r\n/* Motor steps to remove backlash for advance algorithm. These are the steps\r\nneeded to move the motor cog in reverse direction until it hits the driving\r\ncog. Direct drive extruder need 0. */\r\n#define EXT0_ADVANCE_BACKLASH_STEPS 0\r\n/** \\brief Temperature to retract filament when extruder is heating up. Overridden if EEPROM activated.\r\n*/\r\n#define EXT0_WAIT_RETRACT_TEMP \t\t150\r\n/** \\brief Units (mm/inches) to retract filament when extruder is heating up. Overridden if EEPROM activated. Set\r\nto 0 to disable.\r\n*/\r\n#define EXT0_WAIT_RETRACT_UNITS \t0\r\n\r\n/** You can run any GCODE command on extruder deselect/select. Separate multiple commands with a new line \\n.\r\nThat way you can execute some mechanical components needed for extruder selection or retract filament or whatever you need.\r\nThe codes are only executed for multiple extruder when changing the extruder. */\r\n#define EXT0_SELECT_COMMANDS \"M117 Extruder 1\"\r\n#define EXT0_DESELECT_COMMANDS \"\"\r\n/** The extruder cooler is a fan to cool the extruder when it is heating. If you turn the extruder on, the fan goes on. */\r\n\r\n#if DAVINCI==3\r\n#define EXT0_EXTRUDER_COOLER_PIN ORIG_FAN2_PIN\r\n#else\r\n#define EXT0_EXTRUDER_COOLER_PIN ORIG_FAN_PIN\r\n#endif\r\n/** PWM speed for the cooler fan. 0=off 255=full speed */\r\n#define EXT0_EXTRUDER_COOLER_SPEED 255\r\n/** Time in ms between a heater action and test of success. Must be more then time between turning heater on and first temp. rise! */\r\n#define EXT0_DECOUPLE_TEST_PERIOD 30000\r\n/** Pin which toggles regualrly during extrusion allowing jam control. -1 = disabled */\r\n#define EXT0_JAM_PIN -1\r\n/** Pullup resistor for jam pin? */\r\n#define EXT0_JAM_PULLUP false\r\n\r\n\r\n// =========================== Configuration for second extruder ========================\r\n#define EXT1_X_OFFSET -2852\r\n#define EXT1_Y_OFFSET 12\r\n#define EXT1_Z_OFFSET 0\r\n// for skeinforge 40 and later, steps to pull the plasic 1 mm inside the extruder, not out.  Overridden if EEPROM activated.\r\n#define EXT1_STEPS_PER_MM 99\r\n// What type of sensor is used?\r\n// 1 is 100k thermistor (Epcos B57560G0107F000 - RepRap-Fab.org and many other)\r\n// 2 is 200k thermistor\r\n// 3 is mendel-parts thermistor (EPCOS G550)\r\n// 4 is 10k thermistor\r\n// 5 is userdefined thermistor table 0\r\n// 6 is userdefined thermistor table 1\r\n// 7 is userdefined thermistor table 2\r\n// 8 is ATC Semitec 104GT-2\r\n// 50 is userdefined thermistor table 0 for PTC thermistors\r\n// 51 is userdefined thermistor table 0 for PTC thermistors\r\n// 52 is userdefined thermistor table 0 for PTC thermistors\r\n// 60 is AD8494, AD8495, AD8496 or AD8497 (5mV/degC and 1/4 the price of AD595 but only MSOT_08 package)\r\n// 61 is AD8494, AD8495, AD8496 or AD8497 (5mV/degC and 1.25 Vref offset like Adafruit breakout)\r\n// 97 Generic thermistor table 1\r\n// 98 Generic thermistor table 2\r\n// 99 Generic thermistor table 3\r\n// 100 is AD595\r\n// 101 is MAX6675\r\n#define EXT1_TEMPSENSOR_TYPE 5\r\n// Analog input pin for reading temperatures or pin enabling SS for MAX6675\r\n#define EXT1_TEMPSENSOR_PIN TEMP_2_PIN\r\n// Which pin enables the heater\r\n#define EXT1_HEATER_PIN HEATER_2_PIN\r\n#define EXT1_STEP_PIN E1_STEP_PIN\r\n#define EXT1_DIR_PIN E1_DIR_PIN\r\n// set to false/true for normal/inverse direction\r\n#define EXT1_INVERSE false\r\n#define EXT1_ENABLE_PIN E1_ENABLE_PIN\r\n// For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1\r\n#define EXT1_ENABLE_ON false\r\n/* Set to 1 to mirror motor. Pins for mirrored motor are below */\r\n#define EXT1_MIRROR_STEPPER 0\r\n#define EXT1_STEP2_PIN E0_STEP_PIN\r\n#define EXT1_DIR2_PIN E0_DIR_PIN\r\n#define EXT1_INVERSE2 false\r\n#define EXT1_ENABLE2_PIN E0_ENABLE_PIN\r\n// The following speed settings are for skeinforge 40+ where e is the\r\n// length of filament pulled inside the heater. For repsnap or older\r\n// skeinforge use higher values.\r\n//  Overridden if EEPROM activated.\r\n#define EXT1_MAX_FEEDRATE 50\r\n// Feedrate from halted extruder in mm/s\r\n//  Overridden if EEPROM activated.\r\n#define EXT1_MAX_START_FEEDRATE 20\r\n// Acceleration in mm/s^2\r\n//  Overridden if EEPROM activated.\r\n#define EXT1_MAX_ACCELERATION 5000\r\n/** Type of heat manager for this extruder.\r\n- 0 = Simply switch on/off if temperature is reached. Works always.\r\n- 1 = PID Temperature control. Is better but needs good PID values. Defaults are a good start for most extruder.\r\n Overridden if EEPROM activated.\r\n*/\r\n#define EXT1_HEAT_MANAGER 3\r\n/** Wait x seconds, after reaching target temperature. Only used for M109.  Overridden if EEPROM activated. */\r\n#define EXT1_WATCHPERIOD 1\r\n\r\n/** \\brief The maximum value, I-gain can contribute to the output.\r\n\r\nA good value is slightly higher then the output needed for your temperature.\r\nValues for starts:\r\n130 => PLA for temperatures from 170-180 deg C\r\n180 => ABS for temperatures around 240 deg C\r\n\r\nThe precise values may differ for different nozzle/resistor combination.\r\n Overridden if EEPROM activated.\r\n*/\r\n#define EXT1_PID_INTEGRAL_DRIVE_MAX 230\r\n/** \\brief lower value for integral part\r\n\r\nThe I state should converge to the exact heater output needed for the target temperature.\r\nTo prevent a long deviation from the target zone, this value limits the lower value.\r\nA good start is 30 lower then the optimal value. You need to leave room for cooling.\r\n Overridden if EEPROM activated.\r\n*/\r\n#define EXT1_PID_INTEGRAL_DRIVE_MIN 40\r\n/** P-gain.  Overridden if EEPROM activated. */\r\n#define EXT1_PID_PGAIN_OR_DEAD_TIME   3\r\n/** I-gain.  Overridden if EEPROM activated.\r\n*/\r\n#define EXT1_PID_I   2\r\n/** D-gain.  Overridden if EEPROM activated.*/\r\n#define EXT1_PID_D 40\r\n// maximum time the heater is can be switched on. Max = 255.  Overridden if EEPROM activated.\r\n#define EXT1_PID_MAX 255\r\n/** \\brief Faktor for the advance algorithm. 0 disables the algorithm.  Overridden if EEPROM activated.\r\nK is the factor for the quadratic term, which is normally disabled in newer versions. If you want to use\r\nthe quadratic factor make sure ENABLE_QUADRATIC_ADVANCE is defined.\r\nL is the linear factor and seems to be working better then the quadratic dependency.\r\n*/\r\n#define EXT1_ADVANCE_K 0.0f\r\n#define EXT1_ADVANCE_L 0.0f\r\n/* Motor steps to remove backlash for advance algorithm. These are the steps\r\nneeded to move the motor cog in reverse direction until it hits the driving\r\ncog. Direct drive extruder need 0. */\r\n#define EXT1_ADVANCE_BACKLASH_STEPS 0\r\n\r\n#define EXT1_WAIT_RETRACT_TEMP \t150\r\n#define EXT1_WAIT_RETRACT_UNITS\t0\r\n#define EXT1_SELECT_COMMANDS \"M117 Extruder 2\"\r\n#define EXT1_DESELECT_COMMANDS \"\"\r\n/** The extruder cooler is a fan to cool the extruder when it is heating. If you turn the extruder on, the fan goes on. */\r\n#if DAVINCI==0\r\n#define EXT1_EXTRUDER_COOLER_PIN ORIG_FAN_PIN\r\n#endif\r\n#if DAVINCI==1 || DAVINCI==4\r\n#define EXT1_EXTRUDER_COOLER_PIN -1\r\n#endif\r\n#if DAVINCI==2\r\n#define EXT1_EXTRUDER_COOLER_PIN ORIG_FAN_PIN\r\n#endif\r\n#if DAVINCI==3\r\n#define EXT1_EXTRUDER_COOLER_PIN ORIG_FAN_PIN\r\n#endif\r\n\r\n/** PWM speed for the cooler fan. 0=off 255=full speed */\r\n#define EXT1_EXTRUDER_COOLER_SPEED 255\r\n/** Time in ms between a heater action and test of success. Must be more then time between turning heater on and first temp. rise! */\r\n#define EXT1_DECOUPLE_TEST_PERIOD 30000\r\n/** Pin which toggles regularly during extrusion allowing jam control. -1 = disabled */\r\n#define EXT1_JAM_PIN -1\r\n/** Pull-up resistor for jam pin? */\r\n#define EXT1_JAM_PULLUP false\r\n\r\n/** If enabled you can select the distance your filament gets retracted during a\r\nM140 command, after a given temperature is reached. */\r\n#define RETRACT_DURING_HEATUP true\r\n\r\n/** Allow retraction with G10/G11 removing requirement for retraction setting in slicer. Also allows filament change if lcd is configured. */\r\n#define FEATURE_RETRACTION 1\r\n/** auto-retract converts pure extrusion moves into retractions. Beware that \r\n simple extrusion e.g. over Repetier-Host will then not work! */\r\n#define AUTORETRACT_ENABLED 0\r\n#define RETRACTION_LENGTH 3\r\n#define RETRACTION_LONG_LENGTH 13\r\n#define RETRACTION_SPEED 40\r\n#define RETRACTION_Z_LIFT 0\r\n#define RETRACTION_UNDO_EXTRA_LENGTH 0\r\n#define RETRACTION_UNDO_EXTRA_LONG_LENGTH 0\r\n#define RETRACTION_UNDO_SPEED 20\r\n\r\n/**\r\nIf you have a lcd display, you can do a filament switch with M600.\r\nIt will change the current extruders filament and temperature must already be high enough.\r\n*/\r\n#define FILAMENTCHANGE_X_POS 0\r\n#define FILAMENTCHANGE_Y_POS 0\r\n#define FILAMENTCHANGE_Z_ADD 1\r\n/** Does a homing procedure after a filament change. This is good in case\r\nyou moved the extruder while changing filament during print.\r\n0 = no homing, 1 = xy homing, 2 = xyz homing\r\n*/\r\n#define FILAMENTCHANGE_REHOME 1\r\n/** Will first retract short distance, go to change position and then retract longretract.\r\nRetractions speeds are taken from RETRACTION_SPEED and RETRACTION_UNDO_SPEED\r\n*/\r\n#define FILAMENTCHANGE_SHORTRETRACT 30\r\n#define FILAMENTCHANGE_LONGRETRACT 30\r\n\r\n/* Define how we detect jam/out of filament\r\n   1 = Distance between signal changes increase\r\n   2 = signal gets high\r\n   3 = signal gets low\r\n   \r\n   2 and 3 are not jam detections, but only out of filament detection by a switch\r\n   that changes the signal! \r\n*/\r\n#define JAM_METHOD 1\r\n// Steps normally needed for a full signal cycle.\r\n#define JAM_STEPS 220\r\n// Steps for reducing speed. Must be higher then JAM_STEPS\r\n#define JAM_SLOWDOWN_STEPS 380\r\n// New speed multiplier which gets set when slowdown is reached.\r\n#define JAM_SLOWDOWN_TO 70\r\n// Last fallback. If we slip this much, we want to pause.\r\n#define JAM_ERROR_STEPS 430\r\n/** To prevent signal bouncing, only consider changes if we are this much steps\r\n away from last signal change. */ \r\n#define JAM_MIN_STEPS 10\r\n/*\r\nDetermine what should be done if a jam is detected\r\n0 : Nothing, just mark extruder as jammed.\r\n1 : Jam/out of filament dialog and block communication.\r\n2 : Message to host/server otherwise continue and mark extruder jammed\r\n*/\r\n#define JAM_ACTION 1\r\n\r\n/** PID control only works target temperature +/- PID_CONTROL_RANGE.\r\nIf you get much overshoot at the first temperature set, because the heater is going full power too long, you\r\nneed to increase this value. For one 6.8 Ohm heater 10 is ok. With two 6.8 Ohm heater use 15.\r\n*/\r\n#define PID_CONTROL_RANGE 20\r\n\r\n/** Prevent extrusions longer then x mm for one command. This is especially important if you abort a print. Then the\r\nextrusion position might be at any value like 23344. If you then have an G1 E-2 it will roll back 23 meter! */\r\n#define EXTRUDE_MAXLENGTH 100\r\n/** Skip wait, if the extruder temperature is already within x degrees. Only fixed numbers, 0 = off */\r\n#define SKIP_M109_IF_WITHIN 2\r\n\r\n/** \\brief Set PID scaling\r\n\r\nPID values assume a usable range from 0-255. This can be further limited to EXT0_PID_MAX by to methods.\r\nSet the value to 0: Normal computation, just clip output to EXT0_PID_MAX if computed value is too high.\r\nSet value to 1: Scale PID by EXT0_PID_MAX/256 and then clip to EXT0_PID_MAX.\r\nIf your EXT0_PID_MAX is low, you should prefer the second method.\r\n*/\r\n#define SCALE_PID_TO_MAX 0\r\n\r\n#define HEATER_PWM_SPEED 1 // How fast ist pwm signal 0 = 15.25Hz, 1 = 30.51Hz, 2 = 61.03Hz, 3 = 122.06Hz\r\n\r\n/** Temperature range for target temperature to hold in M109 command. 5 means +/-5 degC\r\n\r\nUncomment define to force the temperature into the range for given watch period.\r\n*/\r\n//#define TEMP_HYSTERESIS 5\r\n\r\n/** Userdefined thermistor table\r\n\r\nThere are many different thermistors, which can be combined with different resistors. This result\r\nin unpredictable number of tables. As a resolution, the user can define one table here, that can\r\nbe used as type 5 for thermistor type in extruder/heated bed definition. Make sure, the number of entries\r\nmatches the value in NUM_TEMPS_USERTHERMISTOR0. If you span definition over multiple lines, make sure to end\r\neach line, except the last, with a backslash. The table format is {{adc1,temp1},{adc2,temp2}...} with\r\nincreasing adc values. For more informations, read\r\nhttp://hydraraptor.blogspot.com/2007/10/measuring-temperature-easy-way.html\r\n\r\nIf you have a sprinter temperature table, you have to multiply the first value with 4 and the second with 8.\r\nThis firmware works with increased precision, so the value reads go from 0 to 4095 and the temperature is\r\ntemperature*8.\r\n\r\nIf you have a PTC thermistor instead of a NTC thermistor, keep the adc values increasing and use thermistor types 50-52 instead of 5-7!\r\n*/\r\n/** Number of entries in the user thermistor table 0. Set to 0 to disable it. */\r\n#if MODEL==0\r\n#define NUM_TEMPS_USERTHERMISTOR0 33\r\n#define USER_THERMISTORTABLE0 {{96,2400},{99,2320},{113,2240},{132,2160},{155,2080},{180,2000},{211,1920},{247,1840},{293,1760},{350,1680},{421,1600},{508,1520},{611,1440},{732,1360},{871,1280},{1024,1200},{1192,1120},{1369,1040},{1552,960},{1737,880},{1900,800},{2070,720},{2219,640},{2361,560},{2478,480},{2565,400},{2628,320},{2673,240},{2710,160},{2746,80},{2783,0},{2824,-80},{2864,-160}}\r\n\r\n/** Number of entries in the user thermistor table 1. Set to 0 to disable it. */\r\n#define NUM_TEMPS_USERTHERMISTOR1 19\r\n#define USER_THERMISTORTABLE1 {{628,1280},{859,1200},{1113,1120},{1382,1040},{1660,960},{1938,880},{2211,800},{2473,720},{2718,640},{2945,560},{3148,480},{3328,400},{3482,320},{3613,240},{3722,160},{3815,80},{3895,0},{3972,-80},{4055,-160}}\r\n\r\n/** Number of entries in the user thermistor table 2. Set to 0 to disable it. */\r\n#define NUM_TEMPS_USERTHERMISTOR2 0\r\n#define USER_THERMISTORTABLE2  {}\r\n\r\n#else\r\n#define NUM_TEMPS_USERTHERMISTOR0 28\r\n#define USER_THERMISTORTABLE0 {{294, 2560},{375, 2400},{461, 2272},{526, 2184},{601, 2104},{674, 2048},{811, 1928},{925, 1848},{1071, 1768},{1219, 1696},{1445, 1584},{1673, 1496},{1902, 1416},{2187, 1312},{2454, 1224},{2672, 1152},{3000, 1048},{3196, 968},{3439, 864},{3583, 784},{3736, 680},{3899, 536},{3960, 448},{4024, 336},{4067, 192},{4079, 156},{4100, 0},{4120, -160}}\r\n\r\n/** Number of entries in the user thermistor table 1. Set to 0 to disable it. */\r\n#define NUM_TEMPS_USERTHERMISTOR1 19\r\n#define USER_THERMISTORTABLE1 {{628,1280},{859,1200},{1113,1120},{1382,1040},{1660,960},{1938,880},{2211,800},{2473,720},{2718,640},{2945,560},{3148,480},{3328,400},{3482,320},{3613,240},{3722,160},{3815,80},{3895,0},{3972,-80},{4055,-160}}\r\n\r\n/** Number of entries in the user thermistor table 2. Set to 0 to disable it. */\r\n#define NUM_TEMPS_USERTHERMISTOR2 0\r\n#endif\r\n\r\n/** If defined, creates a thermistor table at startup.\r\n\r\nIf you don't feel like computing the table on your own, you can use this generic method. It is\r\na simple approximation which may be not as accurate as a good table computed from the reference\r\nvalues in the datasheet. You can increase precision if you use a temperature/resistance for\r\nR0/T0, which is near your operating temperature. This will reduce precision for lower temperatures,\r\nwhich are not really important. The resistors must fit the following schematic:\r\n@code\r\nVREF ---- R2 ---+--- Termistor ---+-- GND\r\n                |                 |\r\n                +------ R1 -------+\r\n                |                 |\r\n                +---- Capacitor --+\r\n                |\r\n                V measured\r\n@endcode\r\n\r\nIf you don't have R1, set it to 0.\r\nThe capacitor is for reducing noise from long thermistor cable. If you don't have one, it's OK.\r\n\r\nIf you need the generic table, uncomment the following define.\r\n*/\r\n//#define USE_GENERIC_THERMISTORTABLE_1\r\n\r\n/* Some examples for different thermistors:\r\n\r\nEPCOS B57560G104+ : R0 = 100000  T0 = 25  Beta = 4036\r\nEPCOS 100K Thermistor (B57560G1104F) :  R0 = 100000  T0 = 25  Beta = 4092\r\nATC Semitec 104GT-2 : R0 = 100000  T0 = 25  Beta = 4267\r\nHoneywell 100K Thermistor (135-104LAG-J01)  : R0 = 100000  T0 = 25  Beta = 3974\r\n\r\n*/\r\n\r\n/** Reference Temperature */\r\n#define GENERIC_THERM1_T0 25\r\n/** Resistance at reference temperature */\r\n#define GENERIC_THERM1_R0 100000\r\n/** Beta value of thermistor\r\n\r\nYou can use the beta from the datasheet or compute it yourself.\r\nSee http://reprap.org/wiki/MeasuringThermistorBeta for more details.\r\n*/\r\n#define GENERIC_THERM1_BETA 4036\r\n/** Start temperature for generated thermistor table */\r\n#define GENERIC_THERM1_MIN_TEMP -20\r\n/** End Temperature for generated thermistor table */\r\n#define GENERIC_THERM1_MAX_TEMP 300\r\n#define GENERIC_THERM1_R1 0\r\n#define GENERIC_THERM1_R2 4700\r\n\r\n// The same for table 2 and 3 if needed\r\n\r\n// #define USE_GENERIC_THERMISTORTABLE_2\r\n#define GENERIC_THERM2_R0 100000\r\n#define GENERIC_THERM2_T0 25\r\n#define GENERIC_THERM2_BETA 3950\r\n#define GENERIC_THERM2_MIN_TEMP -20\r\n#define GENERIC_THERM2_MAX_TEMP 300\r\n#define GENERIC_THERM2_R1 0\r\n#define GENERIC_THERM2_R2 4700\r\n\r\n//#define USE_GENERIC_THERMISTORTABLE_3\r\n#define GENERIC_THERM3_T0 170\r\n#define GENERIC_THERM3_R0 1042.7\r\n#define GENERIC_THERM3_BETA 4036\r\n#define GENERIC_THERM3_MIN_TEMP -20\r\n#define GENERIC_THERM3_MAX_TEMP 300\r\n#define GENERIC_THERM3_R1 0\r\n#define GENERIC_THERM3_R2 4700\r\n\r\n/** Supply voltage to ADC, can be changed by setting ANALOG_REF below to different value. */\r\n#define GENERIC_THERM_VREF 5\r\n/** Number of entries in generated table. One entry takes 4 bytes. Higher number of entries increase computation time too.\r\nValue is used for all generic tables created. */\r\n#define GENERIC_THERM_NUM_ENTRIES 33\r\n\r\n// uncomment the following line for MAX6675 support.\r\n//#define SUPPORT_MAX6675\r\n// uncomment the following line for MAX31855 support.\r\n//#define SUPPORT_MAX31855\r\n\r\n// ############# Heated bed configuration ########################\r\n\r\n/** \\brief Set true if you have a heated bed conected to your board, false if not */\r\n#define HAVE_HEATED_BED true\r\n\r\n#define HEATED_BED_MAX_TEMP 130\r\n/** Skip M190 wait, if heated bed is already within x degrees. Fixed numbers only, 0 = off. */\r\n#define SKIP_M190_IF_WITHIN 5\r\n\r\n// Select type of your heated bed. It's the same as for EXT0_TEMPSENSOR_TYPE\r\n// set to 0 if you don't have a heated bed\r\n#define HEATED_BED_SENSOR_TYPE 6\r\n/** Analog pin of analog sensor to read temperature of heated bed.  */\r\n#define HEATED_BED_SENSOR_PIN TEMP_1_PIN\r\n/** \\brief Pin to enable heater for bed. */\r\n#define HEATED_BED_HEATER_PIN HEATER_1_PIN\r\n// How often the temperature of the heated bed is set (msec)\r\n#define HEATED_BED_SET_INTERVAL 5000\r\n\r\n/**\r\nHeat manager for heated bed:\r\n0 = Bang Bang, fast update\r\n1 = PID controlled\r\n2 = Bang Bang, limited check every HEATED_BED_SET_INTERVAL. Use this with relay-driven beds to save life time\r\n3 = dead time control\r\n*/\r\n#define HEATED_BED_HEAT_MANAGER 2\r\n/** \\brief The maximum value, I-gain can contribute to the output.\r\nThe precise values may differ for different nozzle/resistor combination.\r\n Overridden if EEPROM activated.\r\n*/\r\n#define HEATED_BED_PID_INTEGRAL_DRIVE_MAX 255\r\n/** \\brief lower value for integral part\r\n\r\nThe I state should converge to the exact heater output needed for the target temperature.\r\nTo prevent a long deviation from the target zone, this value limits the lower value.\r\nA good start is 30 lower then the optimal value. You need to leave room for cooling.\r\n Overridden if EEPROM activated.\r\n*/\r\n#define HEATED_BED_PID_INTEGRAL_DRIVE_MIN 80\r\n/** P-gain.  Overridden if EEPROM activated. */\r\n#define HEATED_BED_PID_PGAIN_OR_DEAD_TIME   196\r\n/** I-gain  Overridden if EEPROM activated.*/\r\n#define HEATED_BED_PID_IGAIN   33.0\r\n/** Dgain.  Overridden if EEPROM activated.*/\r\n#define HEATED_BED_PID_DGAIN 290\r\n// maximum time the heater can be switched on. Max = 255.  Overridden if EEPROM activated.\r\n#define HEATED_BED_PID_MAX 255\r\n// Time to see a temp. change when fully heating. Consider that beds at higher temp. need longer to rise and cold\r\n// beds need some time to get the temp. to the sensor. Time is in milliseconds!\r\n#define HEATED_BED_DECOUPLE_TEST_PERIOD 300000\r\n\r\n// When temperature exceeds max temp, your heater will be switched off.\r\n// This feature exists to protect your hotend from overheating accidentally, but *NOT* from thermistor short/failure!\r\n#define MAXTEMP 270\r\n\r\n/** Extreme values to detect defect thermistors. */\r\n#define MIN_DEFECT_TEMPERATURE -10\r\n#define MAX_DEFECT_TEMPERATURE 290\r\n\r\n// ##########################################################################################\r\n// ##                             Laser configuration                                      ##\r\n// ##########################################################################################\r\n\r\n/*\r\nIf the firmware is in laser mode, it can control a laser output to cut or engrave materials.\r\nPlease use this feature only if you know about safety and required protection. Lasers are\r\ndangerous and can hurt or make you blind!!!\r\n\r\nThe default laser driver only supports laser on and off. Here you control the intensity with\r\nyour feedrate. For exchangeable diode lasers this is normally enough. If you need more control\r\nyou can set the intensity in a range 0-255 with a custom extension to the driver. See driver.h\r\nand comments on how to extend the functions non invasive with our event system.\r\n\r\nIf you have a laser - powder system you will like your E override. If moves contain a \r\nincreasing extruder position it will laser that move. With this trick you can\r\nuse existing FDM slicers to laser the output. Laser width is extrusion width.\r\n\r\nOther tools may use M3 and M5 to enable/disable laser. Here G1/G2/G3 moves have laser enabled\r\nand G0 moves have it disables.\r\n\r\nIn any case, laser only enables while moving. At the end of a move it gets\r\nautomatically disabled. \r\n*/\r\n\r\n#define SUPPORT_LASER 0 // set 1 to enable laser support\r\n#define LASER_PIN -1    // set to pin enabling laser\r\n#define LASER_ON_HIGH 1 // Set 0 if low signal enables laser\r\n\r\n// ##########################################################################################\r\n// ##                              CNC configuration                                       ##\r\n// ##########################################################################################\r\n\r\n/*\r\nIf the firmware is in CNC mode, it can control a mill with M3/M4/M5. It works \r\nsimilar to laser mode, but mill keeps enabled during G0 moves and it allows\r\nsetting rpm (only with event extension that supports this) and milling direction.\r\nIt also can add a delay to wait for spindle to run on full speed.\r\n*/\r\n\r\n#define SUPPORT_CNC 0 // Set 1 for CNC support\r\n#define CNC_WAIT_ON_ENABLE 300 // wait x milliseconds after enabling\r\n#define CNC_WAIT_ON_DISABLE 0 // delay in milliseconds after disabling spindle. May be required for direction changes.\r\n#define CNC_ENABLE_PIN -1 // Pin to enable mill\r\n#define CNC_ENABLE_WITH 1 // Set 0 if low enables spindle\r\n#define CNC_DIRECTION_PIN -1 // Set to pin if direction control is possible\r\n#define CNC_DIRECTION_CW 1 // Set signal required for clockwise rotation\r\n\r\n\r\n/* Select the default mode when the printer gets enables. Possible values are\r\nPRINTER_MODE_FFF 0\r\nPRINTER_MODE_LASER 1\r\nPRINTER_MODE_CNC 2\r\n*/\r\n#define DEFAULT_PRINTER_MODE PRINTER_MODE_FFF\r\n\r\n// ##########################################################################################\r\n// ##                            Endstop configuration                                     ##\r\n// ##########################################################################################\r\n\r\n/* By default all endstops are pulled up to HIGH. You need a pull-up if you\r\nuse a mechanical endstop connected with GND. Set value to false for no pull-up\r\non this endstop.\r\n*/\r\n#define ENDSTOP_PULLUP_X_MIN false\r\n#define ENDSTOP_PULLUP_Y_MIN false\r\n#define ENDSTOP_PULLUP_Z_MIN false\r\n#define ENDSTOP_PULLUP_X_MAX true\r\n#define ENDSTOP_PULLUP_Y_MAX true\r\n#define ENDSTOP_PULLUP_Z_MAX true\r\n\r\n// Set to true to invert the logic of the endstops\r\n#define ENDSTOP_X_MIN_INVERTING false\r\n#define ENDSTOP_Y_MIN_INVERTING false\r\n#define ENDSTOP_Z_MIN_INVERTING false\r\n#define ENDSTOP_X_MAX_INVERTING true\r\n#define ENDSTOP_Y_MAX_INVERTING true\r\n#define ENDSTOP_Z_MAX_INVERTING true\r\n\r\n// Set the values true where you have a hardware endstop. The Pin number is taken from pins.h.\r\n\r\n#define MIN_HARDWARE_ENDSTOP_X true\r\n#define MIN_HARDWARE_ENDSTOP_Y true\r\n#define MIN_HARDWARE_ENDSTOP_Z true\r\n#define MAX_HARDWARE_ENDSTOP_X false\r\n#define MAX_HARDWARE_ENDSTOP_Y false\r\n#define MAX_HARDWARE_ENDSTOP_Z false\r\n\r\n//If your axes are only moving in one direction, make sure the endstops are connected properly.\r\n//If your axes move in one direction ONLY when the endstops are triggered, set ENDSTOPS_INVERTING to true here\r\n\r\n\r\n\r\n//// ADVANCED SETTINGS - to tweak parameters\r\n\r\n// For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1\r\n#define X_ENABLE_ON 0\r\n#define Y_ENABLE_ON 0\r\n#define Z_ENABLE_ON 0\r\n\r\n// Disables axis when it's not being used.\r\n#define DISABLE_X false\r\n#define DISABLE_Y false\r\n#define DISABLE_Z false\r\n#define DISABLE_E false\r\n/* If you want to keep z motor running on stepper timeout, remove comments below.\r\n  This may be useful if your z bed moves when motors are disabled. Will still\r\n  turn z off when heaters get also disabled. \r\n*/\r\n//#define PREVENT_Z_DISABLE_ON_STEPPER_TIMEOUT\r\n\r\n// Inverting axis direction\r\n#define INVERT_X_DIR true\r\n#define INVERT_Y_DIR false\r\n#define INVERT_Z_DIR true\r\n\r\n//// ENDSTOP SETTINGS:\r\n// Sets direction of endstops when homing; 1=MAX, -1=MIN\r\n#define X_HOME_DIR -1\r\n#define Y_HOME_DIR -1\r\n#define Z_HOME_DIR -1\r\n\r\n// Delta robot radius endstop\r\n#define max_software_endstop_r true\r\n\r\n//If true, axis won't move to coordinates less than zero.\r\n#define min_software_endstop_x false\r\n#define min_software_endstop_y false\r\n#define min_software_endstop_z false\r\n\r\n//If true, axis won't move to coordinates greater than the defined lengths below.\r\n#define max_software_endstop_x true\r\n#define max_software_endstop_y true\r\n#define max_software_endstop_z true\r\n\r\n// If during homing the endstop is reached, ho many mm should the printer move back for the second try\r\n#define ENDSTOP_X_BACK_MOVE 5\r\n#define ENDSTOP_Y_BACK_MOVE 5\r\n#define ENDSTOP_Z_BACK_MOVE 2\r\n\r\n// For higher precision you can reduce the speed for the second test on the endstop\r\n// during homing operation. The homing speed is divided by the value. 1 = same speed, 2 = half speed\r\n#define ENDSTOP_X_RETEST_REDUCTION_FACTOR 3\r\n#define ENDSTOP_Y_RETEST_REDUCTION_FACTOR 3\r\n//Davinci Specific, bad noise if set to 3\r\n#define ENDSTOP_Z_RETEST_REDUCTION_FACTOR 4\r\n\r\n// When you have several endstops in one circuit you need to disable it after homing by moving a\r\n// small amount back. This is also the case with H-belt systems.\r\n\r\n#if DAVINCI==0\r\n#define ENDSTOP_X_BACK_ON_HOME 0\r\n#define ENDSTOP_Y_BACK_ON_HOME 0\r\n#define ENDSTOP_Z_BACK_ON_HOME 0\r\n#endif \r\n\r\n#if DAVINCI==1 || DAVINCI==4\r\n#define ENDSTOP_X_BACK_ON_HOME 0\r\n#define ENDSTOP_Y_BACK_ON_HOME 0\r\n#define ENDSTOP_Z_BACK_ON_HOME 0\r\n#endif \r\n\r\n#if DAVINCI==2 || DAVINCI==3\r\n#define ENDSTOP_X_BACK_ON_HOME 0\r\n//to avoid to hit plate when homing\r\n#define ENDSTOP_Y_BACK_ON_HOME 7\r\n#define ENDSTOP_Z_BACK_ON_HOME 0\r\n#endif\r\n\r\n\r\n// You can disable endstop checking for print moves. This is needed, if you get sometimes\r\n// false signals from your endstops. If your endstops don't give false signals, you\r\n// can set it on for safety.\r\n//Davinci, specific : Home sensors are easy to get noise an make print to lift, especially on 1.0A/2.0A, so disable it as no need to check home position all the time\r\n#define ALWAYS_CHECK_ENDSTOPS 0\r\n\r\n// maximum positions in mm - only fixed numbers!\r\n// For delta robot Z_MAX_LENGTH is the maximum travel of the towers and should be set to the distance between the hotend\r\n// and the platform when the printer is at its home position.\r\n// If EEPROM is enabled these values will be overridden with the values in the EEPROM\r\n#if DAVINCI==0\r\n#define X_MAX_LENGTH 237 - ENDSTOP_X_BACK_ON_HOME\r\n#define Y_MAX_LENGTH 217 - ENDSTOP_Y_BACK_ON_HOME\r\n#define Z_MAX_LENGTH 190 - ENDSTOP_Z_BACK_ON_HOME\r\n#endif\r\n\r\n#if DAVINCI==1\r\n#if MODEL==0\r\n#define Y_MAX_LENGTH 217 - ENDSTOP_Y_BACK_ON_HOME\r\n#else\r\n#define Y_MAX_LENGTH 215 - ENDSTOP_Y_BACK_ON_HOME\r\n#endif\r\n#define X_MAX_LENGTH 237 - ENDSTOP_X_BACK_ON_HOME\r\n#define Z_MAX_LENGTH 200 - ENDSTOP_Z_BACK_ON_HOME\r\n#endif\r\n\r\n#if DAVINCI==2 || DAVINCI==3\r\n#define X_MAX_LENGTH 199 - ENDSTOP_X_BACK_ON_HOME\r\n#define Y_MAX_LENGTH 211 - ENDSTOP_Y_BACK_ON_HOME\r\n#define Z_MAX_LENGTH 200 - ENDSTOP_Z_BACK_ON_HOME\r\n#endif\r\n\r\n#if DAVINCI==4\r\n#define X_MAX_LENGTH 223.60 - ENDSTOP_X_BACK_ON_HOME\r\n#define Y_MAX_LENGTH 220.60 - ENDSTOP_Y_BACK_ON_HOME\r\n#define Z_MAX_LENGTH 190 - ENDSTOP_Z_BACK_ON_HOME\r\n#endif\r\n\r\n// Coordinates for the minimum axis. Can also be negative if you want to have the bed start at 0 and the printer can go to the left side\r\n// of the bed. Maximum coordinate is given by adding the above X_MAX_LENGTH values.\r\n#if DAVINCI==1\r\n#define X_MIN_POS -33\r\n#define Y_MIN_POS -12\r\n#define Z_MIN_POS 0\r\n#endif\r\n\r\n#if DAVINCI==2 || DAVINCI==3\r\n#define X_MIN_POS 0\r\n#define Y_MIN_POS 0\r\n#define Z_MIN_POS 0\r\n#endif\r\n\r\n#if DAVINCI==4\r\n#define X_MIN_POS -14.60\r\n#define Y_MIN_POS -12.60\r\n#define Z_MIN_POS 0\r\n#endif\r\n\r\n#if DAVINCI==0\r\n#define X_MIN_POS 0\r\n#define Y_MIN_POS 0\r\n#define Z_MIN_POS 0\r\n#endif\r\n\r\n// ##########################################################################################\r\n// ##                           Movement settings                                          ##\r\n// ##########################################################################################\r\n\r\n// Microstep setting (Only functional when stepper driver microstep pins are connected to MCU. Currently only works for RAMBO boards\r\n#define MICROSTEP_MODES {8,8,8,8,8} // [1,2,4,8,16]\r\n\r\n// Motor Current setting (Only functional when motor driver current ref pins are connected to a digital trimpot on supported boards)\r\n#if MOTHERBOARD==301\r\n//#define MOTOR_CURRENT {135,135,135,135,135} // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)\r\n#define MOTOR_CURRENT_PERCENT {53,53,53,53,53}\r\n#elif MOTHERBOARD==12\r\n//#define MOTOR_CURRENT {35713,35713,35713,35713,35713} // Values 0-65535 (3D Master 35713 = ~1A)\r\n#define MOTOR_CURRENT_PERCENT {55,55,55,55,55}\r\n#elif (MOTHERBOARD==500) || (MOTHERBOARD==501) // Alligator boards\r\n//#define MOTOR_CURRENT {130,130,130,110,110,110,110} // expired method\r\n#define MOTOR_CURRENT_PERCENT {51,51,51,44,44,44,44}\r\n#endif\r\n\r\n/** \\brief Number of segments to generate for delta conversions per second of move\r\n*/\r\n#define DELTA_SEGMENTS_PER_SECOND_PRINT 600 // Move accurate setting for print moves\r\n#define DELTA_SEGMENTS_PER_SECOND_MOVE 600 // Less accurate setting for other moves\r\n\r\n// Delta settings\r\n#if DRIVE_SYSTEM == DELTA\r\n/** \\brief Delta rod length (mm)\r\n*/\r\n#define DELTA_DIAGONAL_ROD 345 // mm\r\n\r\n\r\n/*  =========== Parameter essential for delta calibration ===================\r\n\r\n            C, Y-Axis\r\n            |                        |___| CARRIAGE_HORIZONTAL_OFFSET (recommend set it to 0)\r\n            |                        |   \\------------------------------------------\r\n            |_________ X-axis        |    \\                                        |\r\n           / \\                       |     \\  DELTA_DIAGONAL_ROD (length)    Each move this Rod Height\r\n          /   \\                             \\                                 is calculated\r\n         /     \\                             \\    Carriage is at printer center!   |\r\n         A      B                             \\_____/--------------------------------\r\n                                              |--| END_EFFECTOR_HORIZONTAL_OFFSET (recommend set it to 0)\r\n                                         |----| ROD_RADIUS (Horizontal rod pivot to pivot measure)\r\n                                     |-----------| PRINTER_RADIUS (recommend set it to ROD_RADIUS)\r\n\r\n    Column angles are measured from X-axis counterclockwise\r\n    \"Standard\" positions: alpha_A = 210, alpha_B = 330, alpha_C = 90\r\n*/\r\n\r\n/** \\brief column positions - change only to correct build imperfections! */\r\n#define DELTA_ALPHA_A 210\r\n#define DELTA_ALPHA_B 330\r\n#define DELTA_ALPHA_C 90\r\n\r\n/** Correct radius by this value for each column. Perfect builds have 0 everywhere. */\r\n#define DELTA_RADIUS_CORRECTION_A 0\r\n#define DELTA_RADIUS_CORRECTION_B 0\r\n#define DELTA_RADIUS_CORRECTION_C 0\r\n\r\n/** Correction of the default diagonal size. Value gets added.*/\r\n#define DELTA_DIAGONAL_CORRECTION_A 0\r\n#define DELTA_DIAGONAL_CORRECTION_B 0\r\n#define DELTA_DIAGONAL_CORRECTION_C 0\r\n\r\n/** Max. radius (mm) the printer should be able to reach. */\r\n#define DELTA_MAX_RADIUS 200\r\n\r\n// Margin (mm) to avoid above tower minimum (xMin xMinsteps)\r\n// If your printer can put its carriage low enough the rod is horizontal without hitting the floor\r\n// set this to zero. Otherwise, measure how high the carriage is from horizontal rod\r\n// Also, movement speeds are 10x to 20x cartesian speeds at tower bottom.\r\n// You may need to leave a few mm for safety.\r\n// Hitting floor at high speed can damage your printer (motors, drives, etc)\r\n// THIS MAY NEED UPDATING IF THE HOT END HEIGHT CHANGES!\r\n#define DELTA_FLOOR_SAFETY_MARGIN_MM 15\r\n\r\n/** \\brief Horizontal offset of the universal joints on the end effector (moving platform).\r\n*/\r\n#define END_EFFECTOR_HORIZONTAL_OFFSET 0\r\n\r\n/** \\brief Horizontal offset of the universal joints on the vertical carriages.\r\n*/\r\n#define CARRIAGE_HORIZONTAL_OFFSET 0\r\n\r\n/** \\brief Printer radius in mm,\r\n  measured from the center of the print area to the vertical smooth tower.\r\n  Alternately set this to the pivot to pivot horizontal rod distance, when head is at (0,0)\r\n*/\r\n#define PRINTER_RADIUS 265.25\r\n\r\n/* ========== END Delta calibration data ==============*/\r\n\r\n/** When true the delta will home to z max when reset/powered over cord. That way you start with well defined coordinates.\r\nIf you don't do it, make sure to home first before your first move.\r\n*/\r\n#define DELTA_HOME_ON_POWER 0\r\n\r\n/** To allow software correction of misaligned endstops, you can set the correction in steps here. If you have EEPROM enabled\r\nyou can also change the values online and autoleveling will store the results here. */\r\n#define DELTA_X_ENDSTOP_OFFSET_STEPS 0\r\n#define DELTA_Y_ENDSTOP_OFFSET_STEPS 0\r\n#define DELTA_Z_ENDSTOP_OFFSET_STEPS 0\r\n\r\n#endif\r\n// ========== Tuga special settings =============\r\n#if DRIVE_SYSTEM==TUGA\r\n/* Radius of the long arm in mm. */\r\n#define DELTA_DIAGONAL_ROD 240\r\n#endif\r\n\r\n/** \\brief Number of delta moves in each line. Moves that exceed this figure will be split into multiple lines.\r\nIncreasing this figure can use a lot of memory since 7 bytes * size of line buffer * MAX_SELTA_SEGMENTS_PER_LINE\r\nwill be allocated for the delta buffer.\r\nPrintLine PrintLine::lines[PRINTLINE_CACHE_SIZE (default 16?)];\r\nPrintline is about 200 bytes + 7 * DELTASEGMENTS_PER_PRINTLINE\r\nor 16 * (200 + (7*22=154) = 354) = 5664 bytes! !1\r\nmin is 5 * (200 + (7*10=70) =270) = 1350\r\n This leaves ~1K free RAM on an Arduino which has only 8k\r\nMega. Used only for nonlinear systems like delta or tuga. */\r\n#define DELTASEGMENTS_PER_PRINTLINE 22\r\n\r\n/** After x seconds of inactivity, the stepper motors are disabled.\r\n    Set to 0 to leave them enabled.\r\n    This helps cooling the Stepper motors between two print jobs.\r\n    Overridden if EEPROM activated.\r\n*/\r\n#define STEPPER_INACTIVE_TIME 360\r\n/** After x seconds of inactivity, the system will go down as far it can.\r\n    It will at least disable all stepper motors and heaters. If the board has\r\n    a power pin, it will be disabled, too.\r\n    Set value to 0 for disabled.\r\n    Overridden if EEPROM activated.\r\n*/\r\n#define MAX_INACTIVE_TIME 0L\r\n/** Maximum feedrate, the system allows. Higher feedrates are reduced to these values.\r\n    The axis order in all axis related arrays is X, Y, Z\r\n     Overridden if EEPROM activated.\r\n    */\r\n#define MAX_FEEDRATE_X 200\r\n#define MAX_FEEDRATE_Y 200\r\n#define MAX_FEEDRATE_Z 5\r\n\r\n/** Home position speed in mm/s. Overridden if EEPROM activated. */\r\n#define HOMING_FEEDRATE_X 40\r\n#define HOMING_FEEDRATE_Y 40\r\n#define HOMING_FEEDRATE_Z 4\r\n\r\n/** Set order of axis homing. Use HOME_ORDER_XYZ and replace XYZ with your order. \r\n * If you measure Z with your extruder tip you need a hot extruder to get right measurement. In this\r\n * case set HOME_ORDER_ZXYTZ and also define ZHOME_HEAT_HEIGHT and ZHOME_MIN_TEMPERATURE. It will do\r\n * first a z home to get some reference, then raise to ZHOME_HEAT_HEIGHT do xy homing and then after\r\n * heating to minimum ZHOME_MIN_TEMPERATURE will z home again for correct height.   \r\n * */\r\n#define HOMING_ORDER HOME_ORDER_XYZ\r\n// Used for homing order HOME_ORDER_ZXYTZ\r\n#define ZHOME_MIN_TEMPERATURE 0\r\n// needs to heat all extruders (1) or only current extruder (0)\r\n#define ZHOME_HEAT_ALL 1 \r\n// Z-height for heating extruder during homing\r\n#define ZHOME_HEAT_HEIGHT 20\r\n// If your bed might bend while probing, because your sensor is the extruder tip\r\n// you can define a predefined x,y position so beding is always the same and\r\n// can be compensated. Set coordinate to 999999 to ignore positions and just\r\n// use the position you are at.\r\n#define ZHOME_X_POS IGNORE_COORDINATE\r\n#define ZHOME_Y_POS IGNORE_COORDINATE\r\n\r\n/* If you have a backlash in both z-directions, you can use this. For most printer, the bed will be pushed down by it's\r\nown weight, so this is nearly never needed. */\r\n#define ENABLE_BACKLASH_COMPENSATION 0\r\n#define Z_BACKLASH 0\r\n#define X_BACKLASH 0\r\n#define Y_BACKLASH 0\r\n\r\n/** Comment this to disable ramp acceleration */\r\n#define RAMP_ACCELERATION 1\r\n\r\n/** If your stepper needs a longer high signal then given, you can add a delay here.\r\nThe delay is realized as a simple loop wasting time, which is not available for other\r\ncomputations. So make it as low as possible. For the most common drivers no delay is needed, as the\r\nincluded delay is already enough.\r\n*/\r\n#define STEPPER_HIGH_DELAY 0\r\n\r\n/** If your driver needs some additional delay between setting direction and first step signal,\r\n you can set this here. There are some commands between direction and signal, but some drivers\r\n might be even slower or you are using a fast Arduino board with slow driver. Normally 0 works.\r\n If you get skewed print, you might try 1 microsecond here.\r\n */\r\n#define DIRECTION_DELAY 0\r\n\r\n/** The firmware can only handle 16000Hz interrupt frequency cleanly. If you need higher speeds\r\na faster solution is needed, and this is to double/quadruple the steps in one interrupt call.\r\nThis is like reducing your 1/16th microstepping to 1/8 or 1/4. It is much cheaper then 1 or 3\r\nadditional stepper interrupts with all it's overhead. As a result you can go as high as\r\n40000Hz.\r\n*/\r\n#define STEP_DOUBLER_FREQUENCY 80000\r\n/** If you need frequencies off more then 30000 you definitely need to enable this. If you have only 1/8 stepping\r\nenabling this may cause to stall your moves when 20000Hz is reached.\r\n*/\r\n#define ALLOW_QUADSTEPPING 1\r\n/** If you reach STEP_DOUBLER_FREQUENCY the firmware will do 2 or 4 steps with nearly no delay. That can be too fast\r\nfor some printers causing an early stall.\r\n\r\n*/\r\n#define DOUBLE_STEP_DELAY 1 // time in microseconds\r\n\r\n/** If the firmware is busy, it will send a busy signal to host signaling that\r\n everything is fine and it only takes a bit longer to finish. That way the \r\n host can keep timeout short so in case of communication errors the resulting\r\n blobs are much smaller. Set to 0 to disable it. */\r\n#define KEEP_ALIVE_INTERVAL 2000\r\n\r\n//// Acceleration settings\r\n\r\n/** \\brief X, Y, Z max acceleration in mm/s^2 for printing moves or retracts. Make sure your printer can go that high!\r\n Overridden if EEPROM activated.\r\n*/\r\n#define MAX_ACCELERATION_UNITS_PER_SQ_SECOND_X 1000\r\n#define MAX_ACCELERATION_UNITS_PER_SQ_SECOND_Y 1000\r\n#define MAX_ACCELERATION_UNITS_PER_SQ_SECOND_Z 100\r\n\r\n/** \\brief X, Y, Z max acceleration in mm/s^2 for travel moves.  Overridden if EEPROM activated.*/\r\n#define MAX_TRAVEL_ACCELERATION_UNITS_PER_SQ_SECOND_X 1000\r\n#define MAX_TRAVEL_ACCELERATION_UNITS_PER_SQ_SECOND_Y 1000\r\n#define MAX_TRAVEL_ACCELERATION_UNITS_PER_SQ_SECOND_Z 150\r\n\r\n/** If you print on a moving bed, it can become more shaky the higher and bigger\r\n your print gets. Therefore it might be helpfull to reduce acceleration with\r\n increasing print height. You can define here how acceleration should change.\r\n You set ACCELERATION_FACTOR_TOP to the factor in percent for the top position\r\n of your printer. Acceleration will then be modified linear over height.\r\n INTERPOLATE_ACCELERATION_WITH_Z sets, which accelerations get changed:\r\n 0 = do not interpolate at all\r\n 1 = interpolate x and y acceleration\r\n 2 = interpolate z acceleration\r\n 3 = interpolate x,y and z acceleration\r\n  */\r\n#define INTERPOLATE_ACCELERATION_WITH_Z 0\r\n#define ACCELERATION_FACTOR_TOP 100\r\n\r\n/** \\brief Maximum allowable jerk.\r\n\r\nCaution: This is no real jerk in a physical meaning.\r\n\r\nThe jerk determines your start speed and the maximum speed at the join of two segments.\r\nIts unit is mm/s. If the printer is standing still, the start speed is jerk/2. At the\r\njoin of two segments, the speed difference is limited to the jerk value.\r\n\r\nExamples:\r\nFor all examples jerk is assumed as 40.\r\n\r\nSegment 1: vx = 50, vy = 0\r\nSegment 2: vx = 0, vy = 50\r\nv_diff = sqrt((50-0)^2+(0-50)^2) = 70.71\r\nv_diff > jerk => vx_1 = vy_2 = jerk/v_diff*vx_1 = 40/70.71*50 = 28.3 mm/s at the join\r\n\r\nSegment 1: vx = 50, vy = 0\r\nSegment 2: vx = 35.36, vy = 35.36\r\nv_diff = sqrt((50-35.36)^2+(0-35.36)^2) = 38.27 < jerk\r\nCorner can be printed with full speed of 50 mm/s\r\n\r\nOverridden if EEPROM activated.\r\n*/\r\n#define MAX_JERK 20.0\r\n#define MAX_ZJERK 0.3\r\n\r\n/** \\brief Number of moves we can cache in advance.\r\n\r\nThis number of moves can be cached in advance. If you wan't to cache more, increase this. Especially on\r\nmany very short moves the cache may go empty. The minimum value is 5.\r\n*/\r\n#define PRINTLINE_CACHE_SIZE 32\r\n\r\n/** \\brief Low filled cache size.\r\n\r\nIf the cache contains less then MOVE_CACHE_LOW segments, the time per segment is limited to LOW_TICKS_PER_MOVE clock cycles.\r\nIf a move would be shorter, the feedrate will be reduced. This should prevent buffer underflows. Set this to 0 if you\r\ndon't care about empty buffers during print.\r\n*/\r\n#define MOVE_CACHE_LOW 14\r\n/** \\brief Cycles per move, if move cache is low.\r\n\r\nThis value must be high enough, that the buffer has time to fill up. The problem only occurs at the beginning of a print or\r\nif you are printing many very short segments at high speed. Higher delays here allow higher values in PATH_PLANNER_CHECK_SEGMENTS.\r\n*/\r\n#define LOW_TICKS_PER_MOVE 250000\r\n\r\n// ##########################################################################################\r\n// ##                           Extruder control                                           ##\r\n// ##########################################################################################\r\n\r\n\r\n/* \\brief Minimum temperature for extruder operation\r\n\r\nThis is a safety value. If your extruder temperature is below this temperature, no\r\nextruder steps are executed. This is to prevent your extruder to move unless the filament\r\nis at least molten. After having some complains that the extruder does not work, I leave\r\nit 0 as default.\r\n*/\r\n\r\n#define MIN_EXTRUDER_TEMP 170\r\n\r\n/** \\brief Enable advance algorithm.\r\n\r\nWithout a correct adjusted advance algorithm, you get blobs at points, where acceleration changes. The\r\neffect increases with speed and acceleration difference. Using the advance method decreases this effect.\r\nFor more informations, read the wiki.\r\n*/\r\n#define USE_ADVANCE 1\r\n\r\n/** \\brief enables quadratic component.\r\n\r\nSet 1 to allow, 0 disallow a quadratic advance dependency. Linear is the dominant value, so no real need\r\nto activate the quadratic term. Only adds lots of computations and storage usage. */\r\n#define ENABLE_QUADRATIC_ADVANCE 0\r\n\r\n\r\n// ##########################################################################################\r\n// ##                           Communication configuration                                ##\r\n// ##########################################################################################\r\n\r\n//// AD595 THERMOCOUPLE SUPPORT UNTESTED... USE WITH CAUTION!!!!\r\n\r\n/** \\brief Communication speed.\r\n\r\n- 250000 : Fastes with errorrate of 0% with 16 or 32 MHz - update wiring_serial.c in your board files. See boards/readme.txt\r\n- 115200 : Fast, but may produce communication errors on quite regular basis, Error rate -3,5%\r\n- 76800 : Best setting for Arduino with 16 MHz, Error rate 0,2% page 198 AVR1284 Manual. Result: Faster communication then 115200\r\n- 57600 : Should produce nearly no errors, on my gen 6 it's faster than 115200 because there are no errors slowing down the connection\r\n- 38600\r\n\r\n Overridden if EEPROM activated.\r\n*/\r\n//#define BAUDRATE 76800\r\n#define BAUDRATE 230400\r\n//#define BAUDRATE 250000\r\n\r\n/**\r\nSome boards like Gen7 have a power on pin, to enable the ATX power supply. If this is defined,\r\nthe power will be turned on without the need to call M80 if initially started.\r\n*/\r\n#define ENABLE_POWER_ON_STARTUP 1\r\n\r\n/**\r\nIf you use an ATX power supply you need the power pin to work non inverting. For some special\r\nboards you might need to make it inverting.\r\n*/\r\n#define POWER_INVERTING 0\r\n/** What shall the printer do, when it receives an M112 emergency stop signal?\r\n 0 = Disable heaters/motors, wait forever until someone presses reset.\r\n 1 = restart by resetting the AVR controller. The USB connection will not reset if managed by a different chip!\r\n*/\r\n#define KILL_METHOD 1\r\n\r\n/** Appends the line number after every ok send, to acknowledge the received command. Uncomment for plain ok ACK if your host has problems with this */\r\n#define ACK_WITH_LINENUMBER 1       \r\n/** Communication errors can swallow part of the ok, which tells the host software to send\r\nthe next command. Not receiving it will cause your printer to stop. Sending this string every\r\nsecond, if our queue is empty should prevent this. Comment it, if you don't wan't this feature. */\r\n#define WAITING_IDENTIFIER \"wait\"\r\n//Davinci Specific\r\n#define RESET_IDENTIFIER \"start\"\r\n\r\n/** \\brief Sets time for echo debug\r\n\r\nYou can set M111 1 which enables ECHO of commands sent. This define specifies the position,\r\nwhen it will be executed. In the original FiveD software, echo is done after receiving the\r\ncommand. With checksum you know, how it looks from the sending string. With this define\r\nuncommented, you will see the last command executed. To be more specific: It is written after\r\nexecution. This helps tracking errors, because there may be 8 or more commands in the queue\r\nand it is elsewise difficult to know, what your reprap is currently doing.\r\n*/\r\n#define ECHO_ON_EXECUTE 1\r\n\r\n/** \\brief EEPROM storage mode\r\n\r\nSet the EEPROM_MODE to 0 if you always want to use the settings in this configuration file. If not,\r\nset it to a value not stored in the first EEPROM-byte used. If you later want to overwrite your current\r\nEEPROM settings with configuration defaults, just select an other value. On the first call to epr_init()\r\nit will detect a mismatch of the first byte and copy default values into EEPROM. If the first byte\r\nmatches, the stored values are used to overwrite the settings.\r\n\r\nIMPORTANT: With mode <>0 some changes in Configuration.h are not set any more, as they are\r\n           taken from the EEPROM.\r\n*/\r\n#define EEPROM_MODE 1\r\n\r\n\r\n/**************** duplicate motor driver ***************\r\n\r\nIf you have an unused extruder stepper free, you could use it to drive the second z motor\r\ninstead of driving both with a single stepper. The same works for the other axis if needed.\r\n*/\r\n\r\n#define FEATURE_TWO_XSTEPPER 0\r\n#define X2_STEP_PIN   E1_STEP_PIN\r\n#define X2_DIR_PIN    E1_DIR_PIN\r\n#define X2_ENABLE_PIN E1_ENABLE_PIN\r\n\r\n#define FEATURE_TWO_YSTEPPER 0\r\n#define Y2_STEP_PIN   E1_STEP_PIN\r\n#define Y2_DIR_PIN    E1_DIR_PIN\r\n#define Y2_ENABLE_PIN E1_ENABLE_PIN\r\n\r\n#define FEATURE_TWO_ZSTEPPER 0\r\n#define Z2_STEP_PIN   E1_STEP_PIN\r\n#define Z2_DIR_PIN    E1_DIR_PIN\r\n#define Z2_ENABLE_PIN E1_ENABLE_PIN\r\n\r\n#define FEATURE_THREE_ZSTEPPER 0\r\n#define Z3_STEP_PIN   E2_STEP_PIN\r\n#define Z3_DIR_PIN    E2_DIR_PIN\r\n#define Z3_ENABLE_PIN E2_ENABLE_PIN\r\n\r\n/* Ditto printing allows 2 extruders to do the same action. This effectively allows\r\nto print an object two times at the speed of one. Works only with dual extruder setup.\r\n*/\r\n#define FEATURE_DITTO_PRINTING 0\r\n\r\n/* Servos\r\n\r\nIf you need to control servos, enable this feature. You can control up to 4 servos.\r\nControl the servos with\r\nM340 P<servoId> S<pulseInUS>\r\nservoID = 0..3\r\nServos are controlled by a pulse width normally between 500 and 2500 with 1500ms in center position. 0 turns servo off.\r\n\r\nWARNING: Servos can draw a considerable amount of current. Make sure your system can handle this or you may risk your hardware!\r\n*/\r\n\r\n#define FEATURE_SERVO 0\r\n// Servo pins on a RAMPS board are 11,6,5,4\r\n#define SERVO0_PIN 11\r\n#define SERVO1_PIN 6\r\n#define SERVO2_PIN 5\r\n#define SERVO3_PIN 4\r\n/* for set servo(s) at designed neutral position at power-up. Values < 500 mean no start position */\r\n#define SERVO0_NEUTRAL_POS  1300\r\n#define SERVO1_NEUTRAL_POS  -1\r\n#define SERVO2_NEUTRAL_POS  -1\r\n#define SERVO3_NEUTRAL_POS  -1\r\n/** Set to servo number +1 to control that servo in ui menu. 0 disables ui control. */\r\n#define UI_SERVO_CONTROL 0\r\n/** Some fans won't start for low values, but would run if started with higher power at the beginning.\r\nThis defines the full power duration before returning to set value. Time is in milliseconds */\r\n#define FAN_KICKSTART_TIME  200\r\n\r\n\r\n\r\n/* A watchdog resets the printer, if a signal is not send within predefined time limits. That way we can be sure that the board\r\nis always running and is not hung up for some unknown reason. \r\n\r\nIMPORTANT: The ARM processors need a special board definition to work properly. \r\nSee: AdditionalArduinoFiles: README.txt on how to install them. \r\n*/\r\n#define FEATURE_WATCHDOG 1\r\n\r\n/* Z-Probing */\r\n\r\n/* After homing the z position is corrected to compensate\r\nfor a bed coating. Since you can change coatings the value is stored in\r\nEEPROM if enabled, so you can switch between different coatings without needing\r\nto recalibrate z.\r\n*/\r\n#define Z_PROBE_Z_OFFSET 0 // offset to coating form real bed level\r\n/* How is z min measured\r\n 0 = trigger is height of real bed neglecting coating\r\n 1 = trigger is current coating\r\n\r\n For mode 1 the current coating thickness is added to measured z probe distances.\r\n That way the real bed is always the reference height. For inductive sensors\r\n or z min endstops the coating has no effect on the result, so you should use mode 0.\r\n*/\r\n#define Z_PROBE_Z_OFFSET_MODE 0\r\n\r\n#if DAVINCI > 0\r\n#define FEATURE_Z_PROBE true\r\n#define Z_PROBE_PIN 117\r\n#else\r\n#define FEATURE_Z_PROBE false\r\n#define Z_PROBE_PIN -1\r\n#endif\r\n#define Z_PROBE_PULLUP 1\r\n#define Z_PROBE_ON_HIGH 0\r\n#define Z_PROBE_X_OFFSET 0\r\n#define Z_PROBE_Y_OFFSET 0\r\n#define Z_PROBE_BED_DISTANCE 5.0 // Higher than max bed level distance error in mm\r\n\r\n// Waits for a signal to start. Valid signals are probe hit and ok button.\r\n// This is needful if you have the probe trigger by hand.\r\n#define Z_PROBE_WAIT_BEFORE_TEST 0\r\n/** Speed of z-axis in mm/s when probing */\r\n#define Z_PROBE_SPEED 1\r\n#define Z_PROBE_XY_SPEED 30\r\n#define Z_PROBE_SWITCHING_DISTANCE 5 // Distance to safely switch off probe after it was activated\r\n#define Z_PROBE_REPETITIONS 1 // Repetitions for probing at one point. \r\n/** The height is the difference between activated probe position and nozzle height. */\r\n#if MODEL==0\r\n#define Z_PROBE_HEIGHT 0.28\r\n#else\r\n#define Z_PROBE_HEIGHT 0.54\r\n#endif\r\n/** These scripts are run before resp. after the z-probe is done. Add here code to activate/deactivate probe if needed. */\r\n#define Z_PROBE_START_SCRIPT \"\"\r\n#define Z_PROBE_FINISHED_SCRIPT \"\"\r\n/** Set 1 if you need a hot extruder for good probe results. Normally only required if nozzle is probe. */\r\n#define Z_PROBE_REQUIRES_HEATING 0\r\n/** Minimum extruder temperature for probing. If it is lower, it will be increased to that value. */\r\n#define Z_PROBE_MIN_TEMPERATURE 150\r\n/*\r\nDefine how we measure the bed rotation. \r\nAll methods need at least 3 points to define the bed rotation correctly. The quality we get comes\r\nfrom the selection of the right points and method.\r\n\r\nBED_LEVELING_METHOD 0\r\nThis method measures at the 3 probe points and creates a plane through these points. If you have\r\na really planar bed this gives the optimum result. The 3 points must not be in one line and have\r\na long distance to increase numerical stability.\r\n\r\nBED_LEVELING_METHOD 1\r\nThis measures a grid. Probe point 1 is the origin and points 2 and 3 span a grid. We measure\r\nBED_LEVELING_GRID_SIZE points in each direction and compute a regression plane through all\r\npoints. This gives a good overall plane if you have small bumps measuring inaccuracies.\r\n\r\nBED_LEVELING_METHOD 2\r\nBending correcting 4 point measurement. This is for cantilevered beds that have the rotation axis\r\nnot at the side but inside the bed. Here we can assume no bending on the axis and a symmetric\r\nbending to both sides of the axis. So probe points 2 and 3 build the symmetric axis and\r\npoint 1 is mirrored to 1m across the axis. Using the symmetry we then remove the bending\r\nfrom 1 and use that as plane.\r\n*/\r\n#define BED_LEVELING_METHOD 0\r\n/* How to correct rotation.\r\n0 = software side\r\n1 = motorized modification of 2 from 3 fixture points.\r\n*/\r\n#define BED_CORRECTION_METHOD 0\r\n// Grid size for grid based plane measurement\r\n#define BED_LEVELING_GRID_SIZE 4\r\n// Repetitions for motorized bed leveling\r\n#define BED_LEVELING_REPETITIONS 5\r\n/* These are the motor positions relative to bed origin. Only needed for\r\nmotorized bed leveling */\r\n#define BED_MOTOR_1_X 0\r\n#define BED_MOTOR_1_Y 0\r\n#define BED_MOTOR_2_X 200\r\n#define BED_MOTOR_2_Y 0\r\n#define BED_MOTOR_3_X 100\r\n#define BED_MOTOR_3_Y 200\r\n\r\n/* Autoleveling allows it to z-probe 3 points to compute the inclination and compensates the error for the print.\r\n   This feature requires a working z-probe and you should have z-endstop at the top not at the bottom.\r\n   The same 3 points are used for the G29 command.\r\n*/\r\n#define FEATURE_AUTOLEVEL true\r\n#if DAVINCI==1\r\n#define Z_PROBE_X1 -7\r\n#define Z_PROBE_Y1 -10\r\n#define Z_PROBE_X2 -7\r\n#define Z_PROBE_X3 179\r\n#if MODEL==0\r\n#define Z_PROBE_Y2 205\r\n#define Z_PROBE_Y3 205\r\n#else\r\n#define Z_PROBE_Y2 203\r\n#define Z_PROBE_Y3 203\r\n#endif\r\n//Manual bed leveling\r\n#define MANUAL_LEVEL_X1 100\r\n#define MANUAL_LEVEL_Y1 190\r\n#define MANUAL_LEVEL_X2 100\r\n#define MANUAL_LEVEL_Y2 10\r\n#define MANUAL_LEVEL_X3 10\r\n#define MANUAL_LEVEL_Y3  100\r\n#define MANUAL_LEVEL_X4  190\r\n#define MANUAL_LEVEL_Y4  100\r\n#endif\r\n\r\n#if DAVINCI==2 || DAVINCI==3\r\n#define Z_PROBE_X1 36\r\n#define Z_PROBE_Y1 -7\r\n#define Z_PROBE_X2 36\r\n#define Z_PROBE_Y2 203\r\n#define Z_PROBE_X3 171\r\n#define Z_PROBE_Y3 203\r\n//Manual bed leveling\r\n#define MANUAL_LEVEL_X1 100\r\n#define MANUAL_LEVEL_Y1  180\r\n#define MANUAL_LEVEL_X2 100\r\n#define MANUAL_LEVEL_Y2 10\r\n#define MANUAL_LEVEL_X3 50\r\n#define MANUAL_LEVEL_Y3 95\r\n#define MANUAL_LEVEL_X4  150\r\n#define MANUAL_LEVEL_Y4  95\r\n#endif\r\n\r\n#if DAVINCI==4\r\n#define Z_PROBE_X1 -3\r\n#define Z_PROBE_Y1 -7\r\n#define Z_PROBE_X2 -3\r\n#define Z_PROBE_Y2 204\r\n#define Z_PROBE_X3 184\r\n#define Z_PROBE_Y3 204\r\n//Manual bed leveling\r\n#define MANUAL_LEVEL_X1 100\r\n#define MANUAL_LEVEL_Y1 190\r\n#define MANUAL_LEVEL_X2 100\r\n#define MANUAL_LEVEL_Y2 10\r\n#define MANUAL_LEVEL_X3 10\r\n#define MANUAL_LEVEL_Y3  100\r\n#define MANUAL_LEVEL_X4  190\r\n#define MANUAL_LEVEL_Y4  100\r\n#endif\r\n\r\n#if DAVINCI==0\r\n#define Z_PROBE_X1 36\r\n#define Z_PROBE_Y1 -7\r\n#define Z_PROBE_X2 36\r\n#define Z_PROBE_Y2 203\r\n#define Z_PROBE_X3 171\r\n#define Z_PROBE_Y3 203\r\n//Manual bed leveling\r\n#define MANUAL_LEVEL_X1 100\r\n#define MANUAL_LEVEL_Y1  180\r\n#define MANUAL_LEVEL_X2 100\r\n#define MANUAL_LEVEL_Y2 10\r\n#define MANUAL_LEVEL_X3 50\r\n#define MANUAL_LEVEL_Y3 95\r\n#define MANUAL_LEVEL_X4  150\r\n#define MANUAL_LEVEL_Y4  95\r\n#endif\r\n/* Bending correction adds a value to a measured z-probe value. This may be\r\n  required when the z probe needs some force to trigger and this bends the\r\n  bed down. Currently the correction values A/B/C correspond to z probe\r\n  positions 1/2/3. In later versions a bending correction algorithm might be\r\n  introduced to give it other meanings.*/\r\n#define BENDING_CORRECTION_A 0\r\n#define BENDING_CORRECTION_B 0\r\n#define BENDING_CORRECTION_C 0\r\n\r\n/* DISTORTION_CORRECTION compensates the distortion caused by mechanical imprecisions of nonlinear (i.e. DELTA) printers\r\n * assumes that the floor is plain (i.e. glass plate)\r\n *     and that it is perpendicular to the towers\r\n *     and that the (0,0) is in center\r\n * requires z-probe\r\n * G29 measures the Z offset in matrix NxN points (due to nature of the delta printer, the corners are extrapolated instead of measured)\r\n * and compensate the distortion\r\n * more points means better compensation, but consumes more memory and takes more time\r\n * DISTORTION_CORRECTION_R is the distance of last row or column from center\r\n */\r\n\r\n#define DISTORTION_CORRECTION         0\r\n#define DISTORTION_CORRECTION_POINTS  5\r\n/* For delta printers you simply define the measured radius around origin */\r\n#define DISTORTION_CORRECTION_R       80\r\n/* For all others you define the correction rectangle by setting the min/max coordinates. Make sure the the probe can reach all points! */\r\n#define DISTORTION_XMIN 10\r\n#define DISTORTION_YMIN 10\r\n#define DISTORTION_XMAX 190\r\n#define DISTORTION_YMAX 190\r\n\r\n/** Uses EEPROM instead of ram. Allows bigger matrix (up to 22x22) without any ram cost.\r\n  Especially on arm based systems with cached EEPROM it is good, on AVR it has a small\r\n  performance penalty.\r\n*/\r\n#define DISTORTION_PERMANENT          1\r\n/** Correction computation is not a cheap operation and changes are only small. So it\r\nis not necessary to update it for every sub-line computed. For example lets take DELTA_SEGMENTS_PER_SECOND_PRINT = 150\r\nand fastest print speed 100 mm/s. So we have a maximum segment length of 100/150 = 0.66 mm.\r\nNow lats say our point field is 200 x 200 mm with 9 x 9 points. So between 2 points we have\r\n200 / (9-1) = 25 mm. So we need at least 25 / 0.66 = 37 lines to move to the next measuring\r\npoint. So updating correction every 15 calls gives us at least 2 updates between the\r\nmeasured points.\r\nNOTE: Explicit z changes will always trigger an update!\r\n*/\r\n#define DISTORTION_UPDATE_FREQUENCY   15\r\n/** z distortion degrades to 0 from this height on. You should start after the first layer to get\r\nbest bonding with surface. */\r\n#define DISTORTION_START_DEGRADE 0.5\r\n/** z distortion correction gets down to 0 at this height. */\r\n#define DISTORTION_END_HEIGHT 1.5\r\n\r\n/* If your printer is not exactly square but is more like a parallelogram, you can\r\nuse this to compensate the effect of printing squares like parallelograms. Set the\r\nparameter to then tangens of the deviation from 90° when you print a square object.\r\nE.g. if you angle is 91° enter tan(1) = 0.017. If error doubles you have the wrong sign.\r\nAlways hard to say since the other angle is 89° in this case!\r\n*/\r\n#define FEATURE_AXISCOMP 0\r\n#define AXISCOMP_TANXY 0\r\n#define AXISCOMP_TANYZ 0\r\n#define AXISCOMP_TANXZ 0\r\n\r\n/** \\brief Experimental calibration utility for delta printers\r\n * Change 1 to 0 to disable\r\n*/\r\n#define FEATURE_SOFTWARE_LEVELING 0\r\n\r\n/* Babystepping allows to change z height during print without changing official z height */\r\n#define FEATURE_BABYSTEPPING 0\r\n/* If you have a threaded rod, you want a higher multiplicator to see an effect. Limit value to 50 or you get easily overflows.*/\r\n#define BABYSTEP_MULTIPLICATOR 1\r\n\r\n/* Define a pin to turn light on/off */\r\n#define CASE_LIGHTS_PIN LIGHT_PIN\r\n#define CASE_LIGHT_DEFAULT_ON 1\r\n#define CASE_BADGE_LIGHT_DEFAULT_ON 1\r\n\r\n/** Set to false to disable SD support: */\r\n#ifndef SDSUPPORT  // Some boards have sd support on board. These define the values already in pins.h\r\n#define SDSUPPORT 1\r\n// Uncomment to enable or change card detection pin. With card detection the card is mounted on insertion.\r\n#define SDCARDDETECT SDCARDDETECT\r\n// Change to true if you get a inserted message on removal.\r\n#define SDCARDDETECTINVERTED false\r\n#endif\r\n/** Show extended directory including file length. Don't use this with Pronterface! */\r\n#define SD_EXTENDED_DIR 1\r\n/** The GCODEs in this line get executed, when you stop a SD print before it was ended.\r\nSeparate commands by \\n */\r\n#define SD_RUN_ON_STOP \"G28 XY\\nM84\"\r\n/** Disable motors and heaters when print was stopped. */\r\n#define SD_STOP_HEATER_AND_MOTORS_ON_STOP 1\r\n// If you want support for G2/G3 arc commands set to true, otherwise false.\r\n#define ARC_SUPPORT 1\r\n\r\n/** You can store the current position with M401 and go back to it with M402.\r\n   This works only if feature is set to true. */\r\n#define FEATURE_MEMORY_POSITION 1\r\n\r\n/** If a checksum is sent, all future commands must also contain a checksum. Increases reliability especially for binary protocol. */\r\n#define FEATURE_CHECKSUM_FORCED 0\r\n\r\n/** Should support for fan control be compiled in. If you enable this make sure\r\nthe FAN pin is not the same as for your second extruder. RAMPS e.g. has FAN_PIN in 9 which\r\nis also used for the heater if you have 2 extruders connected. */\r\n#if REPURPOSE_FAN_TO_COOL_EXTRUSIONS == 1\r\n#define FEATURE_FAN_CONTROL 1\r\n#define FAN_PIN ORIG_FAN_PIN\r\n  #if DAVINCI == 2 || DAVINCI == 3\r\n      #undef EXT0_EXTRUDER_COOLER_PIN\r\n      #define EXT0_EXTRUDER_COOLER_PIN ORIG_FAN2_PIN\r\n      #define EXT1_EXTRUDER_COOLER_PIN ORIG_FAN2_PIN\r\n  #else //DaVinci 1.0\r\n        #undef EXT0_EXTRUDER_COOLER_PIN\r\n        #define EXT0_EXTRUDER_COOLER_PIN -1 //Warning need to add a permanent fan with power supply to cool extruder\r\n  #endif\r\n#else\r\n  #undef  FAN_PIN\r\n  #define FAN_PIN -1\r\n  #define FEATURE_FAN_CONTROL 0\r\n#endif\r\n\r\n/* You can have a second fan controlled by adding P1 to M106/M107 command. */ \r\n#define FEATURE_FAN2_CONTROL 0\r\n//#define FAN2_PIN ORIG_FAN2_PIN\r\n\r\n/* By setting FAN_BOARD_PIN to a pin number you get a board cooler. That fan \r\ngoes on as soon as moves occur. Mainly to prevent overheating of stepper drivers. */\r\n//#undef FAN_BOARD_PIN\r\n//#define FAN_BOARD_PIN ORIG_FAN_PIN\r\n/** Speed of board fan when on. 0 = off, 255 = max */\r\n#define BOARD_FAN_SPEED 255\r\n\r\n/* You can have one additional fan controlled by a temperature. You can set\r\n   set at which temperature it should turn on and at which it should reach max. speed.\r\n*/\r\n#define FAN_THERMO_PIN -1\r\n#define FAN_THERMO_MIN_PWM 128\r\n#define FAN_THERMO_MAX_PWM 255\r\n#define FAN_THERMO_MIN_TEMP 45\r\n#define FAN_THERMO_MAX_TEMP 60\r\n// Analog pin number or channel for due boards\r\n#define FAN_THERMO_THERMISTOR_PIN -1\r\n#define FAN_THERMO_THERMISTOR_TYPE 1\r\n\r\n\r\n/** Adds support for ESP8266 Duet web interface, PanelDue and probably some other things. \r\n * This essentially adds command M36/M408 and extends M20.\r\n * Since it requires some memory do not enable it unless you have such a display!\r\n *  */\r\n#define FEATURE_JSON 0\r\n\r\n/** For displays and keys there are too many permutations to handle them all in once.\r\nFor the most common available combinations you can set the controller type here, so\r\nyou don't need to configure uicong.h at all. Controller settings > 1 disable usage\r\nof uiconfig.h\r\n\r\n0 or NO_CONTROLLER = no display\r\n1 or UICONFIG_CONTROLLER = Manual definition of display and keys parameter in uiconfig.h\r\n\r\nThe following settings override uiconfig.h!\r\n2 or CONTROLLER_SMARTRAMPS = Smartcontroller from reprapdiscount on a RAMPS or RUMBA board\r\n3 or CONTROLLER_ADAFRUIT = Adafruit RGB controller\r\n4 or CONTROLLER_FOLTYN = Foltyn 3DMaster with display attached\r\n5 or CONTROLLER_VIKI = ViKi LCD - Check pin configuration in ui.h for feature controller 5!!! sd card disabled by default!\r\n6 or CONTROLLER_MEGATRONIC = ReprapWorld Keypad / LCD, predefined pins for Megatronics v2.0 and RAMPS 1.4. Please check if you have used the defined pin layout in ui.h.\r\n7 or CONTROLLER_RADDS = RADDS Extension Port\r\n8 or CONTROLLER_PIBOT20X4 = PiBot Display/Controller extension with 20x4 character display\r\n9 or CONTROLLER_PIBOT16X2 = PiBot Display/Controller extension with 16x2 character display\r\n10 or CONTROLLER_GADGETS3D_SHIELD = Gadgets3D shield on RAMPS 1.4, see http://reprap.org/wiki/RAMPS_1.3/1.4_GADGETS3D_Shield_with_Panel\r\n11 or CONTROLLER_REPRAPDISCOUNT_GLCD = RepRapDiscount Full Graphic Smart Controller\r\n12 or CONTROLLER_FELIX = FELIXPrinters Controller\r\n13 or CONTROLLER_RAMBO = SeeMeCNC Display on Rambo (ORION)\r\n14 or CONTROLLER_OPENHARDWARE_LCD2004 = OpenHardware.co.za LCD2004 V2014\r\n15 or CONTROLLER_SANGUINOLOLU_PANELOLU2 = Sanguinololu + Panelolu2\r\n17 or CONTROLLER_MIREGLI 17\r\n18 or CONTROLLER_GATE_3NOVATICA Gate Controller from 3Novatica\r\n19 or CONTROLLER_SPARKLCD Sparkcube LCD on RADDS\r\n20 or CONTROLLER_BAM_DICE_DUE  DAM&DICE Due LCD Display\r\n21 or CONTROLLER_VIKI2 Panucatt Viki2 graphic lcd \r\n24 or CONTROLLER_ZONESTAR = Zonestar P802M with LCD 20x4 and 5 ADC button keypad\r\n405 or CONTROLLER_FELIX_DUE Felix LCD für due based board\r\n*/\r\n#if DAVINCI==0\r\n#define FEATURE_CONTROLLER CONTROLLER_RADDS\r\n#else\r\n#define FEATURE_CONTROLLER UICONFIG_CONTROLLER\r\n#endif\r\n\r\n/* You can have one keypad connected via single analog pin as seen on\r\n some printers with Melzi V2.0 board, 20x4 LCD and 5 buttons keypad. This must be\r\n the analog pin number! */\r\n#define ADC_KEYPAD_PIN -1\r\n\r\n/**\r\nSelect the languages to use. On first startup user can select\r\nthe language from a menu with activated languages. In Configuration->Language\r\nthe language can be switched any time. */\r\n#define LANGUAGE_EN_ACTIVE 1 // English\r\n#define LANGUAGE_DE_ACTIVE 1 // German\r\n#define LANGUAGE_NL_ACTIVE 1 // Dutch\r\n#define LANGUAGE_PT_ACTIVE 0 // Brazilian portuguese\r\n#define LANGUAGE_IT_ACTIVE 1 // Italian\r\n#define LANGUAGE_ES_ACTIVE 0 // Spanish\r\n#define LANGUAGE_FI_ACTIVE 0 // Finnish\r\n#define LANGUAGE_SE_ACTIVE 0 // Swedish\r\n#define LANGUAGE_FR_ACTIVE 1 // French\r\n#define LANGUAGE_CZ_ACTIVE 0 // Czech\r\n#define LANGUAGE_PL_ACTIVE 0 // Polish\r\n#define LANGUAGE_TR_ACTIVE 0 // Turkish\r\n\r\n/* Some displays loose their settings from time to time. Try uncommenting the \r\nauto-repair function if this is the case. It is not supported for all display\r\ntypes. It creates a minimal flicker from time to time and also slows down\r\ncomputations, so do not enable it if your display works stable!\r\n*/\r\n//#define TRY_AUTOREPAIR_LCD_ERRORS\r\n\r\n// This is line 2 of the status display at startup. Change to your like.\r\n#if DAVINCI==0\r\n#define UI_PRINTER_NAME    \"  My Printer \"\r\n#define DAVINCI_TYPE \"0\"\r\n#endif\r\n#if DAVINCI==1\r\n#define UI_PRINTER_NAME    \"  Da Vinci 1.0\"\r\n#define DAVINCI_TYPE \"1\"\r\n#endif\r\n#if DAVINCI==2\r\n#define UI_PRINTER_NAME    \"  Da Vinci 2.0\"\r\n#define DAVINCI_TYPE \"2\"\r\n#endif\r\n#if DAVINCI==3\r\n#define UI_PRINTER_NAME    \"  Da Vinci 2.0\"\r\n#define DAVINCI_TYPE \"3\"\r\n#endif\r\n#if DAVINCI==4\r\n#define UI_PRINTER_NAME    \"  Da Vinci AiO\"\r\n#define DAVINCI_TYPE \"4\"\r\n#endif\r\n\r\n#define UI_PRINTER_COMPANY \"By XYZ Printing\"\r\n\r\n#if MODEL == 0 || DAVINCI==0\r\n#define MODEL_TYPE \" \"\r\n#else\r\n#define MODEL_TYPE  \"A\"\r\n#endif\r\n\r\n/** Animate switches between menus etc. */\r\n#define UI_ANIMATION 0\r\n\r\n/** How many ms should a single page be shown, until it is switched to the next one.*/\r\n#define UI_PAGES_DURATION 4000\r\n\r\n/** Delay of start screen in milliseconds */\r\n#define UI_START_SCREEN_DELAY 2000\r\n/** Uncomment if you don't want automatic page switching. You can still switch the\r\ninfo pages with next/previous button/click-encoder */\r\n#define UI_DISABLE_AUTO_PAGESWITCH 1\r\n\r\n/** Time to return to info menu if x milliseconds no key was pressed. Set to 0 to disable it. */\r\n#define UI_AUTORETURN_TO_MENU_AFTER 30000\r\n\r\n#define FEATURE_UI_KEYS 0\r\n\r\n/* Normally cou want a next/previous actions with every click of your encoder.\r\nUnfortunately, the encoder have a different count of phase changes between clicks.\r\nSelect an encoder speed from 0 = fastest to 2 = slowest that results in one menu move per click.\r\n*/\r\n#define UI_ENCODER_SPEED 2\r\n\r\n// Set to 1 to reverse encoder direction\r\n#define UI_REVERSE_ENCODER 0\r\n\r\n/* There are 2 ways to change positions. You can move by increments of 1/0.1 mm resulting in more menu entries\r\nand requiring many turns on your encode. The alternative is to enable speed dependent positioning. It will change\r\nthe move distance depending on the speed you turn the encoder. That way you can move very fast and very slow in the\r\nsame setting.\r\n\r\n*/\r\n#define UI_SPEEDDEPENDENT_POSITIONING 0\r\n\r\n/** If set to 1 faster turning the wheel makes larger jumps. Helps for faster navigation. */\r\n#define UI_DYNAMIC_ENCODER_SPEED 1          // enable dynamic rotary encoder speed\r\n\r\n/** \\brief bounce time of keys in milliseconds */\r\n#define UI_KEY_BOUNCETIME 10\r\n\r\n/** \\brief First time in ms until repeat of action. */\r\n#define UI_KEY_FIRST_REPEAT 500\r\n/** \\brief Reduction of repeat time until next execution. */\r\n#define UI_KEY_REDUCE_REPEAT 50\r\n/** \\brief Lowest repeat time. */\r\n#define UI_KEY_MIN_REPEAT 50\r\n\r\n#define FEATURE_BEEPER 1\r\n/**\r\nBeeper sound definitions for short beeps during key actions\r\nand longer beeps for important actions.\r\nParameter is delay in microseconds and the second is the number of repetitions.\r\nValues must be in range 1..255\r\n*/\r\n#define BEEPER_SHORT_SEQUENCE 2,2\r\n#define BEEPER_LONG_SEQUENCE 8,8\r\n\r\n// ###############################################################################\r\n// ##                         Values for menu settings                          ##\r\n// ###############################################################################\r\n\r\n// Values used for preheat\r\n#define UI_SET_PRESET_HEATED_BED_TEMP_PLA 60\r\n#define UI_SET_PRESET_EXTRUDER_TEMP_PLA   180\r\n#define UI_SET_PRESET_HEATED_BED_TEMP_ABS 90\r\n#define UI_SET_PRESET_EXTRUDER_TEMP_ABS   230\r\n\r\n//Davinci specific\r\n// Loading / Unloading Filament value\r\n#define UI_SET_PRESET_LOADING_FEEDRATE  2 \r\n#define UI_SET_PRESET_UNLOADING_FEEDRATE  4\r\n#define UI_SET_PRESET_UNLOAD_LOAD_DISTANCE  60 \r\n\r\n// Extreme values\r\n#define UI_SET_MIN_HEATED_BED_TEMP  30\r\n#define UI_SET_MAX_HEATED_BED_TEMP 130\r\n#define UI_SET_MIN_EXTRUDER_TEMP   160\r\n#define UI_SET_MAX_EXTRUDER_TEMP   270\r\n#define UI_SET_EXTRUDER_FEEDRATE 2 // mm/sec\r\n#define UI_SET_EXTRUDER_RETRACT_DISTANCE 3 // mm\r\n\r\n/*\r\n#define USER_KEY1_PIN     UI_DISPLAY_D5_PIN      // D5 to display (not used for graphics controller), change to other pin if you use character LCD !\r\n#define USER_KEY1_ACTION  UI_ACTION_FAN_SUSPEND\r\n#define USER_KEY2_PIN     UI_DISPLAY_D6_PIN      // D6 to display (not used for graphics controller)...\r\n#define USER_KEY2_ACTION  UI_ACTION_SD_PRI_PAU_CONT\r\n#define USER_KEY3_PIN     UI_DISPLAY_D7_PIN      // D7 to display (not used for graphics controller)...\r\n#define USER_KEY3_ACTION  UI_ACTION_LIGHTS_ONOFF\r\n#define USER_KEY4_PIN     -1\r\n#define USER_KEY4_ACTION  UI_ACTION_DUMMY\r\n*/\r\n\r\n// ####### Advanced stuff for very special function #########\r\n\r\n//#define NUM_MOTOR_DRIVERS 0\r\n// #define MOTOR_DRIVER_x StepperDriver<int stepPin, int dirPin, int enablePin,bool invertDir, bool invertEnable>(float stepsPerMM,float speed)\r\n//#define MOTOR_DRIVER_1(var) StepperDriver<E1_STEP_PIN, E1_DIR_PIN, E1_ENABLE_PIN, false, false> var(100.0f,5.0f)\r\n\r\n/*\r\n  You can expand firmware functionality with events and you own event handler.\r\n  Read Events.h for more informations. To activate, uncomment the following define.\r\n*/\r\n//#define CUSTOM_EVENTS\r\n\r\n#endif\r\n "},"comment":{"url":"https://api.github.com/repos/luc-github/Repetier-Firmware-4-Davinci/issues/comments/478302964","html_url":"https://github.com/luc-github/Repetier-Firmware-4-Davinci/issues/343#issuecomment-478302964","issue_url":"https://api.github.com/repos/luc-github/Repetier-Firmware-4-Davinci/issues/343","id":478302964,"node_id":"MDEyOklzc3VlQ29tbWVudDQ3ODMwMjk2NA==","user":{"login":"curnowdj","id":37953928,"node_id":"MDQ6VXNlcjM3OTUzOTI4","avatar_url":"https://avatars0.githubusercontent.com/u/37953928?v=4","gravatar_id":"","url":"https://api.github.com/users/curnowdj","html_url":"https://github.com/curnowdj","followers_url":"https://api.github.com/users/curnowdj/followers","following_url":"https://api.github.com/users/curnowdj/following{/other_user}","gists_url":"https://api.github.com/users/curnowdj/gists{/gist_id}","starred_url":"https://api.github.com/users/curnowdj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/curnowdj/subscriptions","organizations_url":"https://api.github.com/users/curnowdj/orgs","repos_url":"https://api.github.com/users/curnowdj/repos","events_url":"https://api.github.com/users/curnowdj/events{/privacy}","received_events_url":"https://api.github.com/users/curnowdj/received_events","type":"User","site_admin":false},"created_at":"2019-03-31T01:16:38Z","updated_at":"2019-03-31T01:16:38Z","author_association":"NONE","body":"No update yet. I'm having a break from it due to the frustration."}}
{"actor":{"display_login":"curnowdj"}}