2016-03-24 23:19:46 -07:00
|
|
|
/**
|
2016-03-24 18:01:20 +00:00
|
|
|
* Marlin 3D Printer Firmware
|
2020-02-03 08:00:57 -06:00
|
|
|
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
2016-03-24 18:01:20 +00:00
|
|
|
*
|
|
|
|
* Based on Sprinter and grbl.
|
2019-06-27 23:57:50 -05:00
|
|
|
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
2016-03-24 18:01:20 +00:00
|
|
|
*
|
|
|
|
* 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
|
2020-07-23 05:20:14 +02:00
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2016-03-24 18:01:20 +00:00
|
|
|
*
|
|
|
|
*/
|
2019-07-04 22:44:12 -05:00
|
|
|
#pragma once
|
2016-03-24 18:01:20 +00:00
|
|
|
|
2015-02-19 17:28:38 -08:00
|
|
|
/**
|
2016-02-28 23:13:50 -08:00
|
|
|
* AZTEEG_X3 Arduino Mega with RAMPS v1.4 pin assignments
|
2015-02-19 17:28:38 -08:00
|
|
|
*/
|
|
|
|
|
2021-03-05 04:30:52 -06:00
|
|
|
#define REQUIRE_MEGA2560
|
|
|
|
#include "env_validate.h"
|
|
|
|
|
|
|
|
#if HOTENDS > 2 || E_STEPPERS > 2
|
2017-04-06 17:15:09 -05:00
|
|
|
#error "Azteeg X3 supports up to 2 hotends / E-steppers. Comment out this line to continue."
|
2016-07-29 16:13:19 -07:00
|
|
|
#endif
|
|
|
|
|
2018-03-28 12:51:59 -05:00
|
|
|
#if ENABLED(CASE_LIGHT_ENABLE) && !PIN_EXISTS(CASE_LIGHT)
|
2020-03-21 21:13:19 -05:00
|
|
|
#define CASE_LIGHT_PIN 6 // Define before RAMPS pins include
|
2017-04-07 13:52:21 -05:00
|
|
|
#endif
|
2019-08-20 19:08:58 -05:00
|
|
|
#define BOARD_INFO_NAME "Azteeg X3"
|
2017-04-07 13:52:21 -05:00
|
|
|
|
2016-10-27 06:46:03 +09:00
|
|
|
//
|
|
|
|
// Servos
|
|
|
|
//
|
2020-03-21 21:13:19 -05:00
|
|
|
#define SERVO0_PIN 44 // SERVO1 port
|
|
|
|
#define SERVO1_PIN 55 // SERVO2 port
|
2016-10-25 17:11:26 -04:00
|
|
|
|
2021-10-19 04:03:03 -05:00
|
|
|
#include "pins_RAMPS_13.h" // ... RAMPS
|
2019-06-05 21:32:10 -05:00
|
|
|
|
2016-10-09 05:27:04 +09:00
|
|
|
//
|
|
|
|
// LCD / Controller
|
|
|
|
//
|
2017-10-09 16:18:10 -05:00
|
|
|
#undef STAT_LED_RED_PIN
|
|
|
|
#undef STAT_LED_BLUE_PIN
|
|
|
|
|
2019-03-16 23:43:06 -05:00
|
|
|
#if ANY(VIKI2, miniVIKI)
|
2015-07-30 22:11:19 -07:00
|
|
|
|
2016-06-28 18:11:32 -07:00
|
|
|
#undef DOGLCD_A0
|
|
|
|
#undef DOGLCD_CS
|
|
|
|
#undef BTN_ENC
|
2020-03-21 21:13:19 -05:00
|
|
|
#define DOGLCD_A0 31
|
|
|
|
#define DOGLCD_CS 32
|
|
|
|
#define BTN_ENC 12
|
2015-07-31 09:36:20 -05:00
|
|
|
|
2020-03-21 21:13:19 -05:00
|
|
|
#define STAT_LED_RED_PIN 64
|
|
|
|
#define STAT_LED_BLUE_PIN 63
|
2015-07-30 22:11:19 -07:00
|
|
|
|
2016-09-24 16:26:41 -05:00
|
|
|
#else
|
2015-07-30 22:11:19 -07:00
|
|
|
|
2020-03-21 21:13:19 -05:00
|
|
|
#define STAT_LED_RED_PIN 6
|
|
|
|
#define STAT_LED_BLUE_PIN 11
|
2015-07-30 22:11:19 -07:00
|
|
|
|
2015-02-19 17:28:38 -08:00
|
|
|
#endif
|
2017-04-07 13:52:21 -05:00
|
|
|
|
|
|
|
//
|
|
|
|
// Misc
|
|
|
|
//
|
2021-01-06 01:23:56 +13:00
|
|
|
#if ENABLED(CASE_LIGHT_ENABLE) && PINS_EXIST(CASE_LIGHT, 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
|
|
|
|
//
|
2020-03-21 21:13:19 -05:00
|
|
|
#undef SPINDLE_LASER_PWM_PIN // Definitions in pins_RAMPS.h are no good with the AzteegX3 board
|
2019-04-08 17:52:33 -05:00
|
|
|
#undef SPINDLE_LASER_ENA_PIN
|
2017-04-07 13:52:21 -05:00
|
|
|
#undef SPINDLE_DIR_PIN
|
|
|
|
|
2019-06-27 23:06:49 -05:00
|
|
|
#if HAS_CUTTER
|
2020-03-21 21:13:19 -05:00
|
|
|
#undef SDA // use EXP3 header
|
2017-04-07 13:52:21 -05:00
|
|
|
#undef SCL
|
|
|
|
#if SERVO0_PIN == 7
|
|
|
|
#undef SERVO0_PIN
|
2020-03-21 21:13:19 -05:00
|
|
|
#define SERVO0_PIN 11
|
2017-06-01 12:33:24 -05:00
|
|
|
#endif
|
2020-03-21 21:13:19 -05:00
|
|
|
#define SPINDLE_LASER_PWM_PIN 7 // Hardware PWM
|
|
|
|
#define SPINDLE_LASER_ENA_PIN 20 // Pullup!
|
|
|
|
#define SPINDLE_DIR_PIN 21
|
2017-04-07 13:52:21 -05:00
|
|
|
#endif
|