Prusa MINI Firmware overview
Main Page
Modules
Classes
Files
File List
File Members
pins_AZTEEG_X5_MINI.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 MINI 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
#ifndef BOARD_INFO_NAME
33
#define BOARD_INFO_NAME "Azteeg X5 MINI"
34
#endif
35
#define BOARD_WEBSITE_URL "tiny.cc/x5_mini"
36
37
//
38
// LED
39
//
40
#define LED_PIN P1_18
41
42
//
43
// Servos
44
//
45
#define SERVO0_PIN P1_29
46
47
//
48
// Limit Switches
49
//
50
#define X_STOP_PIN P1_24
51
#define Y_STOP_PIN P1_26
52
#define Z_STOP_PIN P1_28
53
54
#ifndef FIL_RUNOUT_PIN
55
#define FIL_RUNOUT_PIN P2_04
56
#endif
57
58
#ifndef FILWIDTH_PIN
59
#define FILWIDTH_PIN 2 // Analog Input (P0_25)
60
#endif
61
62
//
63
// Steppers
64
//
65
#define X_STEP_PIN P2_01
66
#define X_DIR_PIN P0_11
67
#define X_ENABLE_PIN P0_10
68
69
#define Y_STEP_PIN P2_02
70
#define Y_DIR_PIN P0_20
71
#define Y_ENABLE_PIN P0_19
72
73
#define Z_STEP_PIN P2_03
74
#define Z_DIR_PIN P0_22
75
#define Z_ENABLE_PIN P0_21
76
77
#define E0_STEP_PIN P2_00
78
#define E0_DIR_PIN P0_05
79
#define E0_ENABLE_PIN P0_04
80
81
//
82
// DIGIPOT slave addresses
83
//
84
#ifndef DIGIPOT_I2C_ADDRESS_A
85
#define DIGIPOT_I2C_ADDRESS_A 0x2C // unshifted slave address for first DIGIPOT
86
#endif
87
88
#ifndef DIGIPOT_I2C_ADDRESS_B
89
#define DIGIPOT_I2C_ADDRESS_B 0x2E // unshifted slave address for second DIGIPOT
90
#endif
91
92
//
93
// Temperature Sensors
94
// 3.3V max when defined as an analog input
95
//
96
#define TEMP_BED_PIN 0 // A0 (TH1)
97
#define TEMP_0_PIN 1 // A1 (TH2)
98
99
//
100
// Heaters / Fans
101
//
102
#define HEATER_BED_PIN P2_07
103
#define HEATER_0_PIN P2_05
104
#ifndef FAN_PIN
105
#define FAN_PIN P0_26
106
#endif
107
#define FAN1_PIN P1_25
108
109
//
110
// Display
111
//
112
#if HAS_SPI_LCD
113
114
#if ENABLED(CR10_STOCKDISPLAY)
115
116
// Re-Arm can support Creality stock display without SD card reader and single cable on EXP3.
117
// Re-Arm J3 pins 1 (p1.31) & 2 (P3.26) are not used. Stock cable will need to have one
118
// 10-pin IDC connector trimmed or replaced with a 12-pin IDC connector to fit J3.
119
// Requires REVERSE_ENCODER_DIRECTION in Configuration.h
120
121
#define BEEPER_PIN P2_11 // J3-3 & AUX-4
122
123
#define BTN_EN1 P0_16 // J3-7 & AUX-4
124
#define BTN_EN2 P1_23 // J3-5 & AUX-4
125
#define BTN_ENC P3_25 // J3-4 & AUX-4
126
127
#define LCD_PINS_RS P0_15 // J3-9 & AUX-4 (CS)
128
#define LCD_PINS_ENABLE P0_18 // J3-10 & AUX-3 (SID, MOSI)
129
#define LCD_PINS_D4 P2_06 // J3-8 & AUX-3 (SCK, CLK)
130
131
#else
132
133
#define BTN_EN1 P3_26 // (31) J3-2 & AUX-4
134
#define BTN_EN2 P3_25 // (33) J3-4 & AUX-4
135
#define BTN_ENC P2_11 // (35) J3-3 & AUX-4
136
137
#define SD_DETECT_PIN P1_31 // (49) not 5V tolerant J3-1 & AUX-3
138
#define KILL_PIN P1_22 // (41) J5-4 & AUX-4
139
#define LCD_PINS_RS P0_16 // (16) J3-7 & AUX-4
140
#define LCD_SDSS P0_16 // (16) J3-7 & AUX-4
141
#define LCD_BACKLIGHT_PIN P0_16 // (16) J3-7 & AUX-4 - only used on DOGLCD controllers
142
#define LCD_PINS_ENABLE P0_18 // (51) (MOSI) J3-10 & AUX-3
143
#define LCD_PINS_D4 P0_15 // (52) (SCK) J3-9 & AUX-3
144
145
#define DOGLCD_A0 P2_06 // (59) J3-8 & AUX-2
146
147
#if ENABLED(REPRAPWORLD_KEYPAD)
148
#define SHIFT_OUT P0_18 // (51) (MOSI) J3-10 & AUX-3
149
#define SHIFT_CLK P0_15 // (52) (SCK) J3-9 & AUX-3
150
#define SHIFT_LD P1_31 // (49) not 5V tolerant J3-1 & AUX-3
151
#elif DISABLED(NEWPANEL)
152
//#define SHIFT_OUT P2_11 // (35) J3-3 & AUX-4
153
//#define SHIFT_CLK P3_26 // (31) J3-2 & AUX-4
154
//#define SHIFT_LD P3_25 // (33) J3-4 & AUX-4
155
//#define SHIFT_EN P1_22 // (41) J5-4 & AUX-4
156
#endif
157
158
#if ANY(VIKI2, miniVIKI)
159
//#define LCD_SCREEN_ROT_180
160
161
#define BEEPER_PIN P1_30 // (37) may change if cable changes
162
#define DOGLCD_CS P0_26 // (63) J5-3 & AUX-2
163
#define DOGLCD_SCK SCK_PIN
164
#define DOGLCD_MOSI MOSI_PIN
165
166
#define STAT_LED_BLUE_PIN P0_26 // (63) may change if cable changes
167
#define STAT_LED_RED_PIN P1_21 // ( 6) may change if cable changes
168
#else
169
#if ENABLED(ULTIPANEL)
170
#define LCD_PINS_D5 P1_17 // (71) ENET_MDIO
171
#define LCD_PINS_D6 P1_14 // (73) ENET_RX_ER
172
#define LCD_PINS_D7 P1_10 // (75) ENET_RXD1
173
#endif
174
#define BEEPER_PIN P1_30 // (37) not 5V tolerant
175
#define DOGLCD_CS P0_16 // (16)
176
#endif
177
178
#if ENABLED(MINIPANEL)
179
// GLCD features
180
// Uncomment screen orientation
181
//#define LCD_SCREEN_ROT_90
182
//#define LCD_SCREEN_ROT_180
183
//#define LCD_SCREEN_ROT_270
184
#endif
185
186
#endif
187
188
#endif // HAS_SPI_LCD
189
190
//
191
// SD Support
192
//
193
#ifndef SDCARD_CONNECTION
194
#define SDCARD_CONNECTION ONBOARD
195
#endif
196
197
#define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card
198
199
#if SD_CONNECTION_IS(LCD)
200
#define SCK_PIN P0_15
201
#define MISO_PIN P0_17
202
#define MOSI_PIN P0_18
203
#define SS_PIN P1_23
204
#elif SD_CONNECTION_IS(ONBOARD)
205
#undef SD_DETECT_PIN
206
#define SCK_PIN P0_07
207
#define MISO_PIN P0_08
208
#define MOSI_PIN P0_09
209
#define SS_PIN ONBOARD_SD_CS_PIN
210
#elif SD_CONNECTION_IS(CUSTOM_CABLE)
211
#error "No custom SD drive cable defined for this board."
212
#endif
Prusa-Firmware-Buddy-Private1
lib
Marlin
Marlin
src
pins
lpc1769
pins_AZTEEG_X5_MINI.h
Generated by
1.8.16