From bbd5f47187be48d0f41aff705971e4f72cdb0ea8 Mon Sep 17 00:00:00 2001 From: Dirk Moeller Date: Mon, 22 Jun 2020 21:42:42 +0200 Subject: [PATCH] update configuration.h --- Marlin/Configuration_adv.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Marlin/Configuration_adv.h b/Marlin/Configuration_adv.h index ee6223ab39..2ff73a28ab 100644 --- a/Marlin/Configuration_adv.h +++ b/Marlin/Configuration_adv.h @@ -3210,15 +3210,35 @@ #define USER_DESC_2 "Preheat for " PREHEAT_1_LABEL #define USER_GCODE_2 "M140 S" STRINGIFY(PREHEAT_1_TEMP_BED) "\nM104 S" STRINGIFY(PREHEAT_1_TEMP_HOTEND) + //#define USER_GCODE_PIN_2 -1 // PIN assigned to trigger USER_GCODE_2 execution + #ifdef USER_GCODE_PIN_2 + #define USER_GCODE_PIN_INIT_2 // Init the PIN state at reboot + #define USER_GCODE_PIN_STATE_2 LOW // What state should trigger USER_GCODE_2 execution (LOW or HIGH) + #endif #define USER_DESC_3 "Preheat for " PREHEAT_2_LABEL #define USER_GCODE_3 "M140 S" STRINGIFY(PREHEAT_2_TEMP_BED) "\nM104 S" STRINGIFY(PREHEAT_2_TEMP_HOTEND) + //#define USER_GCODE_PIN_3 -1 // PIN assigned to trigger USER_GCODE_3 execution + #ifdef USER_GCODE_PIN_3 + #define USER_GCODE_PIN_INIT_3 // Init the PIN state at reboot + #define USER_GCODE_PIN_STATE_3 LOW // What state should trigger USER_GCODE_3 execution (LOW or HIGH) + #endif #define USER_DESC_4 "Heat Bed/Home/Level" #define USER_GCODE_4 "M140 S" STRINGIFY(PREHEAT_2_TEMP_BED) "\nG28\nG29" + //#define USER_GCODE_PIN_4 -1 // PIN assigned to trigger USER_GCODE_4 execution + #ifdef USER_GCODE_PIN_4 + #define USER_GCODE_PIN_INIT_4 // Init the PIN state at reboot + #define USER_GCODE_PIN_STATE_4 LOW // What state should trigger USER_GCODE_4 execution (LOW or HIGH) + #endif #define USER_DESC_5 "Home & Info" #define USER_GCODE_5 "G28\nM503" + //#define USER_GCODE_PIN_5 -1 // PIN assigned to trigger USER_GCODE_5 execution + #ifdef USER_GCODE_PIN_5 + #define USER_GCODE_PIN_INIT_5 // Init the PIN state at reboot + #define USER_GCODE_PIN_STATE_5 LOW // What state should trigger USER_GCODE_5 execution (LOW or HIGH) + #endif #endif /**