From 284a5d7bdd366f89866f029cbacdc8493a1a285c Mon Sep 17 00:00:00 2001 From: Mitch Bradley Date: Fri, 10 Dec 2021 10:31:20 -1000 Subject: [PATCH] Added message and User.h file as placeholder for action --- Grbl_Esp32/src/Machines/User.h | 61 ++++++++++++++++++++++++++++++++++ converter.py | 1 + 2 files changed, 62 insertions(+) create mode 100644 Grbl_Esp32/src/Machines/User.h diff --git a/Grbl_Esp32/src/Machines/User.h b/Grbl_Esp32/src/Machines/User.h new file mode 100644 index 00000000..7b817180 --- /dev/null +++ b/Grbl_Esp32/src/Machines/User.h @@ -0,0 +1,61 @@ +#pragma once +// clang-format off + +/* + 3axis_v4.h + Part of Grbl_ESP32 + + Pin assignments for the ESP32 Development Controller, v4.1 and later. + https://github.com/bdring/Grbl_ESP32_Development_Controller + https://www.tindie.com/products/33366583/grbl_esp32-cnc-development-board-v35/ + + 2018 - Bart Dring + 2020 - Mitch Bradley + + Grbl_ESP32 is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + Grbl is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with Grbl_ESP32. If not, see . +*/ + +#define MACHINE_NAME "ESP32_V4" + +#define X_STEP_PIN GPIO_NUM_12 +#define X_DIRECTION_PIN GPIO_NUM_14 +#define Y_STEP_PIN GPIO_NUM_26 +#define Y_DIRECTION_PIN GPIO_NUM_15 +#define Z_STEP_PIN GPIO_NUM_27 +#define Z_DIRECTION_PIN GPIO_NUM_33 + +#define X_LIMIT_PIN GPIO_NUM_17 +#define Y_LIMIT_PIN GPIO_NUM_4 +#define Z_LIMIT_PIN GPIO_NUM_16 + + +// OK to comment out to use pin for other features +#define STEPPERS_DISABLE_PIN GPIO_NUM_13 + +#define SPINDLE_TYPE SpindleType::PWM +#define SPINDLE_OUTPUT_PIN GPIO_NUM_2 // labeled SpinPWM +#define SPINDLE_ENABLE_PIN GPIO_NUM_22 // labeled SpinEnbl + +#define COOLANT_MIST_PIN GPIO_NUM_21 // labeled Mist +#define COOLANT_FLOOD_PIN GPIO_NUM_25 // labeled Flood +#define PROBE_PIN GPIO_NUM_32 // labeled Probe + + +/* +#define CONTROL_SAFETY_DOOR_PIN GPIO_NUM_35 // labeled Door, needs external pullup +#define CONTROL_RESET_PIN GPIO_NUM_34 // labeled Reset, needs external pullup +#define CONTROL_FEED_HOLD_PIN GPIO_NUM_36 // labeled Hold, needs external pullup +#define CONTROL_CYCLE_START_PIN GPIO_NUM_39 // labeled Start, needs external pullup +*/ + diff --git a/converter.py b/converter.py index 78ad5fab..8a00a506 100644 --- a/converter.py +++ b/converter.py @@ -35,6 +35,7 @@ def convertMachine(baseName, verbose=True, extraArgs=None): out_filename = "yaml/" + Path(baseName).stem + ".yaml" app = subprocess.Popen(cmd, env=env, stdout=open(out_filename, "w"), stderr=subprocess.STDOUT, bufsize=1) app.wait() + print("FluidNC Configuration written to", out_filename) return app.returncode else: out_filename = "yaml/" + Path(baseName).stem + ".ERROR"