Skip to content

Commit 9a6bf16

Browse files
committed
🚸 Some default filament runout pins
1 parent c173ecd commit 9a6bf16

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

Marlin/src/pins/mega/pins_HJC2560C_REV2.h

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#pragma once
2323

2424
/**
25-
* Geeetech HJC2560-C Rev 2.x board pin assignments
25+
* Geeetech HJC2560-C Rev 1.x and 2.x board pin assignments
2626
* ATmega2560
2727
*/
2828

@@ -78,6 +78,13 @@
7878
#endif
7979
#define DEFAULT_PWM_MOTOR_CURRENT { 1300, 1300, 1250 }
8080

81+
//
82+
// Filament Runout Sensor
83+
//
84+
#ifndef FIL_RUNOUT_PIN
85+
#define FIL_RUNOUT_PIN 24 // Filament runout
86+
#endif
87+
8188
//
8289
// Temperature Sensors
8390
//
@@ -138,9 +145,6 @@
138145
//#ifndef LCD_CONTRAST_PIN
139146
// #define LCD_CONTRAST_PIN 5 // LCD_Contrast
140147
//#endif
141-
#ifndef FIL_RUNOUT_PIN
142-
#define FIL_RUNOUT_PIN 24 // Filament runout
143-
#endif
144148
#else
145149
#define LCD_PINS_D5 21
146150
#define LCD_PINS_D6 5

Marlin/src/pins/ramps/pins_ULTIMAIN_2.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,16 @@
8989
#endif
9090
#define DEFAULT_PWM_MOTOR_CURRENT {1300, 1300, 1250}
9191

92+
//
93+
// Filament Runout Sensor
94+
//
95+
#ifndef FIL_RUNOUT_PIN
96+
#define FIL_RUNOUT_PIN 54 // ADC0
97+
#endif
98+
#ifndef FIL_RUNOUT2_PIN
99+
#define FIL_RUNOUT2_PIN 55 // ADC1
100+
#endif
101+
92102
//
93103
// Temperature Sensors
94104
//

0 commit comments

Comments
 (0)