1 |
ron |
1 |
/**
|
|
|
2 |
* Marlin 3D Printer Firmware
|
|
|
3 |
* Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
|
|
4 |
*
|
|
|
5 |
* Based on Sprinter and grbl.
|
|
|
6 |
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
|
|
|
7 |
*
|
|
|
8 |
* This program is free software: you can redistribute it and/or modify
|
|
|
9 |
* it under the terms of the GNU General Public License as published by
|
|
|
10 |
* the Free Software Foundation, either version 3 of the License, or
|
|
|
11 |
* (at your option) any later version.
|
|
|
12 |
*
|
|
|
13 |
* This program is distributed in the hope that it will be useful,
|
|
|
14 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
15 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
16 |
* GNU General Public License for more details.
|
|
|
17 |
*
|
|
|
18 |
* You should have received a copy of the GNU General Public License
|
|
|
19 |
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
20 |
*
|
|
|
21 |
*/
|
|
|
22 |
|
|
|
23 |
/**
|
|
|
24 |
* AZTEEG_X3 Arduino Mega with RAMPS v1.4 pin assignments
|
|
|
25 |
*/
|
|
|
26 |
|
|
|
27 |
#ifndef __AVR_ATmega2560__
|
|
|
28 |
#error "Oops! Make sure you have 'Arduino Mega 2560' selected from the 'Tools -> Boards' menu."
|
|
|
29 |
#endif
|
|
|
30 |
|
|
|
31 |
#if HOTENDS > 2 || E_STEPPERS > 2
|
|
|
32 |
#error "Azteeg X3 supports up to 2 hotends / E-steppers. Comment out this line to continue."
|
|
|
33 |
#endif
|
|
|
34 |
|
|
|
35 |
#if ENABLED(CASE_LIGHT_ENABLE) && !PIN_EXISTS(CASE_LIGHT)
|
|
|
36 |
#define CASE_LIGHT_PIN 6 // Define before RAMPS pins include
|
|
|
37 |
#endif
|
|
|
38 |
#define BOARD_NAME "Azteeg X3"
|
|
|
39 |
|
|
|
40 |
#include "pins_RAMPS_13.h"
|
|
|
41 |
|
|
|
42 |
//
|
|
|
43 |
// Servos
|
|
|
44 |
//
|
|
|
45 |
#undef SERVO0_PIN
|
|
|
46 |
#undef SERVO1_PIN
|
|
|
47 |
#define SERVO0_PIN 44 // SERVO1 port
|
|
|
48 |
#define SERVO1_PIN 55 // SERVO2 port
|
|
|
49 |
|
|
|
50 |
//
|
|
|
51 |
// LCD / Controller
|
|
|
52 |
//
|
|
|
53 |
#undef STAT_LED_RED_PIN
|
|
|
54 |
#undef STAT_LED_BLUE_PIN
|
|
|
55 |
|
|
|
56 |
#if ENABLED(VIKI2) || ENABLED(miniVIKI)
|
|
|
57 |
|
|
|
58 |
#undef DOGLCD_A0
|
|
|
59 |
#undef DOGLCD_CS
|
|
|
60 |
#undef BTN_ENC
|
|
|
61 |
#define DOGLCD_A0 31
|
|
|
62 |
#define DOGLCD_CS 32
|
|
|
63 |
#define BTN_ENC 12
|
|
|
64 |
|
|
|
65 |
#define STAT_LED_RED_PIN 64
|
|
|
66 |
#define STAT_LED_BLUE_PIN 63
|
|
|
67 |
|
|
|
68 |
#else
|
|
|
69 |
|
|
|
70 |
#define STAT_LED_RED_PIN 6
|
|
|
71 |
#define STAT_LED_BLUE_PIN 11
|
|
|
72 |
|
|
|
73 |
#endif
|
|
|
74 |
|
|
|
75 |
//
|
|
|
76 |
// Misc
|
|
|
77 |
//
|
|
|
78 |
#if ENABLED(CASE_LIGHT_ENABLE) && PIN_EXISTS(CASE_LIGHT) && PIN_EXISTS(STAT_LED_RED) && STAT_LED_RED_PIN == CASE_LIGHT_PIN
|
|
|
79 |
#undef STAT_LED_RED_PIN
|
|
|
80 |
#endif
|
|
|
81 |
|
|
|
82 |
//
|
|
|
83 |
// M3/M4/M5 - Spindle/Laser Control
|
|
|
84 |
//
|
|
|
85 |
#undef SPINDLE_LASER_PWM_PIN // Definitions in pins_RAMPS.h are no good with the AzteegX3 board
|
|
|
86 |
#undef SPINDLE_LASER_ENABLE_PIN
|
|
|
87 |
#undef SPINDLE_DIR_PIN
|
|
|
88 |
|
|
|
89 |
#if ENABLED(SPINDLE_LASER_ENABLE)
|
|
|
90 |
#undef SDA // use EXP3 header
|
|
|
91 |
#undef SCL
|
|
|
92 |
#if SERVO0_PIN == 7
|
|
|
93 |
#undef SERVO0_PIN
|
|
|
94 |
#define SERVO0_PIN 11
|
|
|
95 |
#endif
|
|
|
96 |
#define SPINDLE_LASER_PWM_PIN 7 // MUST BE HARDWARE PWM
|
|
|
97 |
#define SPINDLE_LASER_ENABLE_PIN 20 // Pin should have a pullup!
|
|
|
98 |
#define SPINDLE_DIR_PIN 21
|
|
|
99 |
#endif
|