mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-28 14:24:34 +00:00
Merge branch 'Development' into marlin_configurator
Latest upstream changes
This commit is contained in:
commit
8d5839151b
@ -118,7 +118,10 @@ Here are some standard links for getting your machine calibrated:
|
|||||||
// 1010 is Pt1000 with 1k pullup (non standard)
|
// 1010 is Pt1000 with 1k pullup (non standard)
|
||||||
// 147 is Pt100 with 4k7 pullup
|
// 147 is Pt100 with 4k7 pullup
|
||||||
// 110 is Pt100 with 1k pullup (non standard)
|
// 110 is Pt100 with 1k pullup (non standard)
|
||||||
// 999 is a Dummy Table. It will ALWAYS read 25C.. Use it for Testing or Development purposes. NEVER for production machine.
|
// 998 and 999 are Dummy Tables. They will ALWAYS read 25°C or the temperature defined below.
|
||||||
|
// Use it for Testing or Development purposes. NEVER for production machine.
|
||||||
|
// #define DUMMY_THERMISTOR_998_VALUE 25
|
||||||
|
// #define DUMMY_THERMISTOR_999_VALUE 100
|
||||||
|
|
||||||
#define TEMP_SENSOR_0 -1
|
#define TEMP_SENSOR_0 -1
|
||||||
#define TEMP_SENSOR_1 -1
|
#define TEMP_SENSOR_1 -1
|
||||||
@ -582,6 +585,10 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
|
|||||||
//#define LCD_FEEDBACK_FREQUENCY_HZ 1000 // this is the tone frequency the buzzer plays when on UI feedback. ie Screen Click
|
//#define LCD_FEEDBACK_FREQUENCY_HZ 1000 // this is the tone frequency the buzzer plays when on UI feedback. ie Screen Click
|
||||||
//#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100 // the duration the buzzer plays the UI feedback sound. ie Screen Click
|
//#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100 // the duration the buzzer plays the UI feedback sound. ie Screen Click
|
||||||
|
|
||||||
|
// PanelOne from T3P3 (via RAMPS 1.4 AUX2/AUX3)
|
||||||
|
// http://reprap.org/wiki/PanelOne
|
||||||
|
//#define PANEL_ONE
|
||||||
|
|
||||||
// The MaKr3d Makr-Panel with graphic controller and SD support
|
// The MaKr3d Makr-Panel with graphic controller and SD support
|
||||||
// http://reprap.org/wiki/MaKr3d_MaKrPanel
|
// http://reprap.org/wiki/MaKr3d_MaKrPanel
|
||||||
//#define MAKRPANEL
|
//#define MAKRPANEL
|
||||||
@ -640,6 +647,10 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
|
|||||||
#define ENCODER_STEPS_PER_MENU_ITEM 1
|
#define ENCODER_STEPS_PER_MENU_ITEM 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined (PANEL_ONE)
|
||||||
|
#define SDSUPPORT
|
||||||
|
#define ULTIMAKERCONTROLLER
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
|
#if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
|
||||||
#define DOGLCD
|
#define DOGLCD
|
||||||
|
@ -1720,6 +1720,7 @@ void process_commands()
|
|||||||
|
|
||||||
#ifdef ENABLE_AUTO_BED_LEVELING
|
#ifdef ENABLE_AUTO_BED_LEVELING
|
||||||
case 29: // G29 Detailed Z-Probe, probes the bed at 3 or more points.
|
case 29: // G29 Detailed Z-Probe, probes the bed at 3 or more points.
|
||||||
|
// Override probing area by providing [F]ront [B]ack [L]eft [R]ight Grid[P]oints values
|
||||||
{
|
{
|
||||||
#if Z_MIN_PIN == -1
|
#if Z_MIN_PIN == -1
|
||||||
#error "You must have a Z_MIN endstop in order to enable Auto Bed Leveling feature!!! Z_MIN_PIN must point to a valid hardware pin."
|
#error "You must have a Z_MIN endstop in order to enable Auto Bed Leveling feature!!! Z_MIN_PIN must point to a valid hardware pin."
|
||||||
@ -1733,6 +1734,16 @@ void process_commands()
|
|||||||
SERIAL_ECHOLNPGM(MSG_POSITION_UNKNOWN);
|
SERIAL_ECHOLNPGM(MSG_POSITION_UNKNOWN);
|
||||||
break; // abort G29, since we don't know where we are
|
break; // abort G29, since we don't know where we are
|
||||||
}
|
}
|
||||||
|
int left_probe_bed_position=LEFT_PROBE_BED_POSITION;
|
||||||
|
int right_probe_bed_position=RIGHT_PROBE_BED_POSITION;
|
||||||
|
int back_probe_bed_position=BACK_PROBE_BED_POSITION;
|
||||||
|
int front_probe_bed_position=FRONT_PROBE_BED_POSITION;
|
||||||
|
int auto_bed_leveling_grid_points=AUTO_BED_LEVELING_GRID_POINTS;
|
||||||
|
if (code_seen('L')) left_probe_bed_position=(int)code_value();
|
||||||
|
if (code_seen('R')) right_probe_bed_position=(int)code_value();
|
||||||
|
if (code_seen('B')) back_probe_bed_position=(int)code_value();
|
||||||
|
if (code_seen('F')) front_probe_bed_position=(int)code_value();
|
||||||
|
if (code_seen('P')) auto_bed_leveling_grid_points=(int)code_value();
|
||||||
|
|
||||||
#ifdef Z_PROBE_SLED
|
#ifdef Z_PROBE_SLED
|
||||||
dock_sled(false);
|
dock_sled(false);
|
||||||
@ -1754,8 +1765,8 @@ void process_commands()
|
|||||||
#ifdef AUTO_BED_LEVELING_GRID
|
#ifdef AUTO_BED_LEVELING_GRID
|
||||||
// probe at the points of a lattice grid
|
// probe at the points of a lattice grid
|
||||||
|
|
||||||
int xGridSpacing = (RIGHT_PROBE_BED_POSITION - LEFT_PROBE_BED_POSITION) / (AUTO_BED_LEVELING_GRID_POINTS-1);
|
int xGridSpacing = (right_probe_bed_position - left_probe_bed_position) / (auto_bed_leveling_grid_points-1);
|
||||||
int yGridSpacing = (BACK_PROBE_BED_POSITION - FRONT_PROBE_BED_POSITION) / (AUTO_BED_LEVELING_GRID_POINTS-1);
|
int yGridSpacing = (back_probe_bed_position - front_probe_bed_position) / (auto_bed_leveling_grid_points-1);
|
||||||
|
|
||||||
|
|
||||||
// solve the plane equation ax + by + d = z
|
// solve the plane equation ax + by + d = z
|
||||||
@ -1765,32 +1776,35 @@ void process_commands()
|
|||||||
// so Vx = -a Vy = -b Vz = 1 (we want the vector facing towards positive Z
|
// so Vx = -a Vy = -b Vz = 1 (we want the vector facing towards positive Z
|
||||||
|
|
||||||
// "A" matrix of the linear system of equations
|
// "A" matrix of the linear system of equations
|
||||||
double eqnAMatrix[AUTO_BED_LEVELING_GRID_POINTS*AUTO_BED_LEVELING_GRID_POINTS*3];
|
double eqnAMatrix[auto_bed_leveling_grid_points*auto_bed_leveling_grid_points*3];
|
||||||
|
|
||||||
// "B" vector of Z points
|
// "B" vector of Z points
|
||||||
double eqnBVector[AUTO_BED_LEVELING_GRID_POINTS*AUTO_BED_LEVELING_GRID_POINTS];
|
double eqnBVector[auto_bed_leveling_grid_points*auto_bed_leveling_grid_points];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
int probePointCounter = 0;
|
int probePointCounter = 0;
|
||||||
bool zig = true;
|
bool zig = true;
|
||||||
|
|
||||||
for (int yProbe=FRONT_PROBE_BED_POSITION; yProbe <= BACK_PROBE_BED_POSITION; yProbe += yGridSpacing)
|
for (int yProbe=front_probe_bed_position; yProbe <= back_probe_bed_position; yProbe += yGridSpacing)
|
||||||
|
|
||||||
{
|
{
|
||||||
int xProbe, xInc;
|
int xProbe, xInc;
|
||||||
if (zig)
|
if (zig)
|
||||||
{
|
{
|
||||||
xProbe = LEFT_PROBE_BED_POSITION;
|
xProbe = left_probe_bed_position;
|
||||||
//xEnd = RIGHT_PROBE_BED_POSITION;
|
//xEnd = right_probe_bed_position;
|
||||||
xInc = xGridSpacing;
|
xInc = xGridSpacing;
|
||||||
zig = false;
|
zig = false;
|
||||||
} else // zag
|
} else // zag
|
||||||
{
|
{
|
||||||
xProbe = RIGHT_PROBE_BED_POSITION;
|
xProbe = right_probe_bed_position;
|
||||||
//xEnd = LEFT_PROBE_BED_POSITION;
|
//xEnd = left_probe_bed_position;
|
||||||
xInc = -xGridSpacing;
|
xInc = -xGridSpacing;
|
||||||
zig = true;
|
zig = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int xCount=0; xCount < AUTO_BED_LEVELING_GRID_POINTS; xCount++)
|
for (int xCount=0; xCount < auto_bed_leveling_grid_points; xCount++)
|
||||||
{
|
{
|
||||||
float z_before;
|
float z_before;
|
||||||
if (probePointCounter == 0)
|
if (probePointCounter == 0)
|
||||||
@ -1822,9 +1836,9 @@ void process_commands()
|
|||||||
|
|
||||||
eqnBVector[probePointCounter] = measured_z;
|
eqnBVector[probePointCounter] = measured_z;
|
||||||
|
|
||||||
eqnAMatrix[probePointCounter + 0*AUTO_BED_LEVELING_GRID_POINTS*AUTO_BED_LEVELING_GRID_POINTS] = xProbe;
|
eqnAMatrix[probePointCounter + 0*auto_bed_leveling_grid_points*auto_bed_leveling_grid_points] = xProbe;
|
||||||
eqnAMatrix[probePointCounter + 1*AUTO_BED_LEVELING_GRID_POINTS*AUTO_BED_LEVELING_GRID_POINTS] = yProbe;
|
eqnAMatrix[probePointCounter + 1*auto_bed_leveling_grid_points*auto_bed_leveling_grid_points] = yProbe;
|
||||||
eqnAMatrix[probePointCounter + 2*AUTO_BED_LEVELING_GRID_POINTS*AUTO_BED_LEVELING_GRID_POINTS] = 1;
|
eqnAMatrix[probePointCounter + 2*auto_bed_leveling_grid_points*auto_bed_leveling_grid_points] = 1;
|
||||||
probePointCounter++;
|
probePointCounter++;
|
||||||
xProbe += xInc;
|
xProbe += xInc;
|
||||||
}
|
}
|
||||||
@ -1832,7 +1846,7 @@ void process_commands()
|
|||||||
clean_up_after_endstop_move();
|
clean_up_after_endstop_move();
|
||||||
|
|
||||||
// solve lsq problem
|
// solve lsq problem
|
||||||
double *plane_equation_coefficients = qr_solve(AUTO_BED_LEVELING_GRID_POINTS*AUTO_BED_LEVELING_GRID_POINTS, 3, eqnAMatrix, eqnBVector);
|
double *plane_equation_coefficients = qr_solve(auto_bed_leveling_grid_points*auto_bed_leveling_grid_points, 3, eqnAMatrix, eqnBVector);
|
||||||
|
|
||||||
SERIAL_PROTOCOLPGM("Eqn coefficients: a: ");
|
SERIAL_PROTOCOLPGM("Eqn coefficients: a: ");
|
||||||
SERIAL_PROTOCOL(plane_equation_coefficients[0]);
|
SERIAL_PROTOCOL(plane_equation_coefficients[0]);
|
||||||
@ -4695,21 +4709,12 @@ bool setTargetedHotend(int code){
|
|||||||
|
|
||||||
|
|
||||||
float calculate_volumetric_multiplier(float diameter) {
|
float calculate_volumetric_multiplier(float diameter) {
|
||||||
float area = .0;
|
if (!volumetric_enabled || diameter == 0) return 1.0;
|
||||||
float radius = .0;
|
float d2 = diameter * 0.5;
|
||||||
|
return 1.0 / (M_PI * d2 * d2);
|
||||||
radius = diameter * .5;
|
|
||||||
if (! volumetric_enabled || radius == 0) {
|
|
||||||
area = 1;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
area = M_PI * pow(radius, 2);
|
|
||||||
}
|
|
||||||
|
|
||||||
return 1.0 / area;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void calculate_volumetric_multipliers() {
|
void calculate_volumetric_multipliers() {
|
||||||
for (int i=0; i<EXTRUDERS; i++)
|
for (int i=0; i<EXTRUDERS; i++)
|
||||||
volumetric_multiplier[i] = calculate_volumetric_multiplier(filament_size[i]);
|
volumetric_multiplier[i] = calculate_volumetric_multiplier(filament_size[i]);
|
||||||
}
|
}
|
||||||
|
@ -587,6 +587,10 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
|
|||||||
//#define LCD_FEEDBACK_FREQUENCY_HZ 1000 // this is the tone frequency the buzzer plays when on UI feedback. ie Screen Click
|
//#define LCD_FEEDBACK_FREQUENCY_HZ 1000 // this is the tone frequency the buzzer plays when on UI feedback. ie Screen Click
|
||||||
//#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100 // the duration the buzzer plays the UI feedback sound. ie Screen Click
|
//#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100 // the duration the buzzer plays the UI feedback sound. ie Screen Click
|
||||||
|
|
||||||
|
// PanelOne from T3P3 (via RAMPS 1.4 AUX2/AUX3)
|
||||||
|
// http://reprap.org/wiki/PanelOne
|
||||||
|
//#define PANEL_ONE
|
||||||
|
|
||||||
// The MaKr3d Makr-Panel with graphic controller and SD support
|
// The MaKr3d Makr-Panel with graphic controller and SD support
|
||||||
// http://reprap.org/wiki/MaKr3d_MaKrPanel
|
// http://reprap.org/wiki/MaKr3d_MaKrPanel
|
||||||
//#define MAKRPANEL
|
//#define MAKRPANEL
|
||||||
@ -645,6 +649,10 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
|
|||||||
#define ENCODER_STEPS_PER_MENU_ITEM 1
|
#define ENCODER_STEPS_PER_MENU_ITEM 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined (PANEL_ONE)
|
||||||
|
#define SDSUPPORT
|
||||||
|
#define ULTIMAKERCONTROLLER
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
|
#if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
|
||||||
#define DOGLCD
|
#define DOGLCD
|
||||||
|
@ -597,6 +597,10 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
|
|||||||
//#define LCD_FEEDBACK_FREQUENCY_HZ 1000 // this is the tone frequency the buzzer plays when on UI feedback. ie Screen Click
|
//#define LCD_FEEDBACK_FREQUENCY_HZ 1000 // this is the tone frequency the buzzer plays when on UI feedback. ie Screen Click
|
||||||
//#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100 // the duration the buzzer plays the UI feedback sound. ie Screen Click
|
//#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100 // the duration the buzzer plays the UI feedback sound. ie Screen Click
|
||||||
|
|
||||||
|
// PanelOne from T3P3 (via RAMPS 1.4 AUX2/AUX3)
|
||||||
|
// http://reprap.org/wiki/PanelOne
|
||||||
|
//#define PANEL_ONE
|
||||||
|
|
||||||
// The MaKr3d Makr-Panel with graphic controller and SD support
|
// The MaKr3d Makr-Panel with graphic controller and SD support
|
||||||
// http://reprap.org/wiki/MaKr3d_MaKrPanel
|
// http://reprap.org/wiki/MaKr3d_MaKrPanel
|
||||||
//#define MAKRPANEL
|
//#define MAKRPANEL
|
||||||
@ -655,6 +659,10 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
|
|||||||
#define ENCODER_STEPS_PER_MENU_ITEM 1
|
#define ENCODER_STEPS_PER_MENU_ITEM 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined (PANEL_ONE)
|
||||||
|
#define SDSUPPORT
|
||||||
|
#define ULTIMAKERCONTROLLER
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
|
#if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
|
||||||
#define DOGLCD
|
#define DOGLCD
|
||||||
|
@ -590,6 +590,10 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
|
|||||||
//#define LCD_FEEDBACK_FREQUENCY_HZ 1000 // this is the tone frequency the buzzer plays when on UI feedback. ie Screen Click
|
//#define LCD_FEEDBACK_FREQUENCY_HZ 1000 // this is the tone frequency the buzzer plays when on UI feedback. ie Screen Click
|
||||||
//#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100 // the duration the buzzer plays the UI feedback sound. ie Screen Click
|
//#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100 // the duration the buzzer plays the UI feedback sound. ie Screen Click
|
||||||
|
|
||||||
|
// PanelOne from T3P3 (via RAMPS 1.4 AUX2/AUX3)
|
||||||
|
// http://reprap.org/wiki/PanelOne
|
||||||
|
//#define PANEL_ONE
|
||||||
|
|
||||||
// The MaKr3d Makr-Panel with graphic controller and SD support
|
// The MaKr3d Makr-Panel with graphic controller and SD support
|
||||||
// http://reprap.org/wiki/MaKr3d_MaKrPanel
|
// http://reprap.org/wiki/MaKr3d_MaKrPanel
|
||||||
//#define MAKRPANEL
|
//#define MAKRPANEL
|
||||||
@ -648,6 +652,10 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
|
|||||||
#define ENCODER_STEPS_PER_MENU_ITEM 1
|
#define ENCODER_STEPS_PER_MENU_ITEM 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined (PANEL_ONE)
|
||||||
|
#define SDSUPPORT
|
||||||
|
#define ULTIMAKERCONTROLLER
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
|
#if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
|
||||||
#define DOGLCD
|
#define DOGLCD
|
||||||
|
@ -591,6 +591,10 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
|
|||||||
//#define LCD_FEEDBACK_FREQUENCY_HZ 1000 // this is the tone frequency the buzzer plays when on UI feedback. ie Screen Click
|
//#define LCD_FEEDBACK_FREQUENCY_HZ 1000 // this is the tone frequency the buzzer plays when on UI feedback. ie Screen Click
|
||||||
//#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100 // the duration the buzzer plays the UI feedback sound. ie Screen Click
|
//#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100 // the duration the buzzer plays the UI feedback sound. ie Screen Click
|
||||||
|
|
||||||
|
// PanelOne from T3P3 (via RAMPS 1.4 AUX2/AUX3)
|
||||||
|
// http://reprap.org/wiki/PanelOne
|
||||||
|
//#define PANEL_ONE
|
||||||
|
|
||||||
// The MaKr3d Makr-Panel with graphic controller and SD support
|
// The MaKr3d Makr-Panel with graphic controller and SD support
|
||||||
// http://reprap.org/wiki/MaKr3d_MaKrPanel
|
// http://reprap.org/wiki/MaKr3d_MaKrPanel
|
||||||
//#define MAKRPANEL
|
//#define MAKRPANEL
|
||||||
@ -649,6 +653,10 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
|
|||||||
#define ENCODER_STEPS_PER_MENU_ITEM 1
|
#define ENCODER_STEPS_PER_MENU_ITEM 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined (PANEL_ONE)
|
||||||
|
#define SDSUPPORT
|
||||||
|
#define ULTIMAKERCONTROLLER
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
|
#if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
|
||||||
#define DOGLCD
|
#define DOGLCD
|
||||||
|
@ -495,6 +495,10 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
|
|||||||
//#define LCD_FEEDBACK_FREQUENCY_HZ 1000 // this is the tone frequency the buzzer plays when on UI feedback. ie Screen Click
|
//#define LCD_FEEDBACK_FREQUENCY_HZ 1000 // this is the tone frequency the buzzer plays when on UI feedback. ie Screen Click
|
||||||
//#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100 // the duration the buzzer plays the UI feedback sound. ie Screen Click
|
//#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100 // the duration the buzzer plays the UI feedback sound. ie Screen Click
|
||||||
|
|
||||||
|
// PanelOne from T3P3 (via RAMPS 1.4 AUX2/AUX3)
|
||||||
|
// http://reprap.org/wiki/PanelOne
|
||||||
|
//#define PANEL_ONE
|
||||||
|
|
||||||
// The MaKr3d Makr-Panel with graphic controller and SD support
|
// The MaKr3d Makr-Panel with graphic controller and SD support
|
||||||
// http://reprap.org/wiki/MaKr3d_MaKrPanel
|
// http://reprap.org/wiki/MaKr3d_MaKrPanel
|
||||||
//#define MAKRPANEL
|
//#define MAKRPANEL
|
||||||
@ -560,6 +564,10 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
|
|||||||
#define ENCODER_STEPS_PER_MENU_ITEM 1
|
#define ENCODER_STEPS_PER_MENU_ITEM 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined (PANEL_ONE)
|
||||||
|
#define SDSUPPORT
|
||||||
|
#define ULTIMAKERCONTROLLER
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
|
#if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
|
||||||
#define DOGLCD
|
#define DOGLCD
|
||||||
|
@ -565,6 +565,10 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
|
|||||||
//#define LCD_FEEDBACK_FREQUENCY_HZ 1000 // this is the tone frequency the buzzer plays when on UI feedback. ie Screen Click
|
//#define LCD_FEEDBACK_FREQUENCY_HZ 1000 // this is the tone frequency the buzzer plays when on UI feedback. ie Screen Click
|
||||||
//#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100 // the duration the buzzer plays the UI feedback sound. ie Screen Click
|
//#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100 // the duration the buzzer plays the UI feedback sound. ie Screen Click
|
||||||
|
|
||||||
|
// PanelOne from T3P3 (via RAMPS 1.4 AUX2/AUX3)
|
||||||
|
// http://reprap.org/wiki/PanelOne
|
||||||
|
//#define PANEL_ONE
|
||||||
|
|
||||||
// The MaKr3d Makr-Panel with graphic controller and SD support
|
// The MaKr3d Makr-Panel with graphic controller and SD support
|
||||||
// http://reprap.org/wiki/MaKr3d_MaKrPanel
|
// http://reprap.org/wiki/MaKr3d_MaKrPanel
|
||||||
//#define MAKRPANEL
|
//#define MAKRPANEL
|
||||||
@ -623,6 +627,10 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
|
|||||||
#define ENCODER_STEPS_PER_MENU_ITEM 1
|
#define ENCODER_STEPS_PER_MENU_ITEM 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined (PANEL_ONE)
|
||||||
|
#define SDSUPPORT
|
||||||
|
#define ULTIMAKERCONTROLLER
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
|
#if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
|
||||||
#define DOGLCD
|
#define DOGLCD
|
||||||
|
@ -578,6 +578,10 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
|
|||||||
//#define LCD_FEEDBACK_FREQUENCY_HZ 1000 // this is the tone frequency the buzzer plays when on UI feedback. ie Screen Click
|
//#define LCD_FEEDBACK_FREQUENCY_HZ 1000 // this is the tone frequency the buzzer plays when on UI feedback. ie Screen Click
|
||||||
//#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100 // the duration the buzzer plays the UI feedback sound. ie Screen Click
|
//#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100 // the duration the buzzer plays the UI feedback sound. ie Screen Click
|
||||||
|
|
||||||
|
// PanelOne from T3P3 (via RAMPS 1.4 AUX2/AUX3)
|
||||||
|
// http://reprap.org/wiki/PanelOne
|
||||||
|
//#define PANEL_ONE
|
||||||
|
|
||||||
// The MaKr3d Makr-Panel with graphic controller and SD support
|
// The MaKr3d Makr-Panel with graphic controller and SD support
|
||||||
// http://reprap.org/wiki/MaKr3d_MaKrPanel
|
// http://reprap.org/wiki/MaKr3d_MaKrPanel
|
||||||
//#define MAKRPANEL
|
//#define MAKRPANEL
|
||||||
@ -636,6 +640,10 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
|
|||||||
#define ENCODER_STEPS_PER_MENU_ITEM 1
|
#define ENCODER_STEPS_PER_MENU_ITEM 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined (PANEL_ONE)
|
||||||
|
#define SDSUPPORT
|
||||||
|
#define ULTIMAKERCONTROLLER
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
|
#if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
|
||||||
#define DOGLCD
|
#define DOGLCD
|
||||||
|
@ -65,6 +65,18 @@
|
|||||||
#ifndef MSG_PREHEAT_ABS_SETTINGS
|
#ifndef MSG_PREHEAT_ABS_SETTINGS
|
||||||
#define MSG_PREHEAT_ABS_SETTINGS MSG_PREHEAT_ABS " conf"
|
#define MSG_PREHEAT_ABS_SETTINGS MSG_PREHEAT_ABS " conf"
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef MSG_H1
|
||||||
|
#define MSG_H1 "1"
|
||||||
|
#endif
|
||||||
|
#ifndef MSG_H2
|
||||||
|
#define MSG_H2 "2"
|
||||||
|
#endif
|
||||||
|
#ifndef MSG_H3
|
||||||
|
#define MSG_H3 "3"
|
||||||
|
#endif
|
||||||
|
#ifndef MSG_H4
|
||||||
|
#define MSG_H4 "4"
|
||||||
|
#endif
|
||||||
#ifndef MSG_COOLDOWN
|
#ifndef MSG_COOLDOWN
|
||||||
#define MSG_COOLDOWN "Cooldown"
|
#define MSG_COOLDOWN "Cooldown"
|
||||||
#endif
|
#endif
|
||||||
@ -110,6 +122,15 @@
|
|||||||
#ifndef MSG_NOZZLE
|
#ifndef MSG_NOZZLE
|
||||||
#define MSG_NOZZLE "Nozzle"
|
#define MSG_NOZZLE "Nozzle"
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef MSG_N2
|
||||||
|
#define MSG_N2 " 2"
|
||||||
|
#endif
|
||||||
|
#ifndef MSG_N3
|
||||||
|
#define MSG_N3 " 3"
|
||||||
|
#endif
|
||||||
|
#ifndef MSG_N4
|
||||||
|
#define MSG_N4 " 4"
|
||||||
|
#endif
|
||||||
#ifndef MSG_BED
|
#ifndef MSG_BED
|
||||||
#define MSG_BED "Bed"
|
#define MSG_BED "Bed"
|
||||||
#endif
|
#endif
|
||||||
@ -119,6 +140,18 @@
|
|||||||
#ifndef MSG_FLOW
|
#ifndef MSG_FLOW
|
||||||
#define MSG_FLOW "Flow"
|
#define MSG_FLOW "Flow"
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef MSG_F0
|
||||||
|
#define MSG_F0 " 0"
|
||||||
|
#endif
|
||||||
|
#ifndef MSG_F1
|
||||||
|
#define MSG_F1 " 1"
|
||||||
|
#endif
|
||||||
|
#ifndef MSG_F2
|
||||||
|
#define MSG_F2 " 2"
|
||||||
|
#endif
|
||||||
|
#ifndef MSG_F3
|
||||||
|
#define MSG_F3 " 3"
|
||||||
|
#endif
|
||||||
#ifndef MSG_CONTROL
|
#ifndef MSG_CONTROL
|
||||||
#define MSG_CONTROL "Control"
|
#define MSG_CONTROL "Control"
|
||||||
#endif
|
#endif
|
||||||
@ -152,6 +185,15 @@
|
|||||||
#ifndef MSG_PID_C
|
#ifndef MSG_PID_C
|
||||||
#define MSG_PID_C "PID-C"
|
#define MSG_PID_C "PID-C"
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef MSG_E2
|
||||||
|
#define MSG_E2 " E2"
|
||||||
|
#endif
|
||||||
|
#ifndef MSG_E3
|
||||||
|
#define MSG_E3 " E3"
|
||||||
|
#endif
|
||||||
|
#ifndef MSG_E4
|
||||||
|
#define MSG_E4 " E4"
|
||||||
|
#endif
|
||||||
#ifndef MSG_ACC
|
#ifndef MSG_ACC
|
||||||
#define MSG_ACC "Accel"
|
#define MSG_ACC "Accel"
|
||||||
#endif
|
#endif
|
||||||
@ -213,7 +255,7 @@
|
|||||||
#define MSG_VOLUMETRIC "Filament"
|
#define MSG_VOLUMETRIC "Filament"
|
||||||
#endif
|
#endif
|
||||||
#ifndef MSG_VOLUMETRIC_ENABLED
|
#ifndef MSG_VOLUMETRIC_ENABLED
|
||||||
#define MSG_VOLUMETRIC_ENABLED "E in mm" STR_h3
|
#define MSG_VOLUMETRIC_ENABLED "E in mm" STR_h3
|
||||||
#endif
|
#endif
|
||||||
#ifndef MSG_FILAMENT_SIZE_EXTRUDER_0
|
#ifndef MSG_FILAMENT_SIZE_EXTRUDER_0
|
||||||
#define MSG_FILAMENT_SIZE_EXTRUDER_0 "Fil. Dia. 1"
|
#define MSG_FILAMENT_SIZE_EXTRUDER_0 "Fil. Dia. 1"
|
||||||
|
@ -122,12 +122,22 @@
|
|||||||
#ifdef ULTRA_LCD
|
#ifdef ULTRA_LCD
|
||||||
|
|
||||||
#ifdef NEWPANEL
|
#ifdef NEWPANEL
|
||||||
#define LCD_PINS_RS 16
|
#ifdef PANEL_ONE
|
||||||
#define LCD_PINS_ENABLE 17
|
#define LCD_PINS_RS 40
|
||||||
#define LCD_PINS_D4 23
|
#define LCD_PINS_ENABLE 42
|
||||||
#define LCD_PINS_D5 25
|
#define LCD_PINS_D4 65
|
||||||
#define LCD_PINS_D6 27
|
#define LCD_PINS_D5 66
|
||||||
#define LCD_PINS_D7 29
|
#define LCD_PINS_D6 44
|
||||||
|
#define LCD_PINS_D7 64
|
||||||
|
#else
|
||||||
|
#define LCD_PINS_RS 16
|
||||||
|
#define LCD_PINS_ENABLE 17
|
||||||
|
#define LCD_PINS_D4 23
|
||||||
|
#define LCD_PINS_D5 25
|
||||||
|
#define LCD_PINS_D6 27
|
||||||
|
#define LCD_PINS_D7 29
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#ifdef REPRAP_DISCOUNT_SMART_CONTROLLER
|
#ifdef REPRAP_DISCOUNT_SMART_CONTROLLER
|
||||||
#define BEEPER 37
|
#define BEEPER 37
|
||||||
|
@ -1096,13 +1096,26 @@ const short temptable_1047[][2] PROGMEM = {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if (THERMISTORHEATER_0 == 999) || (THERMISTORHEATER_1 == 999) || (THERMISTORHEATER_2 == 999) || (THERMISTORHEATER_3 == 999) || (THERMISTORBED == 999) //User defined table
|
#if (THERMISTORHEATER_0 == 999) || (THERMISTORHEATER_1 == 999) || (THERMISTORHEATER_2 == 999) || (THERMISTORHEATER_3 == 999) || (THERMISTORBED == 999) //User defined table
|
||||||
// Dummy Thermistor table.. It will ALWAYS read 25C.
|
// Dummy Thermistor table.. It will ALWAYS read a fixed value.
|
||||||
const short temptable_999[][2] PROGMEM = {
|
#ifndef DUMMY_THERMISTOR_999_VALUE
|
||||||
{1*OVERSAMPLENR, 25},
|
#define DUMMY_THERMISTOR_999_VALUE 25
|
||||||
{1023*OVERSAMPLENR, 25}
|
#endif
|
||||||
|
const short temptable_999[][2] PROGMEM = {
|
||||||
|
{1*OVERSAMPLENR, DUMMY_THERMISTOR_999_VALUE},
|
||||||
|
{1023*OVERSAMPLENR, DUMMY_THERMISTOR_999_VALUE}
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if (THERMISTORHEATER_0 == 998) || (THERMISTORHEATER_1 == 998) || (THERMISTORHEATER_2 == 998) || (THERMISTORHEATER_3 == 998) || (THERMISTORBED == 998) //User defined table
|
||||||
|
// Dummy Thermistor table.. It will ALWAYS read a fixed value.
|
||||||
|
#ifndef DUMMY_THERMISTOR_998_VALUE
|
||||||
|
#define DUMMY_THERMISTOR_998_VALUE 25
|
||||||
|
#endif
|
||||||
|
const short temptable_998[][2] PROGMEM = {
|
||||||
|
{1*OVERSAMPLENR, DUMMY_THERMISTOR_998_VALUE},
|
||||||
|
{1023*OVERSAMPLENR, DUMMY_THERMISTOR_998_VALUE}
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#define _TT_NAME(_N) temptable_ ## _N
|
#define _TT_NAME(_N) temptable_ ## _N
|
||||||
|
1582
Marlin/ultralcd.cpp
1582
Marlin/ultralcd.cpp
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user