2016-03-25 01:19:46 -05:00
|
|
|
/**
|
2016-03-24 13:01:20 -05:00
|
|
|
* Marlin 3D Printer Firmware
|
|
|
|
* Copyright (C) 2016 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/>.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2015-01-25 20:40:00 -06:00
|
|
|
/**
|
|
|
|
* AZTEEG_X3_PRO (Arduino Mega) pin assignments
|
|
|
|
*/
|
|
|
|
|
2016-02-29 01:13:50 -06:00
|
|
|
#include "pins_RAMPS_14.h"
|
2015-01-25 20:40:00 -06:00
|
|
|
|
2015-03-27 22:29:05 -05:00
|
|
|
#undef FAN_PIN
|
2015-03-28 21:14:42 -05:00
|
|
|
#define FAN_PIN 6 //Part Cooling System
|
2015-07-31 01:19:11 -05:00
|
|
|
#define BEEPER_PIN 33
|
2015-03-28 21:14:42 -05:00
|
|
|
#define CONTROLLERFAN_PIN 4 //Pin used for the fan to cool motherboard (-1 to disable)
|
|
|
|
//Fans/Water Pump to cool the hotend cool side.
|
|
|
|
#define EXTRUDER_0_AUTO_FAN_PIN 5
|
|
|
|
#define EXTRUDER_1_AUTO_FAN_PIN 5
|
|
|
|
#define EXTRUDER_2_AUTO_FAN_PIN 5
|
|
|
|
#define EXTRUDER_3_AUTO_FAN_PIN 5
|
|
|
|
//
|
|
|
|
//This section is to swap the MIN and MAX pins because the X3 Pro comes with only
|
2015-10-03 01:08:58 -05:00
|
|
|
//MIN endstops soldered onto the board. Delta code wants the homing endstops to be
|
2015-03-29 02:08:00 -05:00
|
|
|
//the MAX so I swapped them here.
|
2015-03-28 21:14:42 -05:00
|
|
|
//
|
2015-10-03 01:08:58 -05:00
|
|
|
#if ENABLED(DELTA)
|
2015-03-29 02:08:00 -05:00
|
|
|
#undef X_MIN_PIN
|
|
|
|
#undef X_MAX_PIN
|
|
|
|
#undef Y_MIN_PIN
|
|
|
|
#undef Y_MAX_PIN
|
|
|
|
#undef Z_MIN_PIN
|
|
|
|
#undef Z_MAX_PIN
|
2015-03-29 01:52:53 -05:00
|
|
|
|
2015-04-06 00:34:56 -05:00
|
|
|
#define X_MIN_PIN 2
|
|
|
|
#define X_MAX_PIN 3
|
|
|
|
#define Y_MIN_PIN 15
|
|
|
|
#define Y_MAX_PIN 14
|
|
|
|
#define Z_MIN_PIN 19
|
|
|
|
#define Z_MAX_PIN 18
|
2015-10-03 01:08:58 -05:00
|
|
|
#endif
|
2015-03-28 21:14:42 -05:00
|
|
|
//
|
2015-10-03 01:08:58 -05:00
|
|
|
#if ENABLED(Z_MIN_PROBE_ENDSTOP)
|
|
|
|
//#undef Z_MIN_PIN
|
|
|
|
//#define Z_MIN_PIN 15
|
2015-08-18 08:52:04 -05:00
|
|
|
// Define a pin to use as the signal pin on Arduino for the Z probe endstop.
|
2015-08-10 03:35:39 -05:00
|
|
|
#define Z_MIN_PROBE_PIN 19
|
2015-10-03 01:08:58 -05:00
|
|
|
#endif
|
2015-04-04 00:14:03 -05:00
|
|
|
//
|
2015-01-25 20:40:00 -06:00
|
|
|
#define E2_STEP_PIN 23
|
|
|
|
#define E2_DIR_PIN 25
|
|
|
|
#define E2_ENABLE_PIN 40
|
|
|
|
|
|
|
|
#define E3_STEP_PIN 27
|
|
|
|
#define E3_DIR_PIN 29
|
|
|
|
#define E3_ENABLE_PIN 41
|
|
|
|
|
|
|
|
#define E4_STEP_PIN 43
|
|
|
|
#define E4_DIR_PIN 37
|
|
|
|
#define E4_ENABLE_PIN 42
|
|
|
|
|
2015-03-27 22:29:05 -05:00
|
|
|
#undef HEATER_1_PIN
|
|
|
|
#undef HEATER_2_PIN
|
|
|
|
#undef HEATER_3_PIN
|
2015-03-28 21:14:42 -05:00
|
|
|
#define HEATER_1_PIN 9
|
2015-01-25 20:40:00 -06:00
|
|
|
#define HEATER_2_PIN 16
|
|
|
|
#define HEATER_3_PIN 17
|
2015-02-19 19:26:22 -06:00
|
|
|
#define HEATER_4_PIN 4
|
|
|
|
#define HEATER_5_PIN 5
|
|
|
|
#define HEATER_6_PIN 6
|
2015-01-25 20:40:00 -06:00
|
|
|
#define HEATER_7_PIN 11
|
|
|
|
|
2015-03-27 22:29:05 -05:00
|
|
|
#undef TEMP_2_PIN
|
|
|
|
#undef TEMP_3_PIN
|
2015-01-25 20:40:00 -06:00
|
|
|
#define TEMP_2_PIN 12 // ANALOG NUMBERING
|
|
|
|
#define TEMP_3_PIN 11 // ANALOG NUMBERING
|
|
|
|
#define TEMP_4_PIN 10 // ANALOG NUMBERING
|
2015-02-19 19:26:22 -06:00
|
|
|
#define TC1 4 // ANALOG NUMBERING Thermo couple on Azteeg X3Pro
|
|
|
|
#define TC2 5 // ANALOG NUMBERING Thermo couple on Azteeg X3Pro
|
2015-03-28 21:14:42 -05:00
|
|
|
|
|
|
|
//
|
|
|
|
//These Servo pins are for when they are defined. Tested for usage with bed leveling
|
2015-10-03 01:08:58 -05:00
|
|
|
//on a Delta with 1 servo. Running through the Z servo endstop in code.
|
2015-03-28 21:14:42 -05:00
|
|
|
//Physical wire attachment was done on EXT1 on the GND, 5V, and D47 pins.
|
|
|
|
//
|
2015-08-02 21:22:30 -05:00
|
|
|
#define SERVO0_PIN 47
|
2015-03-29 01:52:53 -05:00
|
|
|
|
|
|
|
//LCD Pins//
|
|
|
|
|
2015-10-03 01:08:58 -05:00
|
|
|
#if ENABLED(VIKI2) || ENABLED(miniVIKI)
|
2015-07-31 01:19:11 -05:00
|
|
|
#define BEEPER_PIN 33
|
2015-10-03 01:08:58 -05:00
|
|
|
// Pins for DOGM SPI LCD Support
|
2015-04-06 00:34:56 -05:00
|
|
|
#define DOGLCD_A0 44
|
|
|
|
#define DOGLCD_CS 45
|
|
|
|
#define LCD_SCREEN_ROT_180
|
2015-10-03 01:08:58 -05:00
|
|
|
|
|
|
|
//The encoder and click button
|
2015-04-06 00:34:56 -05:00
|
|
|
#define BTN_EN1 22
|
|
|
|
#define BTN_EN2 7
|
|
|
|
#define BTN_ENC 39 //the click switch
|
2015-10-03 01:08:58 -05:00
|
|
|
|
2015-04-06 00:34:56 -05:00
|
|
|
#define SDSS 53
|
2015-07-31 18:40:50 -05:00
|
|
|
#define SD_DETECT_PIN 49
|
2015-10-03 01:08:58 -05:00
|
|
|
|
2015-04-06 00:34:56 -05:00
|
|
|
#define KILL_PIN 31
|
2015-10-03 01:08:58 -05:00
|
|
|
#endif
|
2015-04-06 00:34:56 -05:00
|
|
|
|
2015-10-03 01:08:58 -05:00
|
|
|
#if ENABLED(TEMP_STAT_LEDS)
|
2015-04-06 00:34:56 -05:00
|
|
|
#define STAT_LED_RED 32
|
|
|
|
#define STAT_LED_BLUE 35
|
2015-10-03 01:08:58 -05:00
|
|
|
#endif
|