update code base to Marlin 2.0.9.2
This commit is contained in:
48
Marlin/src/pins/mega/pins_MEGATRONICS_3.h
Executable file → Normal file
48
Marlin/src/pins/mega/pins_MEGATRONICS_3.h
Executable file → Normal file
@@ -16,7 +16,7 @@
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
@@ -25,9 +25,7 @@
|
||||
* MegaTronics v3.0 / v3.1 / v3.2 pin assignments
|
||||
*/
|
||||
|
||||
#ifndef __AVR_ATmega2560__
|
||||
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
||||
#endif
|
||||
#include "env_validate.h"
|
||||
|
||||
#if MB(MEGATRONICS_32)
|
||||
#define BOARD_INFO_NAME "Megatronics v3.2"
|
||||
@@ -69,9 +67,19 @@
|
||||
#define X_DIR_PIN 57
|
||||
#define X_ENABLE_PIN 59
|
||||
|
||||
#define Y_STEP_PIN 5
|
||||
#define Y_DIR_PIN 17
|
||||
#define Y_ENABLE_PIN 4
|
||||
#if ENABLED(REPRAPWORLD_KEYPAD) && EXTRUDERS <= 2
|
||||
#define Y_ENABLE_PIN 23
|
||||
#define Y_STEP_PIN 22
|
||||
#define Y_DIR_PIN 60
|
||||
#else
|
||||
#define Y_STEP_PIN 5
|
||||
#define Y_DIR_PIN 17
|
||||
#define Y_ENABLE_PIN 4
|
||||
|
||||
#define E2_STEP_PIN 22
|
||||
#define E2_DIR_PIN 60
|
||||
#define E2_ENABLE_PIN 23
|
||||
#endif
|
||||
|
||||
#define Z_STEP_PIN 16
|
||||
#define Z_DIR_PIN 11
|
||||
@@ -85,10 +93,6 @@
|
||||
#define E1_DIR_PIN 24
|
||||
#define E1_ENABLE_PIN 26
|
||||
|
||||
#define E2_STEP_PIN 22
|
||||
#define E2_DIR_PIN 60
|
||||
#define E2_ENABLE_PIN 23
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
@@ -132,7 +136,10 @@
|
||||
#define SDSS 53
|
||||
#define LED_PIN 13
|
||||
#define PS_ON_PIN 12
|
||||
#define CASE_LIGHT_PIN 45 // Try the keypad connector
|
||||
|
||||
#ifndef CASE_LIGHT_PIN
|
||||
#define CASE_LIGHT_PIN 45 // Try the keypad connector
|
||||
#endif
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
@@ -159,10 +166,10 @@
|
||||
#define LCD_PINS_D6 39
|
||||
#define LCD_PINS_D7 15
|
||||
|
||||
#define SHIFT_CLK 43
|
||||
#define SHIFT_LD 35
|
||||
#define SHIFT_OUT 34
|
||||
#define SHIFT_EN 44
|
||||
#define SHIFT_CLK_PIN 43
|
||||
#define SHIFT_LD_PIN 35
|
||||
#define SHIFT_OUT_PIN 34
|
||||
#define SHIFT_EN_PIN 44
|
||||
|
||||
#if MB(MEGATRONICS_31, MEGATRONICS_32)
|
||||
#define SD_DETECT_PIN 56
|
||||
@@ -180,15 +187,6 @@
|
||||
#elif EXTRUDERS <= 2
|
||||
// Hijack the last extruder so that we can get the PWM signal off the Y breakout
|
||||
// Move Y to the E2 plug. This makes dual Y steppers harder
|
||||
#undef Y_ENABLE_PIN // 4
|
||||
#undef Y_STEP_PIN // 5
|
||||
#undef Y_DIR_PIN // 17
|
||||
#undef E2_ENABLE_PIN // 23
|
||||
#undef E2_STEP_PIN // 22
|
||||
#undef E2_DIR_PIN // 60
|
||||
#define Y_ENABLE_PIN 23
|
||||
#define Y_STEP_PIN 22
|
||||
#define Y_DIR_PIN 60
|
||||
#define SPINDLE_LASER_PWM_PIN 4 // Hardware PWM
|
||||
#define SPINDLE_LASER_ENA_PIN 17 // Pullup!
|
||||
#define SPINDLE_DIR_PIN 5
|
||||
|
Reference in New Issue
Block a user