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 <http://www.gnu.org/licenses/>.
Th#pragma once
// 关闭 clang 格式
/*
3axis_v4.h Grbl_ESP32
的一部分
*/
#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_27
#define Y_DIRECTION_PIN GPIO_NUM_26
#define Z_STEP_PIN GPIO_NUM_25
#define Z_DIRECTION_PIN GPIO_NUM_33
#define X_LIMIT_PIN GPIO_NUM_2
#define Y_LIMIT_PIN GPIO_NUM_4
#define Z_LIMIT_PIN GPIO_NUM_15
// 可以注释掉以将 pin 用于其他功能
#define STEPPERS_DISABLE_PIN GPIO_NUM_13
#define SPINDLE_TYPE SpindleType::PWM
#define SPINDLE_OUTPUT_PIN GPIO_NUM_17 // 标记为 SpinPWM
#define SPINDLE_ENABLE_PIN GPIO_NUM_22 // 标记为 SpinEnbl
#define COOLANT_MIST_PIN GPIO_NUM_21 // 标记为 Mist
#define COOLANT_FLOOD_PIN GPIO_NUM_16 // 标记为 Flood
#define PROBE_PIN GPIO_NUM_32 // 标记为 Probe
//#define CONTROL_SAFETY_DOOR_PIN GPIO_NUM_35 //标记为Door,需要 外部
上 拉