Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
MarlinKimbra
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
machinery
MarlinKimbra
Commits
7e90c0c1
Commit
7e90c0c1
authored
Jan 30, 2015
by
MagoKimbra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Pins.h
parent
b29c08cd
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
776 additions
and
191 deletions
+776
-191
Marlin_main.cpp
MarlinKimbra/Marlin_main.cpp
+68
-79
boards.h
MarlinKimbra/boards.h
+2
-2
language.h
MarlinKimbra/language.h
+0
-1
pins.h
MarlinKimbra/pins.h
+695
-93
ultralcd.cpp
MarlinKimbra/ultralcd.cpp
+4
-8
ultralcd_implementation_hitachi_HD44780.h
MarlinKimbra/ultralcd_implementation_hitachi_HD44780.h
+7
-8
No files found.
MarlinKimbra/Marlin_main.cpp
View file @
7e90c0c1
...
@@ -49,20 +49,20 @@
...
@@ -49,20 +49,20 @@
#include "math.h"
#include "math.h"
#ifdef BLINKM
#ifdef BLINKM
#include "BlinkM.h"
#include "BlinkM.h"
#include "Wire.h"
#include "Wire.h"
#endif
#endif
#if NUM_SERVOS > 0
#if NUM_SERVOS > 0
#include "Servo.h"
#include "Servo.h"
#endif
#endif
#if defined(DIGIPOTSS_PIN) && DIGIPOTSS_PIN > -1
#if defined(DIGIPOTSS_PIN) && DIGIPOTSS_PIN > -1
#include <SPI.h>
#include <SPI.h>
#endif
#endif
#ifdef FIRMWARE_TEST
#ifdef FIRMWARE_TEST
#include "firmware_test.h"
#include "firmware_test.h"
#endif
#endif
// look here for descriptions of G-codes: http://linuxcnc.org/handbook/gcode/g-code.html
// look here for descriptions of G-codes: http://linuxcnc.org/handbook/gcode/g-code.html
...
@@ -172,10 +172,10 @@
...
@@ -172,10 +172,10 @@
// M405 - Turn on Filament Sensor extrusion control. Optional D<delay in cm> to set delay in centimeters between sensor and extruder
// M405 - Turn on Filament Sensor extrusion control. Optional D<delay in cm> to set delay in centimeters between sensor and extruder
// M406 - Turn off Filament Sensor extrusion control
// M406 - Turn off Filament Sensor extrusion control
// M407 - Displays measured filament diameter
// M407 - Displays measured filament diameter
// M500 -
stores
parameters in EEPROM
// M500 -
Store
parameters in EEPROM
// M501 -
reads
parameters from EEPROM (if you need reset them after you changed them temporarily).
// M501 -
Read
parameters from EEPROM (if you need reset them after you changed them temporarily).
// M502 -
reverts
to the default "factory settings". You still need to store them in EEPROM afterwards if you want to.
// M502 -
Revert
to the default "factory settings". You still need to store them in EEPROM afterwards if you want to.
// M503 -
print the current settings (from memory not from EEPROM)
// M503 -
Print the current settings (from memory not from EEPROM). Use S0 to leave off headings.
// M540 - Use S[0|1] to enable or disable the stop SD card print on endstop hit (requires ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED)
// M540 - Use S[0|1] to enable or disable the stop SD card print on endstop hit (requires ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED)
// M600 - Pause for filament change X[pos] Y[pos] Z[relative lift] E[initial retract] L[later retract distance for removal]
// M600 - Pause for filament change X[pos] Y[pos] Z[relative lift] E[initial retract] L[later retract distance for removal]
// M605 - Set dual x-carriage movement mode: S<mode> [ X<duplication x-offset> R<duplication temp offset> ]
// M605 - Set dual x-carriage movement mode: S<mode> [ X<duplication x-offset> R<duplication temp offset> ]
...
@@ -198,21 +198,11 @@
...
@@ -198,21 +198,11 @@
// M997 - NPR2 Color rotate
// M997 - NPR2 Color rotate
// M999 - Restart after being stopped by error
// M999 - Restart after being stopped by error
//Stepper Movement Variables
//===========================================================================
//=============================imported variables============================
//===========================================================================
//===========================================================================
//=============================public variables=============================
//===========================================================================
unsigned
long
baudrate
;
#ifdef SDSUPPORT
#ifdef SDSUPPORT
CardReader
card
;
CardReader
card
;
#endif
#endif
unsigned
long
baudrate
;
float
homing_feedrate
[]
=
HOMING_FEEDRATE
;
float
homing_feedrate
[]
=
HOMING_FEEDRATE
;
bool
axis_known_position
[
3
]
=
{
false
,
false
,
false
};
bool
axis_known_position
[
3
]
=
{
false
,
false
,
false
};
...
@@ -229,10 +219,10 @@ float zprobe_zoffset;
...
@@ -229,10 +219,10 @@ float zprobe_zoffset;
#endif // No Delta
#endif // No Delta
bool
axis_relative_modes
[]
=
AXIS_RELATIVE_MODES
;
bool
axis_relative_modes
[]
=
AXIS_RELATIVE_MODES
;
int
feedmultiply
=
100
;
//100->1 200->2
int
feedmultiply
=
100
;
//100->1 200->2
int
saved_feedmultiply
;
int
saved_feedmultiply
;
int
extrudemultiply
=
100
;
//100->1 200->2
int
extrudemultiply
=
100
;
//100->1 200->2
int
extruder_multiply
[
EXTRUDERS
]
=
{
100
int
extruder_multiply
[
EXTRUDERS
]
=
{
100
#if EXTRUDERS > 1
#if EXTRUDERS > 1
,
100
,
100
#if EXTRUDERS > 2
#if EXTRUDERS > 2
...
@@ -267,16 +257,16 @@ float volumetric_multiplier[EXTRUDERS] = {1.0
...
@@ -267,16 +257,16 @@ float volumetric_multiplier[EXTRUDERS] = {1.0
#endif
#endif
};
};
float
current_position
[
NUM_AXIS
]
=
{
0.0
,
0.0
,
0.0
,
0.0
};
float
current_position
[
NUM_AXIS
]
=
{
0.0
,
0.0
,
0.0
,
0.0
};
float
destination
[
NUM_AXIS
]
=
{
0.0
,
0.0
,
0.0
,
0.0
};
float
destination
[
NUM_AXIS
]
=
{
0.0
,
0.0
,
0.0
,
0.0
};
float
add_homing
[
3
]
=
{
0
,
0
,
0
};
float
add_homing
[
3
]
=
{
0
,
0
,
0
};
#ifdef NPR2
#ifdef NPR2
int
old_color
=
99
;
int
old_color
=
99
;
#endif // NPR2
#endif // NPR2
#ifdef DELTA
#ifdef DELTA
float
endstop_adj
[
3
]
=
{
0
,
0
,
0
};
float
endstop_adj
[
3
]
=
{
0
,
0
,
0
};
float
tower_adj
[
6
]
=
{
0
,
0
,
0
,
0
,
0
,
0
};
float
tower_adj
[
6
]
=
{
0
,
0
,
0
,
0
,
0
,
0
};
float
delta_radius
;
// = DEFAULT_delta_radius;
float
delta_radius
;
// = DEFAULT_delta_radius;
float
delta_diagonal_rod
;
// = DEFAULT_DELTA_DIAGONAL_ROD;
float
delta_diagonal_rod
;
// = DEFAULT_DELTA_DIAGONAL_ROD;
float
DELTA_DIAGONAL_ROD_2
;
float
DELTA_DIAGONAL_ROD_2
;
...
@@ -288,18 +278,18 @@ float delta_tower3_x, delta_tower3_y;
...
@@ -288,18 +278,18 @@ float delta_tower3_x, delta_tower3_y;
float
base_max_pos
[
3
]
=
{
X_MAX_POS
,
Y_MAX_POS
,
Z_MAX_POS
};
float
base_max_pos
[
3
]
=
{
X_MAX_POS
,
Y_MAX_POS
,
Z_MAX_POS
};
float
base_home_pos
[
3
]
=
{
X_HOME_POS
,
Y_HOME_POS
,
Z_HOME_POS
};
float
base_home_pos
[
3
]
=
{
X_HOME_POS
,
Y_HOME_POS
,
Z_HOME_POS
};
float
max_length
[
3
]
=
{
X_MAX_LENGTH
,
Y_MAX_LENGTH
,
Z_MAX_LENGTH
};
float
max_length
[
3
]
=
{
X_MAX_LENGTH
,
Y_MAX_LENGTH
,
Z_MAX_LENGTH
};
float
saved_position
[
3
]
=
{
0.0
,
0.0
,
0.0
};
float
saved_position
[
3
]
=
{
0.0
,
0.0
,
0.0
};
float
saved_positions
[
7
][
3
]
=
{
float
saved_positions
[
7
][
3
]
=
{
{
0
,
0
,
0
},
{
0
,
0
,
0
},
{
0
,
0
,
0
},
{
0
,
0
,
0
},
{
0
,
0
,
0
},
{
0
,
0
,
0
},
{
0
,
0
,
0
},
{
0
,
0
,
0
},
{
0
,
0
,
0
},
{
0
,
0
,
0
},
{
0
,
0
,
0
},
{
0
,
0
,
0
},
{
0
,
0
,
0
},
{
0
,
0
,
0
},
};
};
float
delta
[
3
]
=
{
0.0
,
0.0
,
0.0
};
float
delta
[
3
]
=
{
0.0
,
0.0
,
0.0
};
float
delta_tmp
[
3
]
=
{
0.0
,
0.0
,
0.0
};
float
delta_tmp
[
3
]
=
{
0.0
,
0.0
,
0.0
};
#endif // DELTA
#endif // DELTA
float
min_pos
[
3
]
=
{
X_MIN_POS
,
Y_MIN_POS
,
Z_MIN_POS
};
float
min_pos
[
3
]
=
{
X_MIN_POS
,
Y_MIN_POS
,
Z_MIN_POS
};
...
@@ -327,19 +317,20 @@ uint8_t active_driver = 0;
...
@@ -327,19 +317,20 @@ uint8_t active_driver = 0;
uint8_t
debugLevel
=
0
;
uint8_t
debugLevel
=
0
;
int
fanSpeed
=
0
;
int
fanSpeed
=
0
;
#ifdef SERVO_ENDSTOPS && (NUM_SERVOS > 0)
#ifdef SERVO_ENDSTOPS && (NUM_SERVOS > 0)
int
servo_endstops
[]
=
SERVO_ENDSTOPS
;
int
servo_endstops
[]
=
SERVO_ENDSTOPS
;
int
servo_endstop_angles
[]
=
SERVO_ENDSTOP_ANGLES
;
int
servo_endstop_angles
[]
=
SERVO_ENDSTOP_ANGLES
;
#endif
#endif
#ifdef BARICUDA
#ifdef BARICUDA
int
ValvePressure
=
0
;
int
ValvePressure
=
0
;
int
EtoPPressure
=
0
;
int
EtoPPressure
=
0
;
#endif
#endif
#ifdef FWRETRACT
#ifdef FWRETRACT
bool
autoretract_enabled
=
false
;
bool
retracted
[
EXTRUDERS
]
=
{
false
bool
autoretract_enabled
=
false
;
bool
retracted
[
EXTRUDERS
]
=
{
false
#if EXTRUDERS > 1
#if EXTRUDERS > 1
,
false
,
false
#if EXTRUDERS > 2
#if EXTRUDERS > 2
...
@@ -350,7 +341,7 @@ int fanSpeed=0;
...
@@ -350,7 +341,7 @@ int fanSpeed=0;
#endif
#endif
#endif
#endif
};
};
bool
retracted_swap
[
EXTRUDERS
]
=
{
false
bool
retracted_swap
[
EXTRUDERS
]
=
{
false
#if EXTRUDERS > 1
#if EXTRUDERS > 1
,
false
,
false
#if EXTRUDERS > 2
#if EXTRUDERS > 2
...
@@ -369,21 +360,22 @@ int fanSpeed=0;
...
@@ -369,21 +360,22 @@ int fanSpeed=0;
float
retract_recover_length
=
RETRACT_RECOVER_LENGTH
;
float
retract_recover_length
=
RETRACT_RECOVER_LENGTH
;
float
retract_recover_length_swap
=
RETRACT_RECOVER_LENGTH_SWAP
;
float
retract_recover_length_swap
=
RETRACT_RECOVER_LENGTH_SWAP
;
float
retract_recover_feedrate
=
RETRACT_RECOVER_FEEDRATE
;
float
retract_recover_feedrate
=
RETRACT_RECOVER_FEEDRATE
;
#endif // FWRETRACT
#endif // FWRETRACT
#ifdef ULTIPANEL
#ifdef ULTIPANEL
#ifdef PS_DEFAULT_OFF
#ifdef PS_DEFAULT_OFF
bool
powersupply
=
false
;
bool
powersupply
=
false
;
#else
#else
bool
powersupply
=
true
;
bool
powersupply
=
true
;
#endif
#endif
#endif //
ULTIPANEL
#endif //ULTIPANEL
#ifdef SCARA // Build size scaling
#ifdef SCARA // Build size scaling
float
axis_scaling
[
3
]
=
{
1
,
1
,
1
};
// Build size scaling, default to 1
float
axis_scaling
[
3
]
=
{
1
,
1
,
1
};
// Build size scaling, default to 1
#endif //
SCARA
#endif //
SCARA
bool
cancel_heatup
=
false
;
bool
cancel_heatup
=
false
;
#ifdef FILAMENT_SENSOR
#ifdef FILAMENT_SENSOR
//Variables for Filament Sensor input
//Variables for Filament Sensor input
...
@@ -398,7 +390,7 @@ bool cancel_heatup = false ;
...
@@ -398,7 +390,7 @@ bool cancel_heatup = false ;
#endif
#endif
#ifdef LASERBEAM
#ifdef LASERBEAM
int
laser_ttl_modulation
=
0
;
int
laser_ttl_modulation
=
0
;
#endif
#endif
const
char
errormagic
[]
PROGMEM
=
"Error:"
;
const
char
errormagic
[]
PROGMEM
=
"Error:"
;
...
@@ -408,20 +400,20 @@ const char echomagic[] PROGMEM = "echo:";
...
@@ -408,20 +400,20 @@ const char echomagic[] PROGMEM = "echo:";
//=============================Private Variables=============================
//=============================Private Variables=============================
//===========================================================================
//===========================================================================
const
char
axis_codes
[
NUM_AXIS
]
=
{
'X'
,
'Y'
,
'Z'
,
'E'
};
const
char
axis_codes
[
NUM_AXIS
]
=
{
'X'
,
'Y'
,
'Z'
,
'E'
};
static
float
offset
[
3
]
=
{
0.0
,
0.0
,
0.0
};
static
float
offset
[
3
]
=
{
0.0
,
0.0
,
0.0
};
static
bool
home_all_axis
=
true
;
static
bool
home_all_axis
=
true
;
#ifdef DELTA
#ifdef DELTA
const
float
SIN_60
=
0.8660254037844386
;
const
float
SIN_60
=
0.8660254037844386
;
const
float
COS_60
=
0.5
;
const
float
COS_60
=
0.5
;
static
float
bed_level
[
7
][
7
]
=
{
static
float
bed_level
[
7
][
7
]
=
{
{
0
,
0
,
0
,
0
,
0
,
0
,
0
},
{
0
,
0
,
0
,
0
,
0
,
0
,
0
},
{
0
,
0
,
0
,
0
,
0
,
0
,
0
},
{
0
,
0
,
0
,
0
,
0
,
0
,
0
},
{
0
,
0
,
0
,
0
,
0
,
0
,
0
},
{
0
,
0
,
0
,
0
,
0
,
0
,
0
},
{
0
,
0
,
0
,
0
,
0
,
0
,
0
},
{
0
,
0
,
0
,
0
,
0
,
0
,
0
},
{
0
,
0
,
0
,
0
,
0
,
0
,
0
},
{
0
,
0
,
0
,
0
,
0
,
0
,
0
},
{
0
,
0
,
0
,
0
,
0
,
0
,
0
},
{
0
,
0
,
0
,
0
,
0
,
0
,
0
},
{
0
,
0
,
0
,
0
,
0
,
0
,
0
},
{
0
,
0
,
0
,
0
,
0
,
0
,
0
},
};
};
static
float
feedrate
=
1500.0
,
next_feedrate
,
saved_feedrate
,
z_offset
;
static
float
feedrate
=
1500.0
,
next_feedrate
,
saved_feedrate
,
z_offset
;
static
float
bed_level_x
,
bed_level_y
,
bed_level_z
;
static
float
bed_level_x
,
bed_level_y
,
bed_level_z
;
...
@@ -443,35 +435,32 @@ static int buflen = 0;
...
@@ -443,35 +435,32 @@ static int buflen = 0;
static
char
serial_char
;
static
char
serial_char
;
static
int
serial_count
=
0
;
static
int
serial_count
=
0
;
static
boolean
comment_mode
=
false
;
static
boolean
comment_mode
=
false
;
static
char
*
strchr_pointer
;
//
just a pointer to find chars in the command string like X, Y, Z, E, etc
static
char
*
strchr_pointer
;
//
/< A pointer to find chars in the command string (X, Y, Z, E, etc.)
const
int
sensitive_pins
[]
=
SENSITIVE_PINS
;
// Sensitive pin list for M42
const
int
sensitive_pins
[]
=
SENSITIVE_PINS
;
//
/<
Sensitive pin list for M42
//static float tt = 0;
// Inactivity shutdown
//static float bt = 0;
//Inactivity shutdown variables
static
unsigned
long
previous_millis_cmd
=
0
;
static
unsigned
long
previous_millis_cmd
=
0
;
static
unsigned
long
max_inactive_time
=
0
;
static
unsigned
long
max_inactive_time
=
0
;
static
unsigned
long
stepper_inactive_time
=
DEFAULT_STEPPER_DEACTIVE_TIME
*
1000l
;
static
unsigned
long
stepper_inactive_time
=
DEFAULT_STEPPER_DEACTIVE_TIME
*
1000l
;
unsigned
long
starttime
=
0
;
unsigned
long
starttime
=
0
;
///< Print job start time
unsigned
long
stoptime
=
0
;
unsigned
long
stoptime
=
0
;
///< Print job stop time
static
uint8_t
tmp_extruder
;
static
uint8_t
tmp_extruder
;
#ifdef NPR2
#ifdef NPR2
static
float
color_position
[]
=
COLOR_STEP
;
//variabile per la scelta del colore
static
float
color_position
[]
=
COLOR_STEP
;
//variabile per la scelta del colore
static
float
color_step_moltiplicator
=
(
DRIVER_MICROSTEP
/
MOTOR_ANGLE
)
*
CARTER_MOLTIPLICATOR
;
static
float
color_step_moltiplicator
=
(
DRIVER_MICROSTEP
/
MOTOR_ANGLE
)
*
CARTER_MOLTIPLICATOR
;
#endif // NPR2
#endif // NPR2
#ifdef EASY_LOAD
#ifdef EASY_LOAD
bool
allow_lengthy_extrude_once
;
// for load/unload
bool
allow_lengthy_extrude_once
;
// for load/unload
#endif
#endif
bool
Stopped
=
false
;
bool
Stopped
=
false
;
#if defined(PAUSE_PIN) && PAUSE_PIN > -1
#if defined(PAUSE_PIN) && PAUSE_PIN > -1
bool
paused
=
false
;
bool
paused
=
false
;
#endif
#endif
#if NUM_SERVOS > 0
#if NUM_SERVOS > 0
...
@@ -481,10 +470,9 @@ bool paused=false;
...
@@ -481,10 +470,9 @@ bool paused=false;
bool
CooldownNoWait
=
true
;
bool
CooldownNoWait
=
true
;
bool
target_direction
;
bool
target_direction
;
//Insert variables if CHDK is defined
#ifdef CHDK
#ifdef CHDK
unsigned
long
chdkHigh
=
0
;
unsigned
long
chdkHigh
=
0
;
boolean
chdkActive
=
false
;
boolean
chdkActive
=
false
;
#endif
#endif
//===========================================================================
//===========================================================================
...
@@ -639,7 +627,7 @@ void servo_init()
...
@@ -639,7 +627,7 @@ void servo_init()
servos
[
servo_endstops
[
i
]].
write
(
servo_endstop_angles
[
i
*
2
+
1
]);
servos
[
servo_endstops
[
i
]].
write
(
servo_endstop_angles
[
i
*
2
+
1
]);
}
}
}
}
#endif //
NUM_SERVOS
#endif //NUM_SERVOS
#if defined (ENABLE_AUTO_BED_LEVELING) && (PROBE_SERVO_DEACTIVATION_DELAY > 0)
#if defined (ENABLE_AUTO_BED_LEVELING) && (PROBE_SERVO_DEACTIVATION_DELAY > 0)
delay
(
PROBE_SERVO_DEACTIVATION_DELAY
);
delay
(
PROBE_SERVO_DEACTIVATION_DELAY
);
...
@@ -647,6 +635,7 @@ void servo_init()
...
@@ -647,6 +635,7 @@ void servo_init()
#endif
#endif
}
}
void
setup
()
void
setup
()
{
{
setup_killpin
();
setup_killpin
();
...
...
MarlinKimbra/boards.h
View file @
7e90c0c1
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
#define BOARD_RAMPS_13_EEF 36 // RAMPS 1.3 / 1.4 (Power outputs: Extruder0, Extruder1, Fan)
#define BOARD_RAMPS_13_EEF 36 // RAMPS 1.3 / 1.4 (Power outputs: Extruder0, Extruder1, Fan)
#define BOARD_RAMBO 301 // Rambo
#define BOARD_RAMBO 301 // Rambo
#define BOARD_DUEMILANOVE_328P 4 // Duemilanove w/ ATMega328P pin assignment
#define BOARD_DUEMILANOVE_328P 4 // Duemilanove w/ ATMega328P pin assignment
s
#define BOARD_GEN6 5 // Gen6
#define BOARD_GEN6 5 // Gen6
#define BOARD_GEN6_DELUXE 51 // Gen6 deluxe
#define BOARD_GEN6_DELUXE 51 // Gen6 deluxe
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
#define BOARD_PRINTRBOARD 81 // Printrboard (AT90USB1286)
#define BOARD_PRINTRBOARD 81 // Printrboard (AT90USB1286)
#define BOARD_BRAINWAVE 82 // Brainwave (AT90USB646)
#define BOARD_BRAINWAVE 82 // Brainwave (AT90USB646)
#define BOARD_SAV_MKI 83 // SAV Mk-I (AT90USB1286)
#define BOARD_SAV_MKI 83 // SAV Mk-I (AT90USB1286)
#define BOARD_TEENSY2 84 // Teensy++2.0 (AT90USB1286)
- CLI compile: DEFINES=AT90USBxx_TEENSYPP_ASSIGNMENTS HARDWARE_MOTHERBOARD=84 make
#define BOARD_TEENSY2 84 // Teensy++2.0 (AT90USB1286)
#define BOARD_5DPRINT 88 // 5DPrint D8 Driver Board
#define BOARD_5DPRINT 88 // 5DPrint D8 Driver Board
#define BOARD_GEN3_PLUS 9 // Gen3+
#define BOARD_GEN3_PLUS 9 // Gen3+
...
...
MarlinKimbra/language.h
View file @
7e90c0c1
...
@@ -154,7 +154,6 @@
...
@@ -154,7 +154,6 @@
#define MSG_ERR_EEPROM_WRITE "Error writing to EEPROM!"
#define MSG_ERR_EEPROM_WRITE "Error writing to EEPROM!"
// LCD Menu Messages
#include "language_en.h"
#include "language_en.h"
#if LANGUAGE_CHOICE == 2 // Polish
#if LANGUAGE_CHOICE == 2 // Polish
...
...
MarlinKimbra/pins.h
View file @
7e90c0c1
This diff is collapsed.
Click to expand it.
MarlinKimbra/ultralcd.cpp
View file @
7e90c0c1
...
@@ -763,13 +763,9 @@ static void lcd_preheat_gum_menu()
...
@@ -763,13 +763,9 @@ static void lcd_preheat_gum_menu()
void
lcd_cooldown
()
void
lcd_cooldown
()
{
{
setTargetHotend0
(
0
);
setTargetHotend0
(
0
);
#ifndef SINGLENOZZLE
setTargetHotend1
(
0
);
setTargetHotend1
(
0
);
setTargetHotend2
(
0
);
setTargetHotend2
(
0
);
setTargetHotend3
(
0
);
setTargetHotend3
(
0
);
#endif // !SINGLENOZZLE
setTargetBed
(
0
);
setTargetBed
(
0
);
fanSpeed
=
0
;
fanSpeed
=
0
;
lcd_return_to_status
();
lcd_return_to_status
();
...
@@ -1139,15 +1135,15 @@ static void lcd_control_motion_menu()
...
@@ -1139,15 +1135,15 @@ static void lcd_control_motion_menu()
MENU_ITEM_EDIT
(
float52
,
MSG_XSTEPS
,
&
axis_steps_per_unit
[
X_AXIS
],
5
,
9999
);
MENU_ITEM_EDIT
(
float52
,
MSG_XSTEPS
,
&
axis_steps_per_unit
[
X_AXIS
],
5
,
9999
);
MENU_ITEM_EDIT
(
float52
,
MSG_YSTEPS
,
&
axis_steps_per_unit
[
Y_AXIS
],
5
,
9999
);
MENU_ITEM_EDIT
(
float52
,
MSG_YSTEPS
,
&
axis_steps_per_unit
[
Y_AXIS
],
5
,
9999
);
MENU_ITEM_EDIT
(
float51
,
MSG_ZSTEPS
,
&
axis_steps_per_unit
[
Z_AXIS
],
5
,
9999
);
MENU_ITEM_EDIT
(
float51
,
MSG_ZSTEPS
,
&
axis_steps_per_unit
[
Z_AXIS
],
5
,
9999
);
MENU_ITEM_EDIT
(
float51
,
MSG_E0STEPS
,
&
axis_steps_per_unit
[
3
],
5
,
9999
);
MENU_ITEM_EDIT
(
float51
,
MSG_E0STEPS
,
&
axis_steps_per_unit
[
E_AXIS
+
0
],
5
,
9999
);
#if EXTRUDERS > 1
#if EXTRUDERS > 1
MENU_ITEM_EDIT
(
float51
,
MSG_E1STEPS
,
&
axis_steps_per_unit
[
4
],
5
,
9999
);
MENU_ITEM_EDIT
(
float51
,
MSG_E1STEPS
,
&
axis_steps_per_unit
[
E_AXIS
+
1
],
5
,
9999
);
#endif
#endif
#if EXTRUDERS > 2
#if EXTRUDERS > 2
MENU_ITEM_EDIT
(
float51
,
MSG_E2STEPS
,
&
axis_steps_per_unit
[
5
],
5
,
9999
);
MENU_ITEM_EDIT
(
float51
,
MSG_E2STEPS
,
&
axis_steps_per_unit
[
E_AXIS
+
2
],
5
,
9999
);
#endif
#endif
#if EXTRUDERS > 3
#if EXTRUDERS > 3
MENU_ITEM_EDIT
(
float51
,
MSG_E3STEPS
,
&
axis_steps_per_unit
[
6
],
5
,
9999
);
MENU_ITEM_EDIT
(
float51
,
MSG_E3STEPS
,
&
axis_steps_per_unit
[
E_AXIS
+
3
],
5
,
9999
);
#endif
#endif
#ifdef ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
#ifdef ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
MENU_ITEM_EDIT
(
bool
,
MSG_ENDSTOP_ABORT
,
&
abort_on_endstop_hit
);
MENU_ITEM_EDIT
(
bool
,
MSG_ENDSTOP_ABORT
,
&
abort_on_endstop_hit
);
...
...
MarlinKimbra/ultralcd_implementation_hitachi_HD44780.h
View file @
7e90c0c1
#ifndef ULTRA
_
LCD_IMPLEMENTATION_HITACHI_HD44780_H
#ifndef ULTRALCD_IMPLEMENTATION_HITACHI_HD44780_H
#define ULTRA
_
LCD_IMPLEMENTATION_HITACHI_HD44780_H
#define ULTRALCD_IMPLEMENTATION_HITACHI_HD44780_H
/**
/**
* Implementation of the LCD display routines for a Hitachi HD44780 display. These are common LCD character displays.
* Implementation of the LCD display routines for a Hitachi HD44780 display. These are common LCD character displays.
...
@@ -7,9 +7,9 @@
...
@@ -7,9 +7,9 @@
**/
**/
#ifndef REPRAPWORLD_KEYPAD
#ifndef REPRAPWORLD_KEYPAD
extern
volatile
uint8_t
buttons
;
//the last checked buttons in a bit array.
extern
volatile
uint8_t
buttons
;
//the last checked buttons in a bit array.
#else
#else
extern
volatile
uint16_t
buttons
;
//an extended version of the last checked buttons in a bit array.
extern
volatile
uint16_t
buttons
;
//an extended version of the last checked buttons in a bit array.
#endif
#endif
////////////////////////////////////
////////////////////////////////////
...
@@ -526,8 +526,8 @@ static void lcd_implementation_status_screen()
...
@@ -526,8 +526,8 @@ static void lcd_implementation_status_screen()
lcd_printPGM
(
PSTR
(
LCD_STR_DEGREE
" "
));
lcd_printPGM
(
PSTR
(
LCD_STR_DEGREE
" "
));
if
(
tTarget
<
10
)
if
(
tTarget
<
10
)
lcd
.
print
(
' '
);
lcd
.
print
(
' '
);
# endif
(EXTRUDERS > 1 && !defined(SINGLENOZZLE)) || TEMP_SENSOR_BED != 0
# endif
//
(EXTRUDERS > 1 && !defined(SINGLENOZZLE)) || TEMP_SENSOR_BED != 0
#endif
//LCD_WIDTH > 19
#endif//LCD_WIDTH > 19
#if LCD_HEIGHT > 2
#if LCD_HEIGHT > 2
//Lines 2 for 4 line LCD
//Lines 2 for 4 line LCD
...
@@ -927,5 +927,4 @@ static uint8_t lcd_implementation_read_slow_buttons()
...
@@ -927,5 +927,4 @@ static uint8_t lcd_implementation_read_slow_buttons()
}
}
#endif
#endif
#endif //__ULTRALCD_IMPLEMENTATION_HITACHI_HD44780_H
#endif//ULTRA_LCD_IMPLEMENTATION_HITACHI_HD44780_H
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment