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-02-19 19:28:38 -06:00
|
|
|
/**
|
2016-02-29 01:13:50 -06:00
|
|
|
* AZTEEG_X3 Arduino Mega with RAMPS v1.4 pin assignments
|
2015-02-19 19:28:38 -06:00
|
|
|
*/
|
|
|
|
|
2017-04-07 13:52:21 -05:00
|
|
|
#ifndef __AVR_ATmega2560__
|
|
|
|
#error "Oops! Make sure you have 'Arduino Mega 2560' selected from the 'Tools -> Boards' menu."
|
|
|
|
#endif
|
|
|
|
|
2017-04-06 17:15:09 -05:00
|
|
|
#if HOTENDS > 2 || E_STEPPERS > 2
|
|
|
|
#error "Azteeg X3 supports up to 2 hotends / E-steppers. Comment out this line to continue."
|
2016-07-29 18:13:19 -05:00
|
|
|
#endif
|
|
|
|
|
2017-06-01 12:33:24 -05:00
|
|
|
#if ENABLED(CASE_LIGHT_ENABLE) && !PIN_EXISTS(CASE_LIGHT)
|
|
|
|
#define CASE_LIGHT_PIN 6 // must define it here or else RAMPS will define it
|
2017-04-07 13:52:21 -05:00
|
|
|
#endif
|
2017-06-01 12:33:24 -05:00
|
|
|
#define BOARD_NAME "Azteeg X3"
|
2017-04-07 13:52:21 -05:00
|
|
|
|
2016-08-02 15:59:43 -05:00
|
|
|
#include "pins_RAMPS_13.h"
|
2015-02-19 19:28:38 -06:00
|
|
|
|
2016-10-26 16:46:03 -05:00
|
|
|
//
|
|
|
|
// Servos
|
|
|
|
//
|
2016-10-25 16:11:26 -05:00
|
|
|
#undef SERVO0_PIN
|
|
|
|
#undef SERVO1_PIN
|
|
|
|
#define SERVO0_PIN 44 // SERVO1 port
|
|
|
|
#define SERVO1_PIN 55 // SERVO2 port
|
|
|
|
|
2016-10-08 15:27:04 -05:00
|
|
|
//
|
|
|
|
// LCD / Controller
|
|
|
|
//
|
2015-07-31 00:11:19 -05:00
|
|
|
#if ENABLED(VIKI2) || ENABLED(miniVIKI)
|
|
|
|
|
2016-06-28 20:11:32 -05:00
|
|
|
#undef DOGLCD_A0
|
|
|
|
#undef DOGLCD_CS
|
|
|
|
#undef BTN_ENC
|
2015-07-31 09:36:20 -05:00
|
|
|
#define DOGLCD_A0 31
|
|
|
|
#define DOGLCD_CS 32
|
2016-06-28 20:11:32 -05:00
|
|
|
#define BTN_ENC 12
|
2015-07-31 09:36:20 -05:00
|
|
|
|
2016-09-24 16:26:41 -05:00
|
|
|
#undef STAT_LED_RED_PIN
|
|
|
|
#undef STAT_LED_BLUE_PIN
|
|
|
|
#define STAT_LED_RED_PIN 64
|
|
|
|
#define STAT_LED_BLUE_PIN 63
|
2015-07-31 00:11:19 -05:00
|
|
|
|
2016-09-24 16:26:41 -05:00
|
|
|
#else
|
2015-07-31 00:11:19 -05:00
|
|
|
|
2016-09-24 16:26:41 -05:00
|
|
|
#define STAT_LED_RED_PIN 6
|
|
|
|
#define STAT_LED_BLUE_PIN 11
|
2015-07-31 00:11:19 -05:00
|
|
|
|
2015-02-19 19:28:38 -06:00
|
|
|
#endif
|
2017-04-07 13:52:21 -05:00
|
|
|
|
|
|
|
//
|
|
|
|
// Misc
|
|
|
|
//
|
2017-06-04 11:30:03 -05:00
|
|
|
#if ENABLED(CASE_LIGHT_ENABLE) && PIN_EXISTS(CASE_LIGHT) && PIN_EXISTS(STAT_LED_RED) && STAT_LED_RED_PIN == CASE_LIGHT_PIN
|
2017-04-07 13:52:21 -05:00
|
|
|
#undef STAT_LED_RED_PIN
|
|
|
|
#endif
|
|
|
|
|
|
|
|
//
|
|
|
|
// M3/M4/M5 - Spindle/Laser Control
|
|
|
|
//
|
|
|
|
#undef SPINDLE_LASER_PWM_PIN // Definitions in pins_RAMPS.h are no good with the AzteegX3 board
|
|
|
|
#undef SPINDLE_LASER_ENABLE_PIN
|
|
|
|
#undef SPINDLE_DIR_PIN
|
|
|
|
|
|
|
|
#if ENABLED(SPINDLE_LASER_ENABLE)
|
|
|
|
#undef SDA // use EXP3 header
|
|
|
|
#undef SCL
|
|
|
|
#if SERVO0_PIN == 7
|
|
|
|
#undef SERVO0_PIN
|
|
|
|
#def SERVO0_PIN 11
|
2017-06-01 12:33:24 -05:00
|
|
|
#endif
|
2017-04-07 13:52:21 -05:00
|
|
|
#define SPINDLE_LASER_PWM_PIN 7 // MUST BE HARDWARE PWM
|
|
|
|
#define SPINDLE_LASER_ENABLE_PIN 20 // Pin should have a pullup!
|
|
|
|
#define SPINDLE_DIR_PIN 21
|
|
|
|
#endif
|