Skip to content

Commit 62df65b

Browse files
committed
Add laser engraving feature for Anycubic Mega Pro
- Enable integrated laser engraving in Configuration.h - Update laser feature parameters in Configuration_adv.h - Modify Version.h to reflect version 1.5.6 and new distribution date - Implement laser initialization and command handling in anycubic_touchscreen.cpp - Add support for BMP file handling in cardreader.cpp - Define laser parameters and structures in anycubic_touchscreen.h
1 parent 5c54897 commit 62df65b

File tree

6 files changed

+610
-198
lines changed

6 files changed

+610
-198
lines changed

Marlin/Configuration.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,14 @@
6363
#endif
6464

6565
/*
66-
* This enables the integrated Laser engaving feature
66+
* This enables the integrated Laser engraving feature
6767
* in the anycubic touchscreen. It's currently only
68-
* supported by the Anycubic MEGA Pro and therefore it
69-
* is automatically set if the MEGA_P is enabled.
68+
* supported by the Anycubic MEGA Pro.
7069
*
70+
* Uncomment the following line to enable laser support:
7171
*/
7272
#if ENABLED(KNUTWURST_MEGA_P)
73-
// #define KNUTWURST_MEGA_P_LASER
73+
#define KNUTWURST_MEGA_P_LASER
7474
#endif
7575

7676
/*

Marlin/Configuration_adv.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3437,11 +3437,17 @@
34373437
*/
34383438
// #define SPINDLE_FEATURE
34393439

3440-
#if ENABLED(KNUTWURST_MEGA_P)
3440+
#if ENABLED(KNUTWURST_MEGA_P_LASER)
34413441
#define LASER_FEATURE
34423442

34433443
#define SPINDLE_LASER_ENA_PIN 40 // D40 should be unused. The laser is only connected to the PWM output.
34443444
#define SPINDLE_LASER_PWM_PIN HEATER_0_PIN
3445+
3446+
// Anycubic TFT laser feature.
3447+
#define MAX_X_SIZE 220
3448+
#define MAX_Y_SIZE 150
3449+
#define LASER_X_OFFSET 0 // The distance in the X direction between the laser and the extruder.
3450+
#define LASER_Y_OFFSET 65 // The distance in the Y direction between the laser and the extruder.
34453451
#endif
34463452

34473453
#if EITHER(SPINDLE_FEATURE, LASER_FEATURE)

Marlin/src/inc/Version.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@
4141
* here we define this default string as the date where the latest release
4242
* version was tagged.
4343
*/
44-
#define CUSTOM_BUILD_VERSION "1.5.5"
44+
#define CUSTOM_BUILD_VERSION "1.5.6"
4545

4646
#ifndef STRING_DISTRIBUTION_DATE
47-
#define STRING_DISTRIBUTION_DATE "2026-01-24"
47+
#define STRING_DISTRIBUTION_DATE "2026-02-01"
4848
#endif
4949

5050
/**

0 commit comments

Comments
 (0)