Firmware2/Marlin/src/pins/ramps/pins_AZTEEG_X3.h

97 lines
2.8 KiB
C
Raw Normal View History

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