Prusa MINI Firmware overview
pins_AZTEEG_X3.h
Go to the documentation of this file.
1 /**
2  * Marlin 3D Printer Firmware
3  * Copyright (c) 2019 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 #pragma once
23 
24 /**
25  * AZTEEG_X3 Arduino Mega with RAMPS v1.4 pin assignments
26  */
27 
28 #ifndef __AVR_ATmega2560__
29  #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
30 #elif HOTENDS > 2 || E_STEPPERS > 2
31  #error "Azteeg X3 supports up to 2 hotends / E-steppers. Comment out this line to continue."
32 #endif
33 
34 #if ENABLED(CASE_LIGHT_ENABLE) && !PIN_EXISTS(CASE_LIGHT)
35  #define CASE_LIGHT_PIN 6 // Define before RAMPS pins include
36 #endif
37 #define BOARD_INFO_NAME "Azteeg X3"
38 
39 //
40 // Servos
41 //
42 #define SERVO0_PIN 44 // SERVO1 port
43 #define SERVO1_PIN 55 // SERVO2 port
44 
45 #include "pins_RAMPS_13.h"
46 
47 //
48 // LCD / Controller
49 //
50 #undef STAT_LED_RED_PIN
51 #undef STAT_LED_BLUE_PIN
52 
53 #if ANY(VIKI2, miniVIKI)
54 
55  #undef DOGLCD_A0
56  #undef DOGLCD_CS
57  #undef BTN_ENC
58  #define DOGLCD_A0 31
59  #define DOGLCD_CS 32
60  #define BTN_ENC 12
61 
62  #define STAT_LED_RED_PIN 64
63  #define STAT_LED_BLUE_PIN 63
64 
65 #else
66 
67  #define STAT_LED_RED_PIN 6
68  #define STAT_LED_BLUE_PIN 11
69 
70 #endif
71 
72 //
73 // Misc
74 //
75 #if ENABLED(CASE_LIGHT_ENABLE) && PIN_EXISTS(CASE_LIGHT, STAT_LED_RED) && STAT_LED_RED_PIN == CASE_LIGHT_PIN
76  #undef STAT_LED_RED_PIN
77 #endif
78 
79 //
80 // M3/M4/M5 - Spindle/Laser Control
81 //
82 #undef SPINDLE_LASER_PWM_PIN // Definitions in pins_RAMPS.h are no good with the AzteegX3 board
83 #undef SPINDLE_LASER_ENA_PIN
84 #undef SPINDLE_DIR_PIN
85 
86 #if HAS_CUTTER
87  #undef SDA // use EXP3 header
88  #undef SCL
89  #if SERVO0_PIN == 7
90  #undef SERVO0_PIN
91  #define SERVO0_PIN 11
92  #endif
93  #define SPINDLE_LASER_PWM_PIN 7 // Hardware PWM
94  #define SPINDLE_LASER_ENA_PIN 20 // Pullup!
95  #define SPINDLE_DIR_PIN 21
96 #endif
pins_RAMPS_13.h