Prusa MINI Firmware overview
pins_AZTEEG_X5_GT.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 X5 GT pin assignments
26  */
27 
28 #ifndef LPC1769
29  #error "Oops! Make sure you have the LPC1769 environment selected in your IDE."
30 #endif
31 
32 #define BOARD_INFO_NAME "Azteeg X5 GT"
33 #define BOARD_WEBSITE_URL "tinyurl.com/yx8tdqa3"
34 
35 //
36 // Custom CPU Speed 120MHz
37 //
38 #undef F_CPU
39 #define F_CPU 120000000
40 
41 //
42 // Servos
43 //
44 #define SERVO0_PIN P1_23
45 
46 //
47 // Limit Switches
48 //
49 #define X_MIN_PIN P1_24
50 #define X_MAX_PIN P1_27
51 #define Y_MIN_PIN P1_25
52 #define Y_MAX_PIN P1_28
53 #define Z_MIN_PIN P1_26
54 #define Z_MAX_PIN P1_29
55 
56 
57 //
58 // Steppers
59 //
60 #define X_STEP_PIN P2_01
61 #define X_DIR_PIN P0_11
62 #define X_ENABLE_PIN P0_10
63 #ifndef X_CS_PIN
64  #define X_CS_PIN P0_10 // BSD2660 default
65 #endif
66 
67 #define Y_STEP_PIN P2_02
68 #define Y_DIR_PIN P0_20
69 #define Y_ENABLE_PIN P0_19
70 #ifndef Y_CS_PIN
71  #define Y_CS_PIN P0_19 // BSD2660 default
72 #endif
73 
74 #define Z_STEP_PIN P2_03
75 #define Z_DIR_PIN P0_22
76 #define Z_ENABLE_PIN P0_21
77 #ifndef Z_CS_PIN
78  #define Z_CS_PIN P0_21 // BSD2660 default
79 #endif
80 
81 #define E0_STEP_PIN P2_00
82 #define E0_DIR_PIN P0_05
83 #define E0_ENABLE_PIN P0_04
84 #ifndef E0_CS_PIN
85  #define E0_CS_PIN P0_04 // BSD2660 default
86 #endif
87 
88 #define E1_STEP_PIN P2_08
89 #define E1_DIR_PIN P2_13
90 #define E1_ENABLE_PIN P4_29
91 #ifndef E1_CS_PIN
92  #define E1_CS_PIN P4_29 // BSD2660 default
93 #endif
94 
95 //
96 // Temperature Sensors
97 // 3.3V max when defined as an analog input
98 //
99 #define TEMP_BED_PIN 0 // A0 (TH1)
100 #define TEMP_0_PIN 1 // A1 (TH2)
101 #define TEMP_1_PIN 2 // A2 (TH3)
102 
103 
104 //
105 // Heaters / Fans
106 //
107 
108 #define HEATER_BED_PIN P2_07
109 #define HEATER_0_PIN P2_04
110 #define HEATER_1_PIN P2_05
111 #ifndef FAN_PIN
112  #define FAN_PIN P0_26
113 #endif
114 #define FAN1_PIN P1_22
115 
116 //
117 // Display
118 //
119 
120 #if ANY(VIKI2, miniVIKI)
121  #define BEEPER_PIN P1_31
122  #define DOGLCD_A0 P2_06
123  #define DOGLCD_CS P0_16
124 
125  #define BTN_EN1 P3_25
126  #define BTN_EN2 P3_26
127  #define BTN_ENC P2_11
128 
129  #define SD_DETECT_PIN P1_18
130  #define SDSS P1_21
131 
132  #define STAT_LED_RED_PIN P1_19
133  #define STAT_LED_BLUE_PIN P1_20
134 #endif