Skip to content

Commit cd357b0

Browse files
hm2devthinkyhead
andauthored
🔧🚸 Tweaks for (MiniRambo) CNC (MarlinFirmware#26892)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
1 parent d0d229e commit cd357b0

File tree

5 files changed

+59
-13
lines changed

5 files changed

+59
-13
lines changed

Marlin/Configuration.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -2636,9 +2636,9 @@
26362636
#define DISPLAY_CHARSET_HD44780 JAPANESE
26372637

26382638
/**
2639-
* Info Screen Style (0:Classic, 1:Průša)
2639+
* Info Screen Style (0:Classic, 1:Průša, 2:CNC)
26402640
*
2641-
* :[0:'Classic', 1:'Průša']
2641+
* :[0:'Classic', 1:'Průša', 2:'CNC']
26422642
*/
26432643
#define LCD_INFO_SCREEN_STYLE 0
26442644

Marlin/src/gcode/feature/digipot/M907-M910.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,9 @@ void GcodeSuite::M907() {
133133
SERIAL_ECHOLNPGM_P( // PWM-based has 3 values:
134134
PSTR(" M907 X"), stepper.motor_current_setting[0] // X, Y, (I, J, K, U, V, W)
135135
, SP_Z_STR, stepper.motor_current_setting[1] // Z
136-
, SP_E_STR, stepper.motor_current_setting[2] // E
136+
#if PIN_EXISTS(MOTOR_CURRENT_PWM_E)
137+
, SP_E_STR, stepper.motor_current_setting[2] // E
138+
#endif
137139
);
138140
#elif HAS_MOTOR_CURRENT_SPI
139141
SERIAL_ECHOPGM(" M907"); // SPI-based has 5 values:

Marlin/src/inc/SanityCheck.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -345,8 +345,8 @@ static_assert(COUNT(arm) == LOGICAL_AXES, "AXIS_RELATIVE_MODES must contain " _L
345345
#if LCD_INFO_SCREEN_STYLE > 0
346346
#if HAS_MARLINUI_U8GLIB || LCD_WIDTH < 20 || LCD_HEIGHT < 4
347347
#error "Alternative LCD_INFO_SCREEN_STYLE requires 20x4 Character LCD."
348-
#elif LCD_INFO_SCREEN_STYLE > 1
349-
#error "LCD_INFO_SCREEN_STYLE only has options 0 and 1 at this time."
348+
#elif LCD_INFO_SCREEN_STYLE > 2
349+
#error "LCD_INFO_SCREEN_STYLE only has options 0 (Classic), 1 (Průša), and 2 (CNC)."
350350
#endif
351351
#endif
352352

Marlin/src/lcd/HD44780/marlinui_HD44780.cpp

+33-1
Original file line numberDiff line numberDiff line change
@@ -1139,7 +1139,39 @@ void MarlinUI::draw_status_screen() {
11391139
TERN_(SHOW_PROGRESS_PERCENT, setPercentPos(LCD_WIDTH - 9, 2));
11401140
rotate_progress();
11411141
#endif
1142-
#endif // LCD_INFO_SCREEN_STYLE 1
1142+
1143+
#elif LCD_INFO_SCREEN_STYLE == 2
1144+
1145+
// ========== Line 1 ==========
1146+
1147+
//
1148+
// X Coordinate
1149+
//
1150+
lcd_moveto(0, 0);
1151+
_draw_axis_value(X_AXIS, ftostr52sp(LOGICAL_X_POSITION(current_position.x)), blink);
1152+
1153+
//
1154+
// Y Coordinate
1155+
//
1156+
lcd_moveto(LCD_WIDTH - 9, 0);
1157+
_draw_axis_value(Y_AXIS, ftostr52sp(LOGICAL_Y_POSITION(current_position.y)), blink);
1158+
1159+
// ========== Line 2 ==========
1160+
lcd_moveto(0, 1);
1161+
_draw_axis_value(Z_AXIS, ftostr52sp(LOGICAL_Z_POSITION(current_position.z)), blink);
1162+
1163+
lcd_moveto(LCD_WIDTH - 9, 1);
1164+
_draw_axis_value(I_AXIS, ftostr52sp(LOGICAL_I_POSITION(current_position.i)), blink);
1165+
1166+
// ========== Line 3 ==========
1167+
lcd_moveto(0, 2);
1168+
lcd_put_lchar('F');
1169+
1170+
lcd_moveto(LCD_WIDTH - 9, 2);
1171+
lcd_put_lchar('S');
1172+
1173+
1174+
#endif // LCD_INFO_SCREEN_STYLE
11431175

11441176
// ========= Last Line ========
11451177

Marlin/src/pins/rambo/pins_MINIRAMBO.h

+19-7
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,12 @@
3131

3232
#include "env_validate.h"
3333

34-
#if MB(MINIRAMBO_10A)
35-
#define BOARD_INFO_NAME "Mini RAMBo 1.0a"
36-
#else
37-
#define BOARD_INFO_NAME "Mini RAMBo"
34+
#ifndef BOARD_INFO_NAME
35+
#if MB(MINIRAMBO_10A)
36+
#define BOARD_INFO_NAME "Mini RAMBo 1.0a"
37+
#else
38+
#define BOARD_INFO_NAME "Mini RAMBo"
39+
#endif
3840
#endif
3941

4042
//
@@ -47,6 +49,10 @@
4749
#define Z_MIN_PIN 10
4850
#define Z_MAX_PIN 23
4951

52+
#if HAS_I_AXIS
53+
#define I_STOP_PIN 30 // X_MAX (for now)
54+
#endif
55+
5056
//
5157
// Z Probe (when not Z_MIN_PIN)
5258
//
@@ -128,9 +134,15 @@
128134
//
129135
#if HAS_CUTTER
130136
// Use P1 connector for spindle pins
131-
#define SPINDLE_LASER_PWM_PIN 9 // Hardware PWM
132-
#define SPINDLE_LASER_ENA_PIN 18 // Pullup!
133-
#define SPINDLE_DIR_PIN 19
137+
#ifndef SPINDLE_LASER_PWM_PIN
138+
#define SPINDLE_LASER_PWM_PIN 9 // Hardware PWM
139+
#endif
140+
#ifndef SPINDLE_LASER_ENA_PIN
141+
#define SPINDLE_LASER_ENA_PIN 18 // Pullup!
142+
#endif
143+
#ifndef SPINDLE_DIR_PIN
144+
#define SPINDLE_DIR_PIN 19
145+
#endif
134146
#endif
135147

136148
//

0 commit comments

Comments
 (0)