Move pins files to subfolders #14573
This commit is contained in:
80
Marlin/src/pins/mega/pins_CHEAPTRONIC.h
Normal file
80
Marlin/src/pins/mega/pins_CHEAPTRONIC.h
Normal file
@ -0,0 +1,80 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program 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.
|
||||
*
|
||||
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
/**
|
||||
* Cheaptronic v1.0 pin assignments
|
||||
*/
|
||||
|
||||
#ifndef __AVR_ATmega2560__
|
||||
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
||||
#endif
|
||||
|
||||
#define BOARD_NAME "Cheaptronic v1.0"
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_STOP_PIN 3
|
||||
#define Y_STOP_PIN 2
|
||||
#define Z_STOP_PIN 5
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_STEP_PIN 14
|
||||
#define X_DIR_PIN 15
|
||||
#define X_ENABLE_PIN 24
|
||||
|
||||
#define Y_STEP_PIN 35
|
||||
#define Y_DIR_PIN 36
|
||||
#define Y_ENABLE_PIN 31
|
||||
|
||||
#define Z_STEP_PIN 40
|
||||
#define Z_DIR_PIN 41
|
||||
#define Z_ENABLE_PIN 37
|
||||
|
||||
#define E0_STEP_PIN 26
|
||||
#define E0_DIR_PIN 28
|
||||
#define E0_ENABLE_PIN 25
|
||||
|
||||
#define E1_STEP_PIN 33
|
||||
#define E1_DIR_PIN 34
|
||||
#define E1_ENABLE_PIN 30
|
||||
|
||||
//
|
||||
// Temperature sensors
|
||||
//
|
||||
#define TEMP_0_PIN 15 // Analog Input
|
||||
#define TEMP_1_PIN 14 // Analog Input
|
||||
#define TEMP_BED_PIN 13 // Analog Input
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN 19 // EXTRUDER 1
|
||||
#define HEATER_1_PIN 23 // EXTRUDER 2
|
||||
#define HEATER_BED_PIN 22
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
// Cheaptronic v1.0 doesn't support LCD
|
137
Marlin/src/pins/mega/pins_CHEAPTRONICv2.h
Normal file
137
Marlin/src/pins/mega/pins_CHEAPTRONICv2.h
Normal file
@ -0,0 +1,137 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program 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.
|
||||
*
|
||||
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
/**
|
||||
* Cheaptronic v2.0 pin assignments
|
||||
* Built and sold by Michal Dyntar - RRO
|
||||
* www.reprapobchod.cz
|
||||
*/
|
||||
|
||||
#ifndef __AVR_ATmega2560__
|
||||
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
||||
#endif
|
||||
|
||||
#define BOARD_NAME "Cheaptronic v2.0"
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_MIN_PIN 30
|
||||
#define X_MAX_PIN 31
|
||||
#define Y_MIN_PIN 32
|
||||
#define Y_MAX_PIN 33
|
||||
#define Z_MIN_PIN 34
|
||||
#define Z_MAX_PIN 35
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_STEP_PIN 17
|
||||
#define X_DIR_PIN 16
|
||||
#define X_ENABLE_PIN 48
|
||||
|
||||
#define Y_STEP_PIN 54
|
||||
#define Y_DIR_PIN 47
|
||||
#define Y_ENABLE_PIN 55
|
||||
|
||||
#define Z_STEP_PIN 57
|
||||
#define Z_DIR_PIN 56
|
||||
#define Z_ENABLE_PIN 62
|
||||
|
||||
#define E0_STEP_PIN 23
|
||||
#define E0_DIR_PIN 22
|
||||
#define E0_ENABLE_PIN 24
|
||||
|
||||
#define E1_STEP_PIN 26
|
||||
#define E1_DIR_PIN 25
|
||||
#define E1_ENABLE_PIN 27
|
||||
|
||||
#define E2_STEP_PIN 29
|
||||
#define E2_DIR_PIN 28
|
||||
#define E2_ENABLE_PIN 39
|
||||
|
||||
//
|
||||
// Temperature sensors
|
||||
//
|
||||
#define TEMP_0_PIN 15
|
||||
#define TEMP_1_PIN 13
|
||||
#define TEMP_2_PIN 14
|
||||
#define TEMP_3_PIN 11 // should be used for chamber temperature control
|
||||
#define TEMP_BED_PIN 12
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN 6
|
||||
#define HEATER_1_PIN 7
|
||||
#define HEATER_2_PIN 8
|
||||
#define HEATER_BED_PIN 9
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN 3
|
||||
#endif
|
||||
#define FAN2_PIN 58 // additional fan or light control output
|
||||
|
||||
//
|
||||
// Other board specific pins
|
||||
//
|
||||
#ifndef FIL_RUNOUT_PIN
|
||||
#define FIL_RUNOUT_PIN 37 // board input labeled as F-DET
|
||||
#endif
|
||||
#define Z_MIN_PROBE_PIN 36 // additional external board input labeled as E-SENS (should be used for Z-probe)
|
||||
#define LED_PIN 13
|
||||
#define SPINDLE_ENABLE_PIN 4 // additional PWM pin 1 at JP1 connector - should be used for laser control too
|
||||
#define EXT_2 5 // additional PWM pin 2 at JP1 connector
|
||||
#define EXT_3 2 // additional PWM pin 3 at JP1 connector
|
||||
#define PS_ON_PIN 45
|
||||
#define KILL_PIN 46
|
||||
|
||||
#ifndef FILWIDTH_PIN
|
||||
#define FILWIDTH_PIN 11 // shared with TEMP_3 analog input
|
||||
#endif
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
#define LCD_PINS_RS 19
|
||||
#define LCD_PINS_ENABLE 42
|
||||
#define LCD_PINS_D4 18
|
||||
#define LCD_PINS_D5 38
|
||||
#define LCD_PINS_D6 41
|
||||
#define LCD_PINS_D7 40
|
||||
|
||||
//
|
||||
// Beeper, SD Card, Encoder
|
||||
//
|
||||
#define BEEPER_PIN 44
|
||||
|
||||
#if ENABLED(SDSUPPORT)
|
||||
#define SDPOWER -1
|
||||
#define SDSS 53
|
||||
#define SD_DETECT_PIN 49
|
||||
#endif
|
||||
|
||||
#if ENABLED(NEWPANEL)
|
||||
#define BTN_EN1 11
|
||||
#define BTN_EN2 12
|
||||
#define BTN_ENC 43
|
||||
#endif
|
122
Marlin/src/pins/mega/pins_CNCONTROLS_11.h
Normal file
122
Marlin/src/pins/mega/pins_CNCONTROLS_11.h
Normal file
@ -0,0 +1,122 @@
|
||||
/**
|
||||
* CartesioV11 pin assignments
|
||||
*/
|
||||
|
||||
#if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
|
||||
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
||||
#endif
|
||||
|
||||
#define BOARD_NAME "CN Controls V11"
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_STOP_PIN 43
|
||||
#define Y_STOP_PIN 45
|
||||
#define Z_STOP_PIN 42
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_STEP_PIN 34
|
||||
#define X_DIR_PIN 36
|
||||
#define X_ENABLE_PIN 35
|
||||
|
||||
#define Y_STEP_PIN 37
|
||||
#define Y_DIR_PIN 39
|
||||
#define Y_ENABLE_PIN 38
|
||||
|
||||
#define Z_STEP_PIN 40
|
||||
#define Z_DIR_PIN 48
|
||||
#define Z_ENABLE_PIN 41
|
||||
|
||||
#define E0_STEP_PIN 29
|
||||
#define E0_DIR_PIN 28
|
||||
#define E0_ENABLE_PIN 3
|
||||
|
||||
#define E1_STEP_PIN 61
|
||||
#define E1_DIR_PIN 62
|
||||
#define E1_ENABLE_PIN 60
|
||||
|
||||
#define E2_STEP_PIN 15
|
||||
#define E2_DIR_PIN 14
|
||||
#define E2_ENABLE_PIN 16
|
||||
|
||||
#define E3_STEP_PIN 44
|
||||
#define E3_DIR_PIN 49
|
||||
#define E3_ENABLE_PIN 47
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
#define TEMP_0_PIN 0 // Analog Input
|
||||
#define TEMP_1_PIN 3 // Analog Input. 3 for tool2 -> 2 for chambertemp
|
||||
#define TEMP_2_PIN 2 // Analog Input. 9 for tool3 -> 2 for chambertemp
|
||||
#define TEMP_3_PIN 11 // Analog Input. 11 for tool4 -> 2 for chambertemp
|
||||
#define TEMP_BED_PIN 1 // Analog Input
|
||||
//#define TEMP_CHAMBER_PIN 2 // Analog Input
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN 5
|
||||
#define HEATER_1_PIN 58
|
||||
#define HEATER_2_PIN 64
|
||||
#define HEATER_3_PIN 46
|
||||
#define HEATER_BED_PIN 2
|
||||
|
||||
#ifndef FAN_PIN
|
||||
//#define FAN_PIN 7 // common PWM pin for all tools
|
||||
#endif
|
||||
|
||||
#define ORIG_E0_AUTO_FAN_PIN 7
|
||||
#define ORIG_E1_AUTO_FAN_PIN 7
|
||||
#define ORIG_E2_AUTO_FAN_PIN 7
|
||||
#define ORIG_E3_AUTO_FAN_PIN 7
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
#define SDSS 53
|
||||
#define SD_DETECT_PIN 13
|
||||
|
||||
// Tools
|
||||
|
||||
//#define TOOL_0_PIN 4
|
||||
//#define TOOL_1_PIN 59
|
||||
//#define TOOL_2_PIN 8
|
||||
//#define TOOL_3_PIN 30
|
||||
//#define TOOL_PWM_PIN 7 // common PWM pin for all tools
|
||||
|
||||
// Common I/O
|
||||
|
||||
//#define FIL_RUNOUT_PIN -1
|
||||
//#define PWM_1_PIN 11
|
||||
//#define PWM_2_PIN 10
|
||||
//#define SPARE_IO 12
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
#define BEEPER_PIN 6
|
||||
|
||||
// Pins for DOGM SPI LCD Support
|
||||
#define DOGLCD_A0 26
|
||||
#define DOGLCD_CS 24
|
||||
#define DOGLCD_MOSI -1
|
||||
#define DOGLCD_SCK -1
|
||||
|
||||
#define BTN_EN1 23
|
||||
#define BTN_EN2 25
|
||||
#define BTN_ENC 27
|
||||
|
||||
// Hardware buttons for manual movement of XYZ
|
||||
#define SHIFT_OUT 19
|
||||
#define SHIFT_LD 18
|
||||
#define SHIFT_CLK 17
|
||||
|
||||
//#define UI1 31
|
||||
//#define UI2 22
|
||||
|
||||
#define STAT_LED_BLUE_PIN -1
|
||||
#define STAT_LED_RED_PIN 31
|
129
Marlin/src/pins/mega/pins_CNCONTROLS_12.h
Normal file
129
Marlin/src/pins/mega/pins_CNCONTROLS_12.h
Normal file
@ -0,0 +1,129 @@
|
||||
/**
|
||||
* CartesioV12 pin assignments
|
||||
*/
|
||||
|
||||
#if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
|
||||
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
||||
#endif
|
||||
|
||||
#define BOARD_NAME "CN Controls V12"
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_STOP_PIN 19
|
||||
#define Y_STOP_PIN 22
|
||||
#define Z_STOP_PIN 23
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_STEP_PIN 25
|
||||
#define X_DIR_PIN 27
|
||||
#define X_ENABLE_PIN 26
|
||||
|
||||
#define Y_STEP_PIN 28
|
||||
#define Y_DIR_PIN 30
|
||||
#define Y_ENABLE_PIN 29
|
||||
|
||||
#define Z_STEP_PIN 31
|
||||
#define Z_DIR_PIN 33
|
||||
#define Z_ENABLE_PIN 32
|
||||
|
||||
#define E0_STEP_PIN 57
|
||||
#define E0_DIR_PIN 55
|
||||
#define E0_ENABLE_PIN 58
|
||||
|
||||
#define E1_STEP_PIN 61
|
||||
#define E1_DIR_PIN 62
|
||||
#define E1_ENABLE_PIN 60
|
||||
|
||||
#define E2_STEP_PIN 46
|
||||
#define E2_DIR_PIN 66
|
||||
#define E2_ENABLE_PIN 44
|
||||
|
||||
#define E3_STEP_PIN 45
|
||||
#define E3_DIR_PIN 69
|
||||
#define E3_ENABLE_PIN 47
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
#define TEMP_0_PIN 0 // Analog Input
|
||||
#define TEMP_1_PIN 9 // Analog Input. 9 for tool2 -> 13 for chambertemp
|
||||
#define TEMP_2_PIN 13 // Analog Input. 10 for tool3 -> 13 for chambertemp
|
||||
#define TEMP_3_PIN 11 // Analog Input. 11 for tool4 -> 13 for chambertemp
|
||||
#define TEMP_BED_PIN 14 // Analog Input
|
||||
//#define TEMP_CHAMBER_PIN 13 // Analog Input
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN 11
|
||||
#define HEATER_1_PIN 9
|
||||
#define HEATER_2_PIN 6
|
||||
#define HEATER_3_PIN 3
|
||||
#define HEATER_BED_PIN 24
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN 5 // 5 is PWMtool3 -> 7 is common PWM pin for all tools
|
||||
#endif
|
||||
|
||||
#define ORIG_E0_AUTO_FAN_PIN 7
|
||||
#define ORIG_E1_AUTO_FAN_PIN 7
|
||||
#define ORIG_E2_AUTO_FAN_PIN 7
|
||||
#define ORIG_E3_AUTO_FAN_PIN 7
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
#define SDSS 53
|
||||
#define SD_DETECT_PIN 15
|
||||
|
||||
// Tools
|
||||
|
||||
//#define TOOL_0_PIN 56
|
||||
//#define TOOL_0_PWM_PIN 10 // red warning led at dual extruder
|
||||
//#define TOOL_1_PIN 59
|
||||
//#define TOOL_1_PWM_PIN 8 // lights at dual extruder
|
||||
//#define TOOL_2_PIN 4
|
||||
//#define TOOL_2_PWM_PIN 5
|
||||
//#define TOOL_3_PIN 14
|
||||
//#define TOOL_3_PWM_PIN 2
|
||||
|
||||
// Common I/O
|
||||
|
||||
#ifndef FIL_RUNOUT_PIN
|
||||
#define FIL_RUNOUT_PIN 18
|
||||
#endif
|
||||
//#define PWM_1_PIN 12
|
||||
//#define PWM_2_PIN 13
|
||||
//#define SPARE_IO 17
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
#define BEEPER_PIN 16
|
||||
|
||||
// Pins for DOGM SPI LCD Support
|
||||
#define DOGLCD_A0 39
|
||||
#define DOGLCD_CS 35
|
||||
#define DOGLCD_MOSI 48
|
||||
#define DOGLCD_SCK 49
|
||||
#define LCD_SCREEN_ROT_180
|
||||
|
||||
// The encoder and click button
|
||||
#define BTN_EN1 36
|
||||
#define BTN_EN2 34
|
||||
#define BTN_ENC 38
|
||||
|
||||
// Hardware buttons for manual movement of XYZ
|
||||
#define SHIFT_OUT 42
|
||||
#define SHIFT_LD 41
|
||||
#define SHIFT_CLK 40
|
||||
|
||||
//#define UI1 43
|
||||
//#define UI2 37
|
||||
|
||||
#define STAT_LED_BLUE_PIN -1
|
||||
#define STAT_LED_RED_PIN 10 // TOOL_0_PWM_PIN
|
113
Marlin/src/pins/mega/pins_EINSTART-S.h
Executable file
113
Marlin/src/pins/mega/pins_EINSTART-S.h
Executable file
@ -0,0 +1,113 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program 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.
|
||||
*
|
||||
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
/**
|
||||
* Einstart-S pin assignments
|
||||
* PCB Silkscreen: 3DPrinterCon_v3.5
|
||||
*/
|
||||
|
||||
#if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
|
||||
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
||||
#endif
|
||||
|
||||
#define BOARD_NAME "Einstart-S"
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_STOP_PIN 44
|
||||
#define Y_STOP_PIN 43
|
||||
#define Z_STOP_PIN 42
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_STEP_PIN 76
|
||||
#define X_DIR_PIN 75
|
||||
#define X_ENABLE_PIN 73
|
||||
|
||||
#define Y_STEP_PIN 31
|
||||
#define Y_DIR_PIN 32
|
||||
#define Y_ENABLE_PIN 72
|
||||
|
||||
#define Z_STEP_PIN 34
|
||||
#define Z_DIR_PIN 35
|
||||
#define Z_ENABLE_PIN 33
|
||||
|
||||
#define E0_STEP_PIN 36
|
||||
#define E0_DIR_PIN 37
|
||||
#define E0_ENABLE_PIN 30
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
#define TEMP_0_PIN 0 // Analog Input
|
||||
#define TEMP_BED_PIN 1 // Analog Input
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN 83
|
||||
#define HEATER_BED_PIN 38
|
||||
|
||||
#define FAN_PIN 82
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
#define SDSS 53
|
||||
#define LED_PIN 4
|
||||
|
||||
//////////////////////////
|
||||
// LCDs and Controllers //
|
||||
//////////////////////////
|
||||
|
||||
//
|
||||
// LCD Display output pins
|
||||
//
|
||||
|
||||
// Requires #define U8GLIB_SH1106_EINSTART in Configuration.h
|
||||
// u8glib constructor
|
||||
// U8GLIB_SH1106_128X64 u8g(DOGLCD_SCK, DOGLCD_MOSI, DOGLCD_CS, LCD_PINS_DC, LCD_PINS_RS);
|
||||
|
||||
#define LCD_PINS_DC 78
|
||||
#define LCD_PINS_RS 79
|
||||
// DOGM SPI LCD Support
|
||||
#define DOGLCD_CS 3
|
||||
#define DOGLCD_MOSI 2
|
||||
#define DOGLCD_SCK 5
|
||||
#define DOGLCD_A0 2
|
||||
|
||||
//
|
||||
// LCD Display input pins
|
||||
//
|
||||
#define BTN_UP 25
|
||||
#define BTN_DWN 26
|
||||
#define BTN_LFT 27
|
||||
#define BTN_RT 28
|
||||
|
||||
// 'OK' button
|
||||
#define BTN_ENC 29
|
||||
|
||||
// Set Kill to right arrow, same as RIGID_PANEL
|
||||
#define KILL_PIN 28
|
152
Marlin/src/pins/mega/pins_ELEFU_3.h
Normal file
152
Marlin/src/pins/mega/pins_ELEFU_3.h
Normal file
@ -0,0 +1,152 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program 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.
|
||||
*
|
||||
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
/**
|
||||
* Elefu RA Board Pin Assignments
|
||||
*/
|
||||
|
||||
#ifndef __AVR_ATmega2560__
|
||||
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
||||
#endif
|
||||
|
||||
#define BOARD_NAME "Elefu Ra v3"
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_MIN_PIN 35
|
||||
#define X_MAX_PIN 34
|
||||
#define Y_MIN_PIN 33
|
||||
#define Y_MAX_PIN 32
|
||||
#define Z_MIN_PIN 31
|
||||
#define Z_MAX_PIN 30
|
||||
|
||||
//
|
||||
// Z Probe (when not Z_MIN_PIN)
|
||||
//
|
||||
#ifndef Z_MIN_PROBE_PIN
|
||||
#define Z_MIN_PROBE_PIN 30
|
||||
#endif
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_STEP_PIN 49
|
||||
#define X_DIR_PIN 13
|
||||
#define X_ENABLE_PIN 48
|
||||
|
||||
#define Y_STEP_PIN 11
|
||||
#define Y_DIR_PIN 9
|
||||
#define Y_ENABLE_PIN 12
|
||||
|
||||
#define Z_STEP_PIN 7
|
||||
#define Z_DIR_PIN 6
|
||||
#define Z_ENABLE_PIN 8
|
||||
|
||||
#define E0_STEP_PIN 40
|
||||
#define E0_DIR_PIN 41
|
||||
#define E0_ENABLE_PIN 37
|
||||
|
||||
#define E1_STEP_PIN 18
|
||||
#define E1_DIR_PIN 19
|
||||
#define E1_ENABLE_PIN 38
|
||||
|
||||
#define E2_STEP_PIN 43
|
||||
#define E2_DIR_PIN 47
|
||||
#define E2_ENABLE_PIN 42
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
#define TEMP_0_PIN 3 // Analog Input
|
||||
#define TEMP_1_PIN 2 // Analog Input
|
||||
#define TEMP_2_PIN 1 // Analog Input
|
||||
#define TEMP_BED_PIN 0 // Analog Input
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN 45 // 12V PWM1
|
||||
#define HEATER_1_PIN 46 // 12V PWM2
|
||||
#define HEATER_2_PIN 17 // 12V PWM3
|
||||
#define HEATER_BED_PIN 44 // DOUBLE 12V PWM
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN 16 // 5V PWM
|
||||
#endif
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
#define PS_ON_PIN 10 // Set to -1 if using a manual switch on the PWRSW Connector
|
||||
#define SLEEP_WAKE_PIN 26 // This feature still needs work
|
||||
#define PHOTOGRAPH_PIN 29
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
#define BEEPER_PIN 36
|
||||
|
||||
#if ENABLED(RA_CONTROL_PANEL)
|
||||
|
||||
#define SDSS 53
|
||||
#define SD_DETECT_PIN 28
|
||||
|
||||
#define BTN_EN1 14
|
||||
#define BTN_EN2 39
|
||||
#define BTN_ENC 15
|
||||
|
||||
#endif // RA_CONTROL_PANEL
|
||||
|
||||
#if ENABLED(RA_DISCO)
|
||||
// variables for which pins the TLC5947 is using
|
||||
#define TLC_CLOCK_PIN 25
|
||||
#define TLC_BLANK_PIN 23
|
||||
#define TLC_XLAT_PIN 22
|
||||
#define TLC_DATA_PIN 24
|
||||
|
||||
// We also need to define pin to port number mapping for the 2560 to match the pins listed above.
|
||||
// If you change the TLC pins, update this as well per the 2560 datasheet! This currently only works with the RA Board.
|
||||
#define TLC_CLOCK_BIT 3
|
||||
#define TLC_CLOCK_PORT &PORTA
|
||||
|
||||
#define TLC_BLANK_BIT 1
|
||||
#define TLC_BLANK_PORT &PORTA
|
||||
|
||||
#define TLC_DATA_BIT 2
|
||||
#define TLC_DATA_PORT &PORTA
|
||||
|
||||
#define TLC_XLAT_BIT 0
|
||||
#define TLC_XLAT_PORT &PORTA
|
||||
|
||||
// Change this to match your situation. Lots of TLCs takes up the arduino SRAM very quickly, so be careful
|
||||
// Leave it at at least 1 if you have enabled RA_LIGHTING
|
||||
// The number of TLC5947 boards chained together for use with the animation, additional ones will repeat the animation on them, but are not individually addressable and mimic those before them. You can leave the default at 2 even if you only have 1 TLC5947 module.
|
||||
#define NUM_TLCS 2
|
||||
|
||||
// These TRANS_ARRAY values let you change the order the LEDs on the lighting modules will animate for chase functions.
|
||||
// Modify them according to your specific situation.
|
||||
// NOTE: the array should be 8 long for every TLC you have. These defaults assume (2) TLCs.
|
||||
#define TRANS_ARRAY { 0, 1, 2, 3, 4, 5, 6, 7, 15, 14, 13, 12, 11, 10, 9, 8 } // forward
|
||||
//#define TRANS_ARRAY { 7, 6, 5, 4, 3, 2, 1, 0, 8, 9, 10, 11, 12, 13, 14, 15 } // backward
|
||||
#endif // RA_DISCO
|
142
Marlin/src/pins/mega/pins_GT2560_REV_A.h
Normal file
142
Marlin/src/pins/mega/pins_GT2560_REV_A.h
Normal file
@ -0,0 +1,142 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program 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.
|
||||
*
|
||||
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
/**
|
||||
* Geeetech GT2560 Revision A board pin assignments, based on the work of
|
||||
* George Robles (https://georges3dprinters.com) and
|
||||
* Richard Smith <galorin@gmail.com>
|
||||
*/
|
||||
|
||||
#if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
|
||||
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
||||
#endif
|
||||
|
||||
#ifndef BOARD_NAME
|
||||
#define BOARD_NAME "GT2560 Rev.A"
|
||||
#endif
|
||||
#define DEFAULT_MACHINE_NAME "Prusa i3 Pro B"
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_MIN_PIN 22
|
||||
#define X_MAX_PIN 24
|
||||
#define Y_MIN_PIN 26
|
||||
#define Y_MAX_PIN 28
|
||||
#define Z_MIN_PIN 30
|
||||
#define Z_MAX_PIN 32
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_STEP_PIN 25
|
||||
#define X_DIR_PIN 23
|
||||
#define X_ENABLE_PIN 27
|
||||
|
||||
#define Y_STEP_PIN 31
|
||||
#define Y_DIR_PIN 33
|
||||
#define Y_ENABLE_PIN 29
|
||||
|
||||
#define Z_STEP_PIN 37
|
||||
#define Z_DIR_PIN 39
|
||||
#define Z_ENABLE_PIN 35
|
||||
|
||||
#define E0_STEP_PIN 43
|
||||
#define E0_DIR_PIN 45
|
||||
#define E0_ENABLE_PIN 41
|
||||
|
||||
#define E1_STEP_PIN 49
|
||||
#define E1_DIR_PIN 47
|
||||
#define E1_ENABLE_PIN 48
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
#define TEMP_0_PIN 8
|
||||
#define TEMP_1_PIN 9
|
||||
#define TEMP_BED_PIN 10
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN 2
|
||||
#define HEATER_1_PIN 3
|
||||
#define HEATER_BED_PIN 4
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN 7
|
||||
#endif
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
#define SDPOWER -1
|
||||
#define SDSS 53
|
||||
#define LED_PIN 13
|
||||
#define PS_ON_PIN 12
|
||||
#define SUICIDE_PIN 54 // Must be enabled at startup to keep power flowing
|
||||
#define KILL_PIN -1
|
||||
|
||||
#if HAS_SPI_LCD
|
||||
|
||||
#define BEEPER_PIN 18
|
||||
|
||||
#if ENABLED(NEWPANEL)
|
||||
|
||||
#if ENABLED(MKS_MINI_12864)
|
||||
#define DOGLCD_A0 5
|
||||
#define DOGLCD_CS 21
|
||||
#define BTN_EN1 40
|
||||
#define BTN_EN2 42
|
||||
#else
|
||||
#define LCD_PINS_RS 20
|
||||
#define LCD_PINS_ENABLE 17
|
||||
#define LCD_PINS_D4 16
|
||||
#define LCD_PINS_D5 21
|
||||
#define LCD_PINS_D6 5
|
||||
#define LCD_PINS_D7 6
|
||||
#define BTN_EN1 42
|
||||
#define BTN_EN2 40
|
||||
#endif
|
||||
|
||||
#define BTN_ENC 19
|
||||
#define SD_DETECT_PIN 38
|
||||
|
||||
#else // !NEWPANEL
|
||||
|
||||
#define SHIFT_CLK 38
|
||||
#define SHIFT_LD 42
|
||||
#define SHIFT_OUT 40
|
||||
#define SHIFT_EN 17
|
||||
|
||||
#define LCD_PINS_RS 16
|
||||
#define LCD_PINS_ENABLE 5
|
||||
#define LCD_PINS_D4 6
|
||||
#define LCD_PINS_D5 21
|
||||
#define LCD_PINS_D6 20
|
||||
#define LCD_PINS_D7 19
|
||||
|
||||
#define SD_DETECT_PIN -1
|
||||
|
||||
#endif // !NEWPANEL
|
||||
|
||||
#endif // HAS_SPI_LCD
|
36
Marlin/src/pins/mega/pins_GT2560_REV_A_PLUS.h
Normal file
36
Marlin/src/pins/mega/pins_GT2560_REV_A_PLUS.h
Normal file
@ -0,0 +1,36 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program 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.
|
||||
*
|
||||
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
/**
|
||||
* Geeetech GT2560 Revision A+ board pin assignments
|
||||
*/
|
||||
|
||||
#define BOARD_NAME "GT2560 Rev.A+"
|
||||
|
||||
#include "pins_GT2560_REV_A.h"
|
||||
|
||||
#if ENABLED(BLTOUCH)
|
||||
#define SERVO0_PIN 11
|
||||
#else
|
||||
#define SERVO0_PIN 32
|
||||
#endif
|
181
Marlin/src/pins/mega/pins_GT2560_V3.h
Normal file
181
Marlin/src/pins/mega/pins_GT2560_V3.h
Normal file
@ -0,0 +1,181 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program 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.
|
||||
*
|
||||
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
/**
|
||||
* GT2560 V3.0 pin assignment
|
||||
*/
|
||||
|
||||
#if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
|
||||
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
||||
#endif
|
||||
|
||||
#ifndef BOARD_NAME
|
||||
#define BOARD_NAME "GT2560 V3.0"
|
||||
#endif
|
||||
|
||||
//
|
||||
// Servos
|
||||
//
|
||||
#define SERVO0_PIN 11 //13 untested 3Dtouch
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#ifndef X_STOP_PIN
|
||||
#ifndef X_MIN_PIN
|
||||
#define X_MIN_PIN 24
|
||||
#endif
|
||||
#ifndef X_MAX_PIN
|
||||
#define X_MAX_PIN 22
|
||||
#endif
|
||||
#endif
|
||||
#ifndef Y_STOP_PIN
|
||||
#ifndef Y_MIN_PIN
|
||||
#define Y_MIN_PIN 28
|
||||
#endif
|
||||
#ifndef Y_MAX_PIN
|
||||
#define Y_MAX_PIN 26
|
||||
#endif
|
||||
#endif
|
||||
#ifndef Z_STOP_PIN
|
||||
#ifndef Z_MIN_PIN
|
||||
#define Z_MIN_PIN 30
|
||||
#endif
|
||||
#ifndef Z_MAX_PIN
|
||||
#define Z_MAX_PIN 32
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//
|
||||
// Z Probe (when not Z_MIN_PIN)
|
||||
//
|
||||
#ifndef Z_MIN_PROBE_PIN
|
||||
#define Z_MIN_PROBE_PIN 32
|
||||
#endif
|
||||
|
||||
//
|
||||
// Runout Sensor
|
||||
//
|
||||
#ifndef FIL_RUNOUT_PIN
|
||||
#define FIL_RUNOUT_PIN 66
|
||||
#endif
|
||||
#ifndef FIL_RUNOUT2_PIN
|
||||
#define FIL_RUNOUT2_PIN 67
|
||||
#endif
|
||||
|
||||
//
|
||||
// Power Recovery
|
||||
//
|
||||
#define POWER_LOSS_PIN 69 // Pin to detect power loss
|
||||
#define POWER_LOSS_STATE LOW
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_STEP_PIN 37
|
||||
#define X_DIR_PIN 39
|
||||
#define X_ENABLE_PIN 35
|
||||
|
||||
#define Y_STEP_PIN 31
|
||||
#define Y_DIR_PIN 33
|
||||
#define Y_ENABLE_PIN 29
|
||||
|
||||
#define Z_STEP_PIN 25
|
||||
#define Z_DIR_PIN 23
|
||||
#define Z_ENABLE_PIN 27
|
||||
|
||||
#define E0_STEP_PIN 46
|
||||
#define E0_DIR_PIN 44
|
||||
#define E0_ENABLE_PIN 12
|
||||
|
||||
#define E1_STEP_PIN 49
|
||||
#define E1_DIR_PIN 47
|
||||
#define E1_ENABLE_PIN 48
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
#define TEMP_0_PIN 11 // Analog Input
|
||||
#define TEMP_1_PIN 9 // Analog Input
|
||||
#define TEMP_2_PIN 1 // Analog Input
|
||||
#define TEMP_BED_PIN 10 // Analog Input
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN 10
|
||||
#define HEATER_1_PIN 3
|
||||
#define HEATER_2_PIN 1
|
||||
#define HEATER_BED_PIN 4
|
||||
#define FAN_PIN 9
|
||||
//#define FAN1_PIN 8
|
||||
//#define FAN2_PIN 7
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
#define SD_DETECT_PIN 38
|
||||
#define SDSS 53
|
||||
#define LED_PIN 6
|
||||
#define PS_ON_PIN 12
|
||||
#define SUICIDE_PIN 54 // This pin must be enabled at boot to keep power flowing
|
||||
|
||||
#ifndef CASE_LIGHT_PIN
|
||||
#define CASE_LIGHT_PIN 6 // 21
|
||||
#endif
|
||||
|
||||
//
|
||||
// LCD Controller
|
||||
//
|
||||
#define BEEPER_PIN 18
|
||||
|
||||
#ifndef LCD_PINS_RS
|
||||
#define LCD_PINS_RS 20
|
||||
#endif
|
||||
#ifndef LCD_PINS_ENABLE
|
||||
#define LCD_PINS_ENABLE 17
|
||||
#endif
|
||||
#ifndef LCD_PINS_D4
|
||||
#define LCD_PINS_D4 16
|
||||
#endif
|
||||
#ifndef LCD_PINS_D5
|
||||
#define LCD_PINS_D5 21
|
||||
#endif
|
||||
#ifndef LCD_PINS_D6
|
||||
#define LCD_PINS_D6 5
|
||||
#endif
|
||||
#ifndef LCD_PINS_D7
|
||||
#define LCD_PINS_D7 36
|
||||
#endif
|
||||
|
||||
#if ENABLED(NEWPANEL)
|
||||
#ifndef BTN_EN1
|
||||
#define BTN_EN1 42
|
||||
#endif
|
||||
#ifndef BTN_EN2
|
||||
#define BTN_EN2 40
|
||||
#endif
|
||||
#ifndef BTN_ENC
|
||||
#define BTN_ENC 19
|
||||
#endif
|
||||
#endif
|
39
Marlin/src/pins/mega/pins_GT2560_V3_A20.h
Normal file
39
Marlin/src/pins/mega/pins_GT2560_V3_A20.h
Normal file
@ -0,0 +1,39 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program 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.
|
||||
*
|
||||
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
/**
|
||||
* Geeetech A20M pin assignment
|
||||
*/
|
||||
|
||||
#define LCD_PINS_RS 5
|
||||
#define LCD_PINS_ENABLE 36
|
||||
#define LCD_PINS_D4 21
|
||||
#define LCD_PINS_D7 6
|
||||
|
||||
#if ENABLED(NEWPANEL)
|
||||
#define BTN_EN1 16
|
||||
#define BTN_EN2 17
|
||||
#define BTN_ENC 19
|
||||
#endif
|
||||
|
||||
#include "pins_GT2560_V3.h"
|
35
Marlin/src/pins/mega/pins_GT2560_V3_MC2.h
Normal file
35
Marlin/src/pins/mega/pins_GT2560_V3_MC2.h
Normal file
@ -0,0 +1,35 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program 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.
|
||||
*
|
||||
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
/*****************************************************************
|
||||
* GT2560 V3.0 pin assignment (for Mecreator 2)
|
||||
*****************************************************************/
|
||||
|
||||
#define BOARD_NAME "GT2560 V3.0 (MC2)"
|
||||
|
||||
#define X_MIN_PIN 22
|
||||
#define X_MAX_PIN 24
|
||||
#define Y_MIN_PIN 26
|
||||
#define Y_MAX_PIN 28
|
||||
|
||||
#include "pins_GT2560_V3.h"
|
92
Marlin/src/pins/mega/pins_LEAPFROG.h
Normal file
92
Marlin/src/pins/mega/pins_LEAPFROG.h
Normal file
@ -0,0 +1,92 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program 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.
|
||||
*
|
||||
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
/**
|
||||
* Leapfrog Driver board pin assignments
|
||||
*/
|
||||
|
||||
#if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
|
||||
#error "Oops! Select 'Mega 1280' or 'Mega 2560' in 'Tools > Board.'"
|
||||
#endif
|
||||
|
||||
#define BOARD_NAME "Leapfrog"
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_MIN_PIN 47
|
||||
#define X_MAX_PIN 2
|
||||
#define Y_MIN_PIN 48
|
||||
#define Y_MAX_PIN 15
|
||||
#define Z_MIN_PIN 49
|
||||
#define Z_MAX_PIN -1
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_STEP_PIN 28
|
||||
#define X_DIR_PIN 63
|
||||
#define X_ENABLE_PIN 29
|
||||
|
||||
#define Y_STEP_PIN 14 // A6
|
||||
#define Y_DIR_PIN 15 // A0
|
||||
#define Y_ENABLE_PIN 39
|
||||
|
||||
#define Z_STEP_PIN 31 // A2
|
||||
#define Z_DIR_PIN 32 // A6
|
||||
#define Z_ENABLE_PIN 30 // A1
|
||||
|
||||
#define E0_STEP_PIN 34 // 34
|
||||
#define E0_DIR_PIN 35 // 35
|
||||
#define E0_ENABLE_PIN 33 // 33
|
||||
|
||||
#define E1_STEP_PIN 37 // 37
|
||||
#define E1_DIR_PIN 40 // 40
|
||||
#define E1_ENABLE_PIN 36 // 36
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
#define TEMP_0_PIN 13 // Analog Input (D27)
|
||||
#define TEMP_1_PIN 15 // Analog Input (1)
|
||||
#define TEMP_BED_PIN 14 // Analog Input (1,2 or I2C)
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN 9
|
||||
#define HEATER_1_PIN 8 // 12
|
||||
#define HEATER_2_PIN 11 // 13
|
||||
#define HEATER_BED_PIN 10 // 14/15
|
||||
|
||||
#define FAN_PIN 7
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
#define SDSS 11
|
||||
#define LED_PIN 13
|
||||
#define SOL1_PIN 16
|
||||
#define SOL2_PIN 17
|
||||
|
||||
/* Unused (1) (2) (3) 4 5 6 7 8 9 10 11 12 13 (14) (15) (16) 17 (18) (19) (20) (21) (22) (23) 24 (25) (26) (27) 28 (29) (30) (31) */
|
166
Marlin/src/pins/mega/pins_MEGACONTROLLER.h
Normal file
166
Marlin/src/pins/mega/pins_MEGACONTROLLER.h
Normal file
@ -0,0 +1,166 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program 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.
|
||||
*
|
||||
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
/**
|
||||
* Mega controller pin assignments
|
||||
*/
|
||||
|
||||
#ifndef __AVR_ATmega2560__
|
||||
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
||||
#endif
|
||||
|
||||
#if HOTENDS > 2 || E_STEPPERS > 2
|
||||
#error "Mega Controller supports up to 2 hotends / E-steppers. Comment out this line to continue."
|
||||
#endif
|
||||
|
||||
#define BOARD_NAME "Mega Controller"
|
||||
|
||||
//
|
||||
// Servos
|
||||
//
|
||||
#define SERVO0_PIN 30
|
||||
#define SERVO1_PIN 31
|
||||
#define SERVO2_PIN 32
|
||||
#define SERVO3_PIN 33
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_MIN_PIN 43
|
||||
#define X_MAX_PIN 42
|
||||
#define Y_MIN_PIN 38
|
||||
#define Y_MAX_PIN 41
|
||||
#define Z_MIN_PIN 40
|
||||
#define Z_MAX_PIN 37
|
||||
|
||||
//
|
||||
// Z Probe (when not Z_MIN_PIN)
|
||||
//
|
||||
#ifndef Z_MIN_PROBE_PIN
|
||||
#define Z_MIN_PROBE_PIN 37
|
||||
#endif
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_STEP_PIN 62 // A8
|
||||
#define X_DIR_PIN 63 // A9
|
||||
#define X_ENABLE_PIN 61 // A7
|
||||
|
||||
#define Y_STEP_PIN 65 // A11
|
||||
#define Y_DIR_PIN 66 // A12
|
||||
#define Y_ENABLE_PIN 64 // A10
|
||||
|
||||
#define Z_STEP_PIN 68 // A14
|
||||
#define Z_DIR_PIN 69 // A15
|
||||
#define Z_ENABLE_PIN 67 // A13
|
||||
|
||||
#define E0_STEP_PIN 23
|
||||
#define E0_DIR_PIN 24
|
||||
#define E0_ENABLE_PIN 22
|
||||
|
||||
#define E1_STEP_PIN 26
|
||||
#define E1_DIR_PIN 27
|
||||
#define E1_ENABLE_PIN 25
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
#if TEMP_SENSOR_0 == -1
|
||||
#define TEMP_0_PIN 4 // Analog Input
|
||||
#else
|
||||
#define TEMP_0_PIN 0 // Analog Input
|
||||
#endif
|
||||
|
||||
#if TEMP_SENSOR_1 == -1
|
||||
#define TEMP_1_PIN 5 // Analog Input
|
||||
#else
|
||||
#define TEMP_1_PIN 2 // Analog Input
|
||||
#endif
|
||||
|
||||
#define TEMP_2_PIN 3 // Analog Input
|
||||
|
||||
#if TEMP_SENSOR_BED == -1
|
||||
#define TEMP_BED_PIN 6 // Analog Input
|
||||
#else
|
||||
#define TEMP_BED_PIN 1 // Analog Input
|
||||
#endif
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN 29
|
||||
#define HEATER_1_PIN 34
|
||||
#define HEATER_BED_PIN 28
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN 39
|
||||
#endif
|
||||
#define FAN1_PIN 35
|
||||
#define FAN2_PIN 36
|
||||
|
||||
#ifndef CONTROLLER_FAN_PIN
|
||||
#define CONTROLLER_FAN_PIN FAN2_PIN
|
||||
#endif
|
||||
|
||||
#define FAN_SOFT_PWM
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
#define SDSS 53
|
||||
#define LED_PIN 13
|
||||
#define CASE_LIGHT_PIN 2
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
#if ENABLED(MINIPANEL)
|
||||
|
||||
#define BEEPER_PIN 46
|
||||
// Pins for DOGM SPI LCD Support
|
||||
#define DOGLCD_A0 47
|
||||
#define DOGLCD_CS 45
|
||||
#define LCD_BACKLIGHT_PIN 44 // backlight LED on PA3
|
||||
|
||||
#define KILL_PIN 12
|
||||
// GLCD features
|
||||
// Uncomment screen orientation
|
||||
//#define LCD_SCREEN_ROT_90
|
||||
//#define LCD_SCREEN_ROT_180
|
||||
//#define LCD_SCREEN_ROT_270
|
||||
|
||||
#define BTN_EN1 48
|
||||
#define BTN_EN2 11
|
||||
#define BTN_ENC 10
|
||||
|
||||
#define SD_DETECT_PIN 49
|
||||
|
||||
#endif // MINIPANEL
|
||||
|
||||
//
|
||||
// M3/M4/M5 - Spindle/Laser Control
|
||||
//
|
||||
#define SPINDLE_LASER_PWM_PIN 6 // MUST BE HARDWARE PWM
|
||||
#define SPINDLE_LASER_ENA_PIN 7 // Pin should have a pullup!
|
||||
#define SPINDLE_DIR_PIN 8
|
131
Marlin/src/pins/mega/pins_MEGATRONICS.h
Normal file
131
Marlin/src/pins/mega/pins_MEGATRONICS.h
Normal file
@ -0,0 +1,131 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program 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.
|
||||
*
|
||||
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
/**
|
||||
* MegaTronics pin assignments
|
||||
*/
|
||||
|
||||
#ifndef __AVR_ATmega2560__
|
||||
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
||||
#endif
|
||||
|
||||
#define BOARD_NAME "Megatronics"
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_MIN_PIN 41
|
||||
#define X_MAX_PIN 37
|
||||
#define Y_MIN_PIN 14
|
||||
#define Y_MAX_PIN 15
|
||||
#define Z_MIN_PIN 18
|
||||
#define Z_MAX_PIN 19
|
||||
|
||||
//
|
||||
// Z Probe (when not Z_MIN_PIN)
|
||||
//
|
||||
#ifndef Z_MIN_PROBE_PIN
|
||||
#define Z_MIN_PROBE_PIN 19
|
||||
#endif
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_STEP_PIN 26
|
||||
#define X_DIR_PIN 28
|
||||
#define X_ENABLE_PIN 24
|
||||
|
||||
#define Y_STEP_PIN 60 // A6
|
||||
#define Y_DIR_PIN 61 // A7
|
||||
#define Y_ENABLE_PIN 22
|
||||
|
||||
#define Z_STEP_PIN 54 // A0
|
||||
#define Z_DIR_PIN 55 // A1
|
||||
#define Z_ENABLE_PIN 56 // A2
|
||||
|
||||
#define E0_STEP_PIN 31
|
||||
#define E0_DIR_PIN 32
|
||||
#define E0_ENABLE_PIN 38
|
||||
|
||||
#define E1_STEP_PIN 34
|
||||
#define E1_DIR_PIN 36
|
||||
#define E1_ENABLE_PIN 30
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
#if TEMP_SENSOR_0 == -1
|
||||
#define TEMP_0_PIN 8 // Analog Input
|
||||
#else
|
||||
#define TEMP_0_PIN 13 // Analog Input
|
||||
#endif
|
||||
#define TEMP_1_PIN 15 // Analog Input
|
||||
#define TEMP_BED_PIN 14 // Analog Input
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN 9
|
||||
#define HEATER_1_PIN 8
|
||||
#define HEATER_BED_PIN 10
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN 7 // IO pin. Buffer needed
|
||||
#endif
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
#define SDSS 53
|
||||
#define LED_PIN 13
|
||||
#define PS_ON_PIN 12
|
||||
#define CASE_LIGHT_PIN 2
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
#define BEEPER_PIN 33
|
||||
|
||||
#if BOTH(ULTRA_LCD, NEWPANEL)
|
||||
|
||||
#define LCD_PINS_RS 16
|
||||
#define LCD_PINS_ENABLE 17
|
||||
#define LCD_PINS_D4 23
|
||||
#define LCD_PINS_D5 25
|
||||
#define LCD_PINS_D6 27
|
||||
#define LCD_PINS_D7 29
|
||||
|
||||
// Buttons directly attached using AUX-2
|
||||
#define BTN_EN1 59
|
||||
#define BTN_EN2 64
|
||||
#define BTN_ENC 43
|
||||
|
||||
#define SD_DETECT_PIN -1 // RAMPS doesn't use this
|
||||
|
||||
#endif // HAS_SPI_LCD && NEWPANEL
|
||||
|
||||
//
|
||||
// M3/M4/M5 - Spindle/Laser Control
|
||||
//
|
||||
#define SPINDLE_LASER_PWM_PIN 3 // MUST BE HARDWARE PWM
|
||||
#define SPINDLE_LASER_ENA_PIN 4 // Pin should have a pullup!
|
||||
#define SPINDLE_DIR_PIN 11
|
146
Marlin/src/pins/mega/pins_MEGATRONICS_2.h
Normal file
146
Marlin/src/pins/mega/pins_MEGATRONICS_2.h
Normal file
@ -0,0 +1,146 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program 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.
|
||||
*
|
||||
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
/**
|
||||
* MegaTronics v2.0 pin assignments
|
||||
*/
|
||||
|
||||
#ifndef __AVR_ATmega2560__
|
||||
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
||||
#endif
|
||||
|
||||
#define BOARD_NAME "Megatronics v2.0"
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_MIN_PIN 37
|
||||
#define X_MAX_PIN 40
|
||||
#define Y_MIN_PIN 41
|
||||
#define Y_MAX_PIN 38
|
||||
#define Z_MIN_PIN 18
|
||||
#define Z_MAX_PIN 19
|
||||
|
||||
//
|
||||
// Z Probe (when not Z_MIN_PIN)
|
||||
//
|
||||
#ifndef Z_MIN_PROBE_PIN
|
||||
#define Z_MIN_PROBE_PIN 19
|
||||
#endif
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_STEP_PIN 26
|
||||
#define X_DIR_PIN 27
|
||||
#define X_ENABLE_PIN 25
|
||||
|
||||
#define Y_STEP_PIN 4 // A6
|
||||
#define Y_DIR_PIN 54 // A0
|
||||
#define Y_ENABLE_PIN 5
|
||||
|
||||
#define Z_STEP_PIN 56 // A2
|
||||
#define Z_DIR_PIN 60 // A6
|
||||
#define Z_ENABLE_PIN 55 // A1
|
||||
|
||||
#define E0_STEP_PIN 35
|
||||
#define E0_DIR_PIN 36
|
||||
#define E0_ENABLE_PIN 34
|
||||
|
||||
#define E1_STEP_PIN 29
|
||||
#define E1_DIR_PIN 39
|
||||
#define E1_ENABLE_PIN 28
|
||||
|
||||
#define E2_STEP_PIN 23 // ? schematic says 24
|
||||
#define E2_DIR_PIN 24 // ? schematic says 23
|
||||
#define E2_ENABLE_PIN 22
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
#if TEMP_SENSOR_0 == -1
|
||||
#define TEMP_0_PIN 4 // Analog Input
|
||||
#else
|
||||
#define TEMP_0_PIN 13 // Analog Input
|
||||
#endif
|
||||
|
||||
#if TEMP_SENSOR_1 == -1
|
||||
#define TEMP_1_PIN 8 // Analog Input
|
||||
#else
|
||||
#define TEMP_1_PIN 15 // Analog Input
|
||||
#endif
|
||||
|
||||
#if TEMP_SENSOR_BED == -1
|
||||
#define TEMP_BED_PIN 8 // Analog Input
|
||||
#else
|
||||
#define TEMP_BED_PIN 14 // Analog Input
|
||||
#endif
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN 9
|
||||
#define HEATER_1_PIN 8
|
||||
#define HEATER_BED_PIN 10
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN 7
|
||||
#endif
|
||||
#define FAN1_PIN 6
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
#define SDSS 53
|
||||
#define LED_PIN 13
|
||||
#define PS_ON_PIN 12
|
||||
#define CASE_LIGHT_PIN 2
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
#define BEEPER_PIN 64
|
||||
|
||||
#define LCD_PINS_RS 14
|
||||
#define LCD_PINS_ENABLE 15
|
||||
#define LCD_PINS_D4 30
|
||||
#define LCD_PINS_D5 31
|
||||
#define LCD_PINS_D6 32
|
||||
#define LCD_PINS_D7 33
|
||||
|
||||
// Buttons are directly attached using keypad
|
||||
#define BTN_EN1 61
|
||||
#define BTN_EN2 59
|
||||
#define BTN_ENC 43
|
||||
|
||||
// Buttons that are attached using shift register of reprapworld keypad v1.1
|
||||
#define SHIFT_CLK 63
|
||||
#define SHIFT_LD 42
|
||||
#define SHIFT_OUT 17
|
||||
#define SHIFT_EN 17
|
||||
|
||||
//
|
||||
// M3/M4/M5 - Spindle/Laser Control
|
||||
//
|
||||
#define SPINDLE_LASER_PWM_PIN 3 // MUST BE HARDWARE PWM
|
||||
#define SPINDLE_LASER_ENA_PIN 16 // Pin should have a pullup!
|
||||
#define SPINDLE_DIR_PIN 11
|
195
Marlin/src/pins/mega/pins_MEGATRONICS_3.h
Normal file
195
Marlin/src/pins/mega/pins_MEGATRONICS_3.h
Normal file
@ -0,0 +1,195 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program 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.
|
||||
*
|
||||
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
/**
|
||||
* 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
|
||||
|
||||
#if MB(MEGATRONICS_32)
|
||||
#define BOARD_NAME "Megatronics v3.2"
|
||||
#elif MB(MEGATRONICS_31)
|
||||
#define BOARD_NAME "Megatronics v3.1"
|
||||
#else
|
||||
#define BOARD_NAME "Megatronics v3.0"
|
||||
#endif
|
||||
|
||||
//
|
||||
// Servos
|
||||
//
|
||||
#define SERVO0_PIN 46 // AUX3-6
|
||||
#define SERVO1_PIN 47 // AUX3-5
|
||||
#define SERVO2_PIN 48 // AUX3-4
|
||||
#define SERVO3_PIN 49 // AUX3-3
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_MIN_PIN 37
|
||||
#define X_MAX_PIN 40
|
||||
#define Y_MIN_PIN 41
|
||||
#define Y_MAX_PIN 38
|
||||
#define Z_MIN_PIN 18
|
||||
#define Z_MAX_PIN 19
|
||||
|
||||
//
|
||||
// Z Probe (when not Z_MIN_PIN)
|
||||
//
|
||||
#ifndef Z_MIN_PROBE_PIN
|
||||
#define Z_MIN_PROBE_PIN 19
|
||||
#endif
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_STEP_PIN 58
|
||||
#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
|
||||
|
||||
#define Z_STEP_PIN 16
|
||||
#define Z_DIR_PIN 11
|
||||
#define Z_ENABLE_PIN 3
|
||||
|
||||
#define E0_STEP_PIN 28
|
||||
#define E0_DIR_PIN 27
|
||||
#define E0_ENABLE_PIN 29
|
||||
|
||||
#define E1_STEP_PIN 25
|
||||
#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
|
||||
//
|
||||
#if TEMP_SENSOR_0 == -1
|
||||
#define TEMP_0_PIN 11 // Analog Input
|
||||
#else
|
||||
#define TEMP_0_PIN 15 // Analog Input
|
||||
#endif
|
||||
#if TEMP_SENSOR_1 == -1
|
||||
#define TEMP_1_PIN 10 // Analog Input
|
||||
#else
|
||||
#define TEMP_1_PIN 13 // Analog Input
|
||||
#endif
|
||||
#if TEMP_SENSOR_2 == -1
|
||||
#define TEMP_2_PIN 9 // Analog Input
|
||||
#else
|
||||
#define TEMP_2_PIN 12 // Analog Input
|
||||
#endif
|
||||
#if TEMP_SENSOR_BED == -1
|
||||
#define TEMP_BED_PIN 8 // Analog Input
|
||||
#else
|
||||
#define TEMP_BED_PIN 14 // Analog Input
|
||||
#endif
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN 2
|
||||
#define HEATER_1_PIN 9
|
||||
#define HEATER_2_PIN 8
|
||||
#define HEATER_BED_PIN 10
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN 6
|
||||
#endif
|
||||
#define FAN1_PIN 7
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
#define SDSS 53
|
||||
#define LED_PIN 13
|
||||
#define PS_ON_PIN 12
|
||||
#define CASE_LIGHT_PIN 45 // Try the keypad connector
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
#define BEEPER_PIN 61
|
||||
|
||||
#define BTN_EN1 44
|
||||
#define BTN_EN2 45
|
||||
#define BTN_ENC 33
|
||||
|
||||
#if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
|
||||
|
||||
#define LCD_PINS_RS 56 // CS chip select / SS chip slave select
|
||||
#define LCD_PINS_ENABLE 51 // SID (MOSI)
|
||||
#define LCD_PINS_D4 52 // SCK (CLK) clock
|
||||
#define SD_DETECT_PIN 35
|
||||
|
||||
#else
|
||||
|
||||
#define LCD_PINS_RS 32
|
||||
#define LCD_PINS_ENABLE 31
|
||||
#define LCD_PINS_D4 14
|
||||
#define LCD_PINS_D5 30
|
||||
#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
|
||||
|
||||
#if MB(MEGATRONICS_31) || MB(MEGATRONICS_32)
|
||||
#define SD_DETECT_PIN 56
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// M3/M4/M5 - Spindle/Laser Control
|
||||
//
|
||||
#if DISABLED(REPRAPWORLD_KEYPAD) // try to use the keypad connector first
|
||||
#define SPINDLE_LASER_PWM_PIN 44 // MUST BE HARDWARE PWM
|
||||
#define SPINDLE_LASER_ENA_PIN 43 // Pin should have a pullup!
|
||||
#define SPINDLE_DIR_PIN 42
|
||||
#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 // MUST BE HARDWARE PWM
|
||||
#define SPINDLE_LASER_ENA_PIN 17 // Pin should have a pullup!
|
||||
#define SPINDLE_DIR_PIN 5
|
||||
#endif
|
298
Marlin/src/pins/mega/pins_MIGHTYBOARD_REVE.h
Normal file
298
Marlin/src/pins/mega/pins_MIGHTYBOARD_REVE.h
Normal file
@ -0,0 +1,298 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program 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.
|
||||
*
|
||||
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
/**
|
||||
* Mightyboard Rev.E pin assignments
|
||||
* also works for Rev D boards. It's all rev E despite what the silk screen says
|
||||
*/
|
||||
|
||||
/**
|
||||
* Rev B 2 JAN 2017
|
||||
*
|
||||
* Added pin definitions for:
|
||||
* M3, M4 & M5 spindle control commands
|
||||
* case light
|
||||
*
|
||||
* Corrected pin assignment for EX2_HEAT_PIN pin. Changed it from 9 to 11. The port
|
||||
* number (B5) agrees with the schematic but B5 is assigned to logical pin 11.
|
||||
*/
|
||||
|
||||
#if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
|
||||
#error "Oops! Select 'Mega 1280' or 'Mega 2560' in 'Tools > Board.'"
|
||||
#endif
|
||||
|
||||
#define BOARD_NAME "Mightyboard"
|
||||
#define DEFAULT_MACHINE_NAME "MB Replicator"
|
||||
|
||||
//
|
||||
// Servos
|
||||
//
|
||||
#define SERVO0_PIN 36 // C1 (1280-EX1)
|
||||
#define SERVO1_PIN 37 // C0 (1280-EX2)
|
||||
#define SERVO2_PIN 40 // G1 (1280-EX3)
|
||||
#define SERVO3_PIN 41 // G0 (1280-EX4)
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_MIN_PIN 49 // L0
|
||||
#define X_MAX_PIN 48 // L1
|
||||
#define Y_MIN_PIN 47 // L2
|
||||
#define Y_MAX_PIN 46 // L3
|
||||
#define Z_MIN_PIN 43 // L6
|
||||
#define Z_MAX_PIN 42 // L7
|
||||
|
||||
//
|
||||
// Z Probe (when not Z_MIN_PIN)
|
||||
//
|
||||
#ifndef Z_MIN_PROBE_PIN
|
||||
#define Z_MIN_PROBE_PIN 42
|
||||
#endif
|
||||
|
||||
//
|
||||
// Filament Runout Pins
|
||||
//
|
||||
#ifndef FIL_RUNOUT_PIN
|
||||
#define FIL_RUNOUT_PIN 49
|
||||
#endif
|
||||
#ifndef FIL_RUNOUT2_PIN
|
||||
#define FIL_RUNOUT2_PIN 47
|
||||
#endif
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_STEP_PIN 55 // F1
|
||||
#define X_DIR_PIN 54 // F0
|
||||
#define X_ENABLE_PIN 56 // F2
|
||||
|
||||
#define Y_STEP_PIN 59 // F5
|
||||
#define Y_DIR_PIN 58 // F4
|
||||
#define Y_ENABLE_PIN 60 // F6
|
||||
|
||||
#define Z_STEP_PIN 63 // K1
|
||||
#define Z_DIR_PIN 62 // K0
|
||||
#define Z_ENABLE_PIN 64 // K2
|
||||
|
||||
#define E0_STEP_PIN 25 // A3
|
||||
#define E0_DIR_PIN 24 // A2
|
||||
#define E0_ENABLE_PIN 26 // A4
|
||||
|
||||
#define E1_STEP_PIN 29 // A7
|
||||
#define E1_DIR_PIN 28 // A6
|
||||
#define E1_ENABLE_PIN 39 // G2
|
||||
|
||||
//
|
||||
// I2C Digipots - MCP4018
|
||||
// Address 5E (2F << 1)
|
||||
// Set from 0 - 127 with stop bit.
|
||||
// (Ex. 3F << 1 | 1)
|
||||
//
|
||||
#define DIGIPOTS_I2C_SCL 76 // J5
|
||||
#define DIGIPOTS_I2C_SDA_X 57 // F3
|
||||
#define DIGIPOTS_I2C_SDA_Y 61 // F7
|
||||
#define DIGIPOTS_I2C_SDA_Z 65 // K3
|
||||
#define DIGIPOTS_I2C_SDA_E0 27 // A5
|
||||
#define DIGIPOTS_I2C_SDA_E1 77 // J6
|
||||
|
||||
#ifndef DIGIPOT_I2C_ADDRESS_A
|
||||
#define DIGIPOT_I2C_ADDRESS_A 0x2F // unshifted slave address (5E <- 2F << 1)
|
||||
#endif
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
// K7 - 69 / ADC15 - 15
|
||||
#define TEMP_BED_PIN 15
|
||||
|
||||
// SPI for Max6675 or Max31855 Thermocouple
|
||||
// Uses a separate SPI bus
|
||||
//
|
||||
// 3 E5 DO (SO)
|
||||
// 5 E3 CS1
|
||||
// 2 E4 CS2
|
||||
// 78 E2 SCK
|
||||
//
|
||||
#define THERMO_SCK_PIN 78 // E2
|
||||
#define THERMO_DO_PIN 3 // E5
|
||||
#define THERMO_CS1_PIN 5 // E3
|
||||
#define THERMO_CS2_PIN 2 // E4
|
||||
|
||||
#define MAX6675_SS_PIN THERMO_CS1_PIN
|
||||
#define MAX6675_SS2_PIN THERMO_CS2_PIN
|
||||
#define MAX6675_SCK_PIN THERMO_SCK_PIN
|
||||
#define MAX6675_DO_PIN THERMO_DO_PIN
|
||||
|
||||
//
|
||||
// Augmentation for auto-assigning plugs
|
||||
//
|
||||
// Two thermocouple connectors allows for either
|
||||
// 2 extruders or 1 extruder and a heated bed.
|
||||
// With no heated bed, an additional 24V fan is possible.
|
||||
//
|
||||
|
||||
// Labels from the schematic:
|
||||
#define EX1_HEAT_PIN 6 // H3
|
||||
#define EX1_FAN_PIN 7 // H4
|
||||
#define EX2_HEAT_PIN 11 // B5
|
||||
#define EX2_FAN_PIN 12 // B6
|
||||
#define HBP_PIN 45 // L4
|
||||
#define EXTRA_FET_PIN 44 // L5
|
||||
|
||||
#if HOTENDS > 1
|
||||
#if TEMP_SENSOR_BED
|
||||
#define IS_EEB
|
||||
#else
|
||||
#define IS_EEF
|
||||
#endif
|
||||
#elif TEMP_SENSOR_BED
|
||||
#define IS_EFB
|
||||
#else
|
||||
#define IS_EFF
|
||||
#endif
|
||||
|
||||
//
|
||||
// Heaters / Fans (24V)
|
||||
//
|
||||
#define HEATER_0_PIN EX1_HEAT_PIN
|
||||
|
||||
#if ENABLED(IS_EFB) // Hotend, Fan, Bed
|
||||
#define HEATER_BED_PIN HBP_PIN
|
||||
#elif ENABLED(IS_EEF) // Hotend, Hotend, Fan
|
||||
#define HEATER_1_PIN EX2_HEAT_PIN
|
||||
#elif ENABLED(IS_EEB) // Hotend, Hotend, Bed
|
||||
#define HEATER_1_PIN EX2_HEAT_PIN
|
||||
#define HEATER_BED_PIN HBP_PIN
|
||||
#elif ENABLED(IS_EFF) // Hotend, Fan, Fan
|
||||
#define FAN1_PIN HBP_PIN
|
||||
#endif
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#if EITHER(IS_EFB, IS_EFF) // Hotend, Fan, Bed or Hotend, Fan, Fan
|
||||
#define FAN_PIN EX2_HEAT_PIN
|
||||
#elif EITHER(IS_EEF, IS_SF) // Hotend, Hotend, Fan or Spindle, Fan
|
||||
#define FAN_PIN HBP_PIN
|
||||
#else
|
||||
#define FAN_PIN EXTRA_FET_PIN
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
#define LED_PIN 13 // B7
|
||||
#define CUTOFF_RESET_PIN 16 // H1
|
||||
#define CUTOFF_TEST_PIN 17 // H0
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
#if HAS_SPI_LCD
|
||||
|
||||
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
|
||||
|
||||
#define LCD_PINS_RS 33 // C4: LCD-STROBE
|
||||
#define LCD_PINS_ENABLE 72 // J2: LEFT
|
||||
#define LCD_PINS_D4 35 // C2: LCD-CLK
|
||||
#define LCD_PINS_D5 32 // C5: RLED
|
||||
#define LCD_PINS_D6 34 // C3: LCD-DATA
|
||||
#define LCD_PINS_D7 31 // C6: GLED
|
||||
|
||||
#define BTN_EN2 75 // J4, UP
|
||||
#define BTN_EN1 73 // J3, DOWN
|
||||
//STOP button connected as KILL_PIN
|
||||
#define KILL_PIN 14 // J1, RIGHT
|
||||
//KILL - not connected
|
||||
|
||||
#define BEEPER_PIN 8 // H5, SD_WP
|
||||
|
||||
//on board leds
|
||||
#define STAT_LED_RED_LED SERVO0_PIN // C1 (1280-EX1, DEBUG2)
|
||||
#define STAT_LED_BLUE_PIN SERVO1_PIN // C0 (1280-EX2, DEBUG3)
|
||||
|
||||
#else
|
||||
// Replicator uses a 3-wire SR controller with HD44780
|
||||
#define SR_DATA_PIN 34 // C3
|
||||
#define SR_CLK_PIN 35 // C2
|
||||
#define SR_STROBE_PIN 33 // C4
|
||||
|
||||
#define BTN_UP 75 // J4
|
||||
#define BTN_DWN 73 // J3
|
||||
#define BTN_LFT 72 // J2
|
||||
#define BTN_RT 14 // J1
|
||||
|
||||
// Disable encoder
|
||||
#undef BTN_EN1
|
||||
#undef BTN_EN2
|
||||
|
||||
#define BEEPER_PIN 4 // G5
|
||||
|
||||
#define STAT_LED_RED_PIN 32 // C5
|
||||
#define STAT_LED_BLUE_PIN 31 // C6 (Actually green)
|
||||
|
||||
#endif
|
||||
|
||||
#define BTN_CENTER 15 // J0
|
||||
#define BTN_ENC BTN_CENTER
|
||||
|
||||
#endif // HAS_SPI_LCD
|
||||
|
||||
//
|
||||
// SD Card
|
||||
//
|
||||
#define SDSS 53 // B0
|
||||
#define SD_DETECT_PIN 9 // H6
|
||||
|
||||
//
|
||||
//TMC 2208
|
||||
//
|
||||
#if HAS_DRIVER(TMC2208)
|
||||
/**
|
||||
* TMC2208 stepper drivers
|
||||
*
|
||||
* Hardware serial communication ports.
|
||||
* If undefined software serial is used according to the pins below
|
||||
*/
|
||||
#define X_HARDWARE_SERIAL Serial2
|
||||
#define Y_HARDWARE_SERIAL Serial1
|
||||
|
||||
/**
|
||||
* Software serial
|
||||
*/
|
||||
|
||||
#define X_SERIAL_TX_PIN 16
|
||||
#define X_SERIAL_RX_PIN 17
|
||||
|
||||
#define Y_SERIAL_TX_PIN 18
|
||||
#define Y_SERIAL_RX_PIN 19
|
||||
|
||||
#define Z_SERIAL_TX_PIN 41
|
||||
#define Z_SERIAL_RX_PIN 66
|
||||
|
||||
#define E0_SERIAL_TX_PIN 40
|
||||
#define E0_SERIAL_RX_PIN 67
|
||||
|
||||
#define E1_SERIAL_TX_PIN 37
|
||||
#define E1_SERIAL_RX_PIN 68
|
||||
|
||||
#endif
|
145
Marlin/src/pins/mega/pins_MINITRONICS.h
Normal file
145
Marlin/src/pins/mega/pins_MINITRONICS.h
Normal file
@ -0,0 +1,145 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program 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.
|
||||
*
|
||||
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
/**
|
||||
* Minitronics v1.0/1.1 pin assignments
|
||||
*/
|
||||
|
||||
/**
|
||||
* Rev B 2 JAN 2017
|
||||
*
|
||||
* Added pin definitions for M3, M4 & M5 spindle control commands
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef __AVR_ATmega1281__
|
||||
#error "Oops! Select 'Minitronics' in 'Tools > Board.'"
|
||||
#endif
|
||||
|
||||
#if HOTENDS > 2 || E_STEPPERS > 2
|
||||
#error "Minitronics supports up to 2 hotends / E-steppers. Comment out this line to continue."
|
||||
#endif
|
||||
|
||||
#define BOARD_NAME "Minitronics v1.0/1.1"
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_MIN_PIN 5
|
||||
#define X_MAX_PIN 2
|
||||
#define Y_MIN_PIN 2
|
||||
#define Y_MAX_PIN 15
|
||||
#define Z_MIN_PIN 6
|
||||
#define Z_MAX_PIN -1
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_STEP_PIN 48
|
||||
#define X_DIR_PIN 47
|
||||
#define X_ENABLE_PIN 49
|
||||
|
||||
#define Y_STEP_PIN 39 // A6
|
||||
#define Y_DIR_PIN 40 // A0
|
||||
#define Y_ENABLE_PIN 38
|
||||
|
||||
#define Z_STEP_PIN 42 // A2
|
||||
#define Z_DIR_PIN 43 // A6
|
||||
#define Z_ENABLE_PIN 41 // A1
|
||||
|
||||
#define E0_STEP_PIN 45
|
||||
#define E0_DIR_PIN 44
|
||||
#define E0_ENABLE_PIN 27
|
||||
|
||||
#define E1_STEP_PIN 36
|
||||
#define E1_DIR_PIN 35
|
||||
#define E1_ENABLE_PIN 37
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
#define TEMP_0_PIN 7 // Analog Input
|
||||
#define TEMP_1_PIN 6 // Analog Input
|
||||
#define TEMP_BED_PIN 6 // Analog Input
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN 7 // EXTRUDER 1
|
||||
#define HEATER_1_PIN 8 // EXTRUDER 2
|
||||
#define HEATER_BED_PIN 3 // BED
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN 9
|
||||
#endif
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
#define SDSS 16
|
||||
#define LED_PIN 46
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
#define BEEPER_PIN -1
|
||||
|
||||
#if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
|
||||
|
||||
#define LCD_PINS_RS 15 // CS chip select /SS chip slave select
|
||||
#define LCD_PINS_ENABLE 11 // SID (MOSI)
|
||||
#define LCD_PINS_D4 10 // SCK (CLK) clock
|
||||
|
||||
#define BTN_EN1 18
|
||||
#define BTN_EN2 17
|
||||
#define BTN_ENC 25
|
||||
|
||||
#define SD_DETECT_PIN 30
|
||||
|
||||
#else
|
||||
|
||||
#define LCD_PINS_RS -1
|
||||
#define LCD_PINS_ENABLE -1
|
||||
|
||||
// Buttons are directly attached using keypad
|
||||
#define BTN_EN1 -1
|
||||
#define BTN_EN2 -1
|
||||
#define BTN_ENC -1
|
||||
|
||||
#define SD_DETECT_PIN -1 // Minitronics doesn't use this
|
||||
#endif
|
||||
|
||||
//
|
||||
// M3/M4/M5 - Spindle/Laser Control
|
||||
//
|
||||
#if HAS_CUTTER // assumes we're only doing CNC work (no 3D printing)
|
||||
#undef HEATER_BED_PIN
|
||||
#undef TEMP_BED_PIN // need to free up some pins but also need to
|
||||
#undef TEMP_0_PIN // re-assign them (to unused pins) because Marlin
|
||||
#undef TEMP_1_PIN // requires the presence of certain pins or else it
|
||||
#define HEATER_BED_PIN 4 // won't compile
|
||||
#define TEMP_BED_PIN 50
|
||||
#define TEMP_0_PIN 51
|
||||
#define SPINDLE_LASER_ENA_PIN 52 // using A6 because it already has a pullup
|
||||
#define SPINDLE_LASER_PWM_PIN 3 // WARNING - LED & resistor pull up to +12/+24V stepper voltage
|
||||
#define SPINDLE_DIR_PIN 53
|
||||
#endif
|
93
Marlin/src/pins/mega/pins_SILVER_GATE.h
Normal file
93
Marlin/src/pins/mega/pins_SILVER_GATE.h
Normal file
@ -0,0 +1,93 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program 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.
|
||||
*
|
||||
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#if !defined(__AVR_ATmega1281__) && !defined(__AVR_ATmega2561__)
|
||||
#error "Oops! Select 'Silvergate' in 'Tools > Board.'"
|
||||
#endif
|
||||
|
||||
#define BOARD_NAME "Silver Gate"
|
||||
|
||||
#define X_STEP_PIN 43
|
||||
#define X_DIR_PIN 44
|
||||
#define X_ENABLE_PIN 42
|
||||
#define X_MIN_PIN 31
|
||||
#define X_MAX_PIN 34
|
||||
|
||||
#define Y_STEP_PIN 40
|
||||
#define Y_DIR_PIN 41
|
||||
#define Y_ENABLE_PIN 39
|
||||
#define Y_MIN_PIN 32
|
||||
#define Y_MAX_PIN 35
|
||||
|
||||
#define Z_STEP_PIN 13
|
||||
#define Z_DIR_PIN 38
|
||||
#define Z_ENABLE_PIN 14
|
||||
#define Z_MIN_PIN 33
|
||||
#define Z_MAX_PIN 36
|
||||
|
||||
#define E0_STEP_PIN 27
|
||||
#define E0_DIR_PIN 37
|
||||
#define E0_ENABLE_PIN 45
|
||||
|
||||
#define SDSS 16
|
||||
|
||||
#ifndef FIL_RUNOUT_PIN
|
||||
#define FIL_RUNOUT_PIN 34 // X_MAX unless overridden
|
||||
#endif
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN 5
|
||||
#endif
|
||||
|
||||
#define HEATER_0_PIN 7
|
||||
|
||||
#define ORIG_E0_AUTO_FAN_PIN 3 // Use this by NOT overriding E0_AUTO_FAN_PIN
|
||||
#define CONTROLLER_FAN_PIN 2
|
||||
|
||||
#define TEMP_0_PIN 7 // Analog Input
|
||||
|
||||
#define HEATER_BED_PIN 8
|
||||
#define TEMP_BED_PIN 6
|
||||
|
||||
#if HAS_GRAPHICAL_LCD
|
||||
#if ENABLED(U8GLIB_ST7920) // SPI GLCD 12864 ST7920
|
||||
#define LCD_PINS_RS 30
|
||||
#define LCD_PINS_ENABLE 20
|
||||
#define LCD_PINS_D4 25
|
||||
#define BEEPER_PIN 29
|
||||
#define BTN_EN1 19
|
||||
#define BTN_EN2 22
|
||||
#define BTN_ENC 24
|
||||
#define LCD_BACKLIGHT_PIN 6
|
||||
#if ENABLED(SILVER_GATE_GLCD_CONTROLLER)
|
||||
#define KILL_PIN 21
|
||||
#define HOME_PIN 28
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define SD_DETECT_PIN 15
|
||||
|
||||
#define STAT_LED_RED_PIN 23
|
||||
#define STAT_LED_BLUE_PIN 26
|
||||
#define CASE_LIGHT_PIN 51
|
Reference in New Issue
Block a user