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
aedb4d4e
Commit
aedb4d4e
authored
Jan 23, 2015
by
MagoKimbra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix code
parent
173df6c2
Changes
12
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
229 additions
and
216 deletions
+229
-216
Configuration.h
MarlinKimbra/Configuration.h
+6
-4
Configuration_Cartesian.h
MarlinKimbra/Configuration_Cartesian.h
+1
-1
Marlin_main.cpp
MarlinKimbra/Marlin_main.cpp
+26
-26
boards.h
MarlinKimbra/boards.h
+3
-4
language.h
MarlinKimbra/language.h
+3
-0
language_it.h
MarlinKimbra/language_it.h
+18
-18
pins.h
MarlinKimbra/pins.h
+8
-8
stepper.cpp
MarlinKimbra/stepper.cpp
+12
-21
temperature.cpp
MarlinKimbra/temperature.cpp
+145
-126
temperature.h
MarlinKimbra/temperature.h
+2
-3
ultralcd.cpp
MarlinKimbra/ultralcd.cpp
+3
-3
ultralcd.h
MarlinKimbra/ultralcd.h
+2
-2
No files found.
MarlinKimbra/Configuration.h
View file @
aedb4d4e
...
...
@@ -317,14 +317,16 @@
// If you want to enable this feature for all your extruder heaters,
// uncomment the 2 defines below:
// Parameters for all extruder heaters
//#define THERMAL_RUNAWAY_PROTECTION_PERIOD 40 // seconds
//#define THERMAL_RUNAWAY_PROTECTION_HYSTERESIS 4 //
degC
//#define THERMAL_RUNAWAY_PROTECTION_PERIOD 40 //
in
seconds
//#define THERMAL_RUNAWAY_PROTECTION_HYSTERESIS 4 //
in degree Celsius
// If you want to enable this feature for your bed heater,
// uncomment the 2 defines below:
// Parameters for the bed heater
//#define THERMAL_RUNAWAY_PROTECTION_BED_PERIOD 20 // seconds
//#define THERMAL_RUNAWAY_PROTECTION_BED_HYSTERESIS 2 // degC
//#define THERMAL_RUNAWAY_PROTECTION_BED_PERIOD 20 //in seconds
//#define THERMAL_RUNAWAY_PROTECTION_BED_HYSTERESIS 2 // in degree Celsius
//===========================================================================
//===========================================================================
...
...
MarlinKimbra/Configuration_Cartesian.h
View file @
aedb4d4e
...
...
@@ -218,7 +218,7 @@ const bool Z_MAX_ENDSTOP_INVERTING = false; // set to true to invert the lo
#define DEFAULT_MAX_ACCELERATION {3000,3000,50,1000,1000,1000,1000} // X, Y, Z, E0, E1, E2, E3 maximum start speed for accelerated moves.
#define DEFAULT_ACCELERATION 2500 // X, Y, Z and E max acceleration in mm/s^2 for printing moves
#define DEFAULT_RETRACT_ACCELERATION
3000 // X, Y, Z and
E max acceleration in mm/s^2 for retracts
#define DEFAULT_RETRACT_ACCELERATION
10000 //
E max acceleration in mm/s^2 for retracts
// Offset of the extruders (uncomment if using more than one and relying on firmware to position when changing).
// The offset has to be X=0, Y=0 for the extruder 0 hotend (default extruder).
...
...
MarlinKimbra/Marlin_main.cpp
View file @
aedb4d4e
...
...
@@ -239,9 +239,9 @@ int extruder_multiply[EXTRUDERS] = {100
,
100
#if EXTRUDERS > 2
,
100
#if EXTRUDERS > 3
#if EXTRUDERS > 3
,
100
#endif
#endif
#endif
#endif
};
...
...
@@ -4041,32 +4041,32 @@ Sigma_Exit:
float
area
=
.0
;
if
(
code_seen
(
'D'
))
{
float
diameter
=
(
float
)
code_value
();
if
(
diameter
==
0.0
)
{
// setting any extruder filament size disables volumetric on the assumption that
// slicers either generate in extruder values as cubic mm or as as filament feeds
// for all extruders
volumetric_enabled
=
false
;
}
else
{
float
diameter
=
(
float
)
code_value
();
if
(
diameter
==
0.0
)
{
// setting any extruder filament size disables volumetric on the assumption that
// slicers either generate in extruder values as cubic mm or as as filament feeds
// for all extruders
volumetric_enabled
=
false
;
}
else
{
filament_size
[
tmp_extruder
]
=
(
float
)
code_value
();
// make sure all extruders have some sane value for the filament size
filament_size
[
0
]
=
(
filament_size
[
0
]
==
0.0
?
DEFAULT_NOMINAL_FILAMENT_DIA
:
filament_size
[
0
]);
#if EXTRUDERS > 1
filament_size
[
1
]
=
(
filament_size
[
1
]
==
0.0
?
DEFAULT_NOMINAL_FILAMENT_DIA
:
filament_size
[
1
]);
#if EXTRUDERS > 2
filament_size
[
2
]
=
(
filament_size
[
2
]
==
0.0
?
DEFAULT_NOMINAL_FILAMENT_DIA
:
filament_size
[
2
]);
#if EXTRUDERS > 3
filament_size
[
3
]
=
(
filament_size
[
3
]
==
0.0
?
DEFAULT_NOMINAL_FILAMENT_DIA
:
filament_size
[
3
]);
#endif
#endif
#endif
volumetric_enabled
=
true
;
}
// make sure all extruders have some sane value for the filament size
filament_size
[
0
]
=
(
filament_size
[
0
]
==
0.0
?
DEFAULT_NOMINAL_FILAMENT_DIA
:
filament_size
[
0
]);
#if EXTRUDERS > 1
filament_size
[
1
]
=
(
filament_size
[
1
]
==
0.0
?
DEFAULT_NOMINAL_FILAMENT_DIA
:
filament_size
[
1
]);
#if EXTRUDERS > 2
filament_size
[
2
]
=
(
filament_size
[
2
]
==
0.0
?
DEFAULT_NOMINAL_FILAMENT_DIA
:
filament_size
[
2
]);
#if EXTRUDERS > 3
filament_size
[
3
]
=
(
filament_size
[
3
]
==
0.0
?
DEFAULT_NOMINAL_FILAMENT_DIA
:
filament_size
[
3
]);
#endif //EXTRUDERS > 3
#endif //EXTRUDERS > 2
#endif //EXTRUDERS > 1
volumetric_enabled
=
true
;
}
}
else
{
//reserved for setting filament diameter via UFID or filament measuring device
break
;
}
calculate_volumetric_multipliers
();
calculate_volumetric_multipliers
();
}
break
;
case
201
:
// M201
...
...
@@ -6104,8 +6104,8 @@ void calculate_volumetric_multipliers() {
volumetric_multiplier
[
2
]
=
calculate_volumetric_multiplier
(
filament_size
[
2
]);
#if EXTRUDERS > 3
volumetric_multiplier
[
3
]
=
calculate_volumetric_multiplier
(
filament_size
[
3
]);
#endif
#endif
#endif
#endif
//EXTRUDERS > 3
#endif
//EXTRUDERS > 2
#endif
//EXTRUDERS > 1
}
MarlinKimbra/boards.h
View file @
aedb4d4e
...
...
@@ -28,7 +28,8 @@
#define BOARD_ULTIMAKER 7 // Ultimaker
#define BOARD_ULTIMAKER_OLD 71 // Ultimaker (Older electronics. Pre 1.5.4. This is rare)
#define BOARD_ULTIMAIN_2 72 // Ultimainboard 2.x (Uses TEMP_SENSOR 20)
#define BOARD_3DRAG 77 // 3Drag Controller / Vellemann K8200 Controller
#define BOARD_3DRAG 77 // 3Drag Controller
#define BOARD_K8200 78 // Vellemann K8200 Controller (derived from 3Drag Controller)
#define BOARD_TEENSYLU 8 // Teensylu
#define BOARD_RUMBA 80 // Rumba
#define BOARD_PRINTRBOARD 81 // Printrboard (AT90USB1286)
...
...
@@ -40,7 +41,6 @@
#define BOARD_MEGATRONICS 70 // Megatronics
#define BOARD_MEGATRONICS_2 701 // Megatronics v2.0
#define BOARD_MEGATRONICS_1 702 // Minitronics v1.0
#define BOARD_MEGATRONICS_3 703 // Megatronics v3.0
#define BOARD_OMCA_A 90 // Alpha OMCA board
#define BOARD_OMCA 91 // Final OMCA board
#define BOARD_RAMBO 301 // Rambo
...
...
@@ -48,8 +48,7 @@
#define BOARD_5DPRINT 88 // 5DPrint D8 Driver Board
#define BOARD_LEAPFROG 999 // Leapfrog
#define BOARD_99 99 // This is in pins.h but...?
#define MB(board) (MOTHERBOARD==BOARD_##board)
#define IS_RAMPS (MB(RAMPS_OLD) || MB(RAMPS_13_EFB) || MB(RAMPS_13_EEB) || MB(RAMPS_13_EFF) || MB(RAMPS_13_EEF))
...
...
MarlinKimbra/language.h
View file @
aedb4d4e
...
...
@@ -36,6 +36,9 @@
#elif MB(3DRAG)
#define MACHINE_NAME "3Drag"
#define FIRMWARE_URL "http://3dprint.elettronicain.it/"
#elif MB(K8200)
#define MACHINE_NAME "K8200"
#define FIRMWARE_URL "https://github.com/MagoKimbra/MarlinKimbra"
#elif MB(5DPRINT)
#define MACHINE_NAME "Makibox"
#define FIRMWARE_URL "https://github.com/MagoKimbra/MarlinKimbra"
...
...
MarlinKimbra/language_it.h
View file @
aedb4d4e
...
...
@@ -47,16 +47,16 @@
#define MSG_EXTRUDE "Estrudi"
#define MSG_RETRACT "Ritrai"
#define MSG_MOVE_AXIS "Muovi Asse"
#define MSG_MOVE_X "M
ove
X"
#define MSG_MOVE_Y "M
ove
Y"
#define MSG_MOVE_Z "M
ove
Z"
#define MSG_MOVE_E "E
xtruder
"
#define MSG_MOVE_E1 "E
xtruder
2"
#define MSG_MOVE_E2 "E
xtruder
3"
#define MSG_MOVE_E3 "E
xtruder
4"
#define MSG_MOVE_01MM "M
ove
0.1mm"
#define MSG_MOVE_1MM "M
ove
1mm"
#define MSG_MOVE_10MM "M
ove
10mm"
#define MSG_MOVE_X "M
uovi
X"
#define MSG_MOVE_Y "M
uovi
Y"
#define MSG_MOVE_Z "M
uovi
Z"
#define MSG_MOVE_E "E
strusore
"
#define MSG_MOVE_E1 "E
strusore
2"
#define MSG_MOVE_E2 "E
strusore
3"
#define MSG_MOVE_E3 "E
strusore
4"
#define MSG_MOVE_01MM "M
uovi di
0.1mm"
#define MSG_MOVE_1MM "M
uovi di
1mm"
#define MSG_MOVE_10MM "M
uovi di
10mm"
#define MSG_SPEED "Velcità"
#define MSG_NOZZLE "Ugello"
#define MSG_NOZZLE1 "Ugello2"
...
...
@@ -88,7 +88,7 @@
#define MSG_PID_P3 "PID-P E4"
#define MSG_PID_I3 "PID-I E4"
#define MSG_PID_D3 "PID-D E4"
#define MSG_ACC "Accel"
#define MSG_ACC "Accel
.
"
#define MSG_VXY_JERK "Vxy-jerk"
#define MSG_VZ_JERK "Vz-jerk"
#define MSG_VE_JERK "Ve-jerk"
...
...
@@ -111,12 +111,12 @@
#define MSG_TEMPERATURE "Temperatura"
#define MSG_MOTION "Movimento"
#define MSG_VOLUMETRIC "Filament"
#define MSG_VOLUMETRIC_ENABLED
"E in mm3
"
#define MSG_FILAMENT_SIZE_EXTRUDER_0 "
Fil. Dia.
1"
#define MSG_FILAMENT_SIZE_EXTRUDER_1 "
Fil. Dia.
2"
#define MSG_FILAMENT_SIZE_EXTRUDER_2 "
Fil. Dia.
3"
#define MSG_FILAMENT_SIZE_EXTRUDER_3 "
Fil. Dia.
4"
#define MSG_CONTRAST "
LCD contrast
"
#define MSG_VOLUMETRIC_ENABLED
"E in mm³
"
#define MSG_FILAMENT_SIZE_EXTRUDER_0 "
Diam. filo
1"
#define MSG_FILAMENT_SIZE_EXTRUDER_1 "
Diam. filo
2"
#define MSG_FILAMENT_SIZE_EXTRUDER_2 "
Diam. filo
3"
#define MSG_FILAMENT_SIZE_EXTRUDER_3 "
Diam. filo
4"
#define MSG_CONTRAST "
Contrasto LCD
"
#define MSG_STORE_EPROM "Salva in EEPROM"
#define MSG_LOAD_EPROM "Carica da EEPROM"
#define MSG_RESTORE_FAILSAFE "Impostaz. default"
...
...
@@ -153,7 +153,7 @@
#define MSG_BABYSTEP_X "Babystep X"
#define MSG_BABYSTEP_Y "Babystep Y"
#define MSG_BABYSTEP_Z "Babystep Z"
#define MSG_ENDSTOP_ABORT "
Endstop
abort"
#define MSG_ENDSTOP_ABORT "
Finecorsa
abort"
#define MSG_RECTRACT "Ritrai"
...
...
MarlinKimbra/pins.h
View file @
aedb4d4e
...
...
@@ -656,12 +656,12 @@
#endif
#if MB(RAMPS_13_EFB) || MB(RAMPS_13_EFF) || MB(AZTEEG_X3) || MB(AZTEEG_X3_PRO)
#define ORIG_FAN_PIN 9 //
9
(Sprinter config)
#define ORIG_FAN_PIN 9 // (Sprinter config)
#else
#define ORIG_FAN_PIN 4 // IO pin. Buffer needed
#endif
#if MB(3DRAG) || MB(RAMPS_13_EEF)
#if MB(3DRAG) || MB(
K8200) || MB(
RAMPS_13_EEF)
#define ORIG_FAN_PIN 8
#endif
...
...
@@ -690,7 +690,7 @@
#endif
#if MB(3DRAG)
#if MB(3DRAG)
|| MB(K8200)
#define ORIG_HEATER_0_PIN 10
#define ORIG_HEATER_1_PIN 12
#define ORIG_HEATER_2_PIN 6
...
...
@@ -720,7 +720,7 @@
#if MB(RAMPS_13_EFF) || MB(RAMPS_13_EEF)
#define ORIG_HEATER_BED_PIN -1 // NO BED
#else
#if MB(3DRAG)
#if MB(3DRAG)
|| MB(K8200)
#define ORIG_HEATER_BED_PIN 9 // BED
#else
#define ORIG_HEATER_BED_PIN 8 // BED
...
...
@@ -813,7 +813,7 @@
#endif
#if MB(3DRAG)
#if MB(3DRAG)
|| MB(K8200)
#define BEEPER -1
#define LCD_PINS_RS 27
...
...
@@ -895,7 +895,7 @@
#define ORIG_TEMP_2_PIN -1
#define ORIG_TEMP_BED_PIN 1 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
#endif // RAMPS_13_EFB || RAMPS_13_EEB || RAMPS_13_EFF || 3DRAG
#endif // RAMPS_13_EFB || RAMPS_13_EEB || RAMPS_13_EFF || 3DRAG
|| K8200
// SPI for Max6675 Thermocouple
...
...
@@ -909,7 +909,7 @@
#define MAX6675_SS 66// Do not use pin 49 as this is tied to the switch inside the SD card socket to detect if there is an SD card present
#endif
#endif // RAMPS_OLD || RAMPS_13_EFB || RAMPS_13_EEB || RAMPS_13_EFF || 3DRAG
#endif // RAMPS_OLD || RAMPS_13_EFB || RAMPS_13_EEB || RAMPS_13_EFF || 3DRAG
|| K8200
/****************************************************************************************
* Duemilanove w/ ATMega328P pin assignment
...
...
@@ -3204,4 +3204,4 @@ DaveX plan for Teensylu/printrboard-type pinouts (ref teensylu & sprinter) for a
HEATER_BED_PIN, FAN_PIN, \
_E0_PINS _E1_PINS _E2_PINS _E3_PINS \
analogInputToDigitalPin(TEMP_0_PIN), analogInputToDigitalPin(TEMP_1_PIN), analogInputToDigitalPin(TEMP_2_PIN), analogInputToDigitalPin(TEMP_3_PIN), analogInputToDigitalPin(TEMP_BED_PIN) }
#endif
#endif
//__PINS_H
MarlinKimbra/stepper.cpp
View file @
aedb4d4e
...
...
@@ -299,12 +299,6 @@ void st_wake_up() {
ENABLE_STEPPER_DRIVER_INTERRUPT
();
}
void
step_wait
(){
for
(
int8_t
i
=
0
;
i
<
6
;
i
++
){
}
}
FORCE_INLINE
unsigned
short
calc_timer
(
unsigned
short
step_rate
)
{
unsigned
short
timer
;
if
(
step_rate
>
MAX_STEP_FREQUENCY
)
step_rate
=
MAX_STEP_FREQUENCY
;
...
...
@@ -1107,7 +1101,7 @@ void st_init()
WRITE
(
E3_STEP_PIN
,
INVERT_E_STEP_PIN
);
disable_e3
();
#endif
// waveform generation = 0100 = CTC
TCCR1B
&=
~
(
1
<<
WGM13
);
TCCR1B
|=
(
1
<<
WGM12
);
...
...
@@ -1249,9 +1243,9 @@ void babystep(const uint8_t axis,const bool direction)
#ifdef DUAL_X_CARRIAGE
WRITE
(
X2_STEP_PIN
,
!
INVERT_X_STEP_PIN
);
#endif
{
float
x
=
1.
/
float
(
axis
+
1
)
/
float
(
axis
+
2
);
//wait a tiny bit
}
_delay_us
(
1U
);
// wait 1 microsecond
WRITE
(
X_STEP_PIN
,
INVERT_X_STEP_PIN
);
#ifdef DUAL_X_CARRIAGE
WRITE
(
X2_STEP_PIN
,
INVERT_X_STEP_PIN
);
...
...
@@ -1281,9 +1275,9 @@ void babystep(const uint8_t axis,const bool direction)
#ifdef DUAL_Y_CARRIAGE
WRITE
(
Y2_STEP_PIN
,
!
INVERT_Y_STEP_PIN
);
#endif
{
float
x
=
1.
/
float
(
axis
+
1
)
/
float
(
axis
+
2
);
//wait a tiny bit
}
_delay_us
(
1U
);
// wait 1 microsecond
WRITE
(
Y_STEP_PIN
,
INVERT_Y_STEP_PIN
);
#ifdef DUAL_Y_CARRIAGE
WRITE
(
Y2_STEP_PIN
,
INVERT_Y_STEP_PIN
);
...
...
@@ -1313,10 +1307,9 @@ void babystep(const uint8_t axis,const bool direction)
#ifdef Z_DUAL_STEPPER_DRIVERS
WRITE
(
Z2_STEP_PIN
,
!
INVERT_Z_STEP_PIN
);
#endif
//wait a tiny bit
{
float
x
=
1.
/
float
(
axis
+
1
);
//absolutely useless
}
_delay_us
(
1U
);
// wait 1 microsecond
WRITE
(
Z_STEP_PIN
,
INVERT_Z_STEP_PIN
);
#ifdef Z_DUAL_STEPPER_DRIVERS
WRITE
(
Z2_STEP_PIN
,
INVERT_Z_STEP_PIN
);
...
...
@@ -1349,10 +1342,8 @@ void babystep(const uint8_t axis,const bool direction)
WRITE
(
Y_STEP_PIN
,
!
INVERT_Y_STEP_PIN
);
WRITE
(
Z_STEP_PIN
,
!
INVERT_Z_STEP_PIN
);
//wait a tiny bit
{
float
x
=
1.
/
float
(
axis
+
1
);
//absolutely useless
}
_delay_us
(
1U
);
// wait 1 microsecond
WRITE
(
X_STEP_PIN
,
INVERT_X_STEP_PIN
);
WRITE
(
Y_STEP_PIN
,
INVERT_Y_STEP_PIN
);
WRITE
(
Z_STEP_PIN
,
INVERT_Z_STEP_PIN
);
...
...
MarlinKimbra/temperature.cpp
View file @
aedb4d4e
This diff is collapsed.
Click to expand it.
MarlinKimbra/temperature.h
View file @
aedb4d4e
...
...
@@ -211,8 +211,8 @@ static int thermal_runaway_state_machine[4]; // = {0,0,0,0};
static
unsigned
long
thermal_runaway_timer
[
4
];
// = {0,0,0,0};
static
bool
thermal_runaway
=
false
;
#if TEMP_SENSOR_BED != 0
static
int
thermal_runaway_bed_state_machine
;
static
unsigned
long
thermal_runaway_bed_timer
;
static
int
thermal_runaway_bed_state_machine
;
static
unsigned
long
thermal_runaway_bed_timer
;
#endif
#endif
...
...
@@ -233,4 +233,3 @@ void setExtruderAutoFanState(int pin, bool state);
void
checkExtruderAutoFans
();
#endif
MarlinKimbra/ultralcd.cpp
View file @
aedb4d4e
...
...
@@ -1160,9 +1160,9 @@ static void lcd_control_volumetric_menu()
MENU_ITEM_EDIT_CALLBACK
(
float43
,
MSG_FILAMENT_SIZE_EXTRUDER_2
,
&
filament_size
[
2
],
DEFAULT_NOMINAL_FILAMENT_DIA
-
.5
,
DEFAULT_NOMINAL_FILAMENT_DIA
+
.5
,
calculate_volumetric_multipliers
);
#if EXTRUDERS > 3
MENU_ITEM_EDIT_CALLBACK
(
float43
,
MSG_FILAMENT_SIZE_EXTRUDER_3
,
&
filament_size
[
3
],
DEFAULT_NOMINAL_FILAMENT_DIA
-
.5
,
DEFAULT_NOMINAL_FILAMENT_DIA
+
.5
,
calculate_volumetric_multipliers
);
#endif
#endif
#endif
#endif
//EXTRUDERS > 3
#endif
//EXTRUDERS > 2
#endif
//EXTRUDERS > 1
}
END_MENU
();
...
...
MarlinKimbra/ultralcd.h
View file @
aedb4d4e
...
...
@@ -50,9 +50,9 @@
extern
bool
cancel_heatup
;
#ifdef FILAMENT_LCD_DISPLAY
#ifdef FILAMENT_LCD_DISPLAY
extern
unsigned
long
message_millis
;
#endif
#endif
void
lcd_buzz
(
long
duration
,
uint16_t
freq
);
bool
lcd_clicked
();
...
...
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