|
@@ -0,0 +1,112 @@
|
|
1
|
+/****************************************************************************************
|
|
2
|
+* FELIXprinters v2.0/3.0 pin assignment
|
|
3
|
+*
|
|
4
|
+****************************************************************************************/
|
|
5
|
+#if MOTHERBOARD == BOARD_FELIX2
|
|
6
|
+#define KNOWN_BOARD 1
|
|
7
|
+
|
|
8
|
+//////////////////FIX THIS//////////////
|
|
9
|
+#ifndef __AVR_ATmega1280__
|
|
10
|
+#ifndef __AVR_ATmega2560__
|
|
11
|
+#error Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
|
|
12
|
+#endif
|
|
13
|
+#endif
|
|
14
|
+
|
|
15
|
+#define LARGE_FLASH true
|
|
16
|
+
|
|
17
|
+#define X_STEP_PIN 54
|
|
18
|
+#define X_DIR_PIN 55
|
|
19
|
+#define X_ENABLE_PIN 38
|
|
20
|
+#define X_MIN_PIN 3
|
|
21
|
+#define X_MAX_PIN -1
|
|
22
|
+
|
|
23
|
+#define Y_STEP_PIN 60
|
|
24
|
+#define Y_DIR_PIN 61
|
|
25
|
+#define Y_ENABLE_PIN 56
|
|
26
|
+#define Y_MIN_PIN 14
|
|
27
|
+#define Y_MAX_PIN -1
|
|
28
|
+
|
|
29
|
+#define Z_STEP_PIN 46
|
|
30
|
+#define Z_DIR_PIN 48
|
|
31
|
+#define Z_ENABLE_PIN 62
|
|
32
|
+#define Z_MIN_PIN 18
|
|
33
|
+#define Z_MAX_PIN -1
|
|
34
|
+
|
|
35
|
+#define Z2_STEP_PIN -1
|
|
36
|
+#define Z2_DIR_PIN -1
|
|
37
|
+#define Z2_ENABLE_PIN -1
|
|
38
|
+
|
|
39
|
+#define E0_STEP_PIN 26
|
|
40
|
+#define E0_DIR_PIN 28
|
|
41
|
+#define E0_ENABLE_PIN 24
|
|
42
|
+
|
|
43
|
+#define E1_STEP_PIN 36
|
|
44
|
+#define E1_DIR_PIN 34
|
|
45
|
+#define E1_ENABLE_PIN 30
|
|
46
|
+
|
|
47
|
+#define SDPOWER 1
|
|
48
|
+#define SDSS 53
|
|
49
|
+#define LED_PIN 13
|
|
50
|
+
|
|
51
|
+#define FAN_PIN 9 // (Sprinter config)
|
|
52
|
+#define PS_ON_PIN 12
|
|
53
|
+
|
|
54
|
+#define KILL_PIN -1
|
|
55
|
+
|
|
56
|
+#define HEATER_0_PIN 10 // EXTRUDER 1
|
|
57
|
+#define HEATER_1_PIN 7 // EXTRUDER 2 (FAN On Sprinter)
|
|
58
|
+#define HEATER_2_PIN -1
|
|
59
|
+#define HEATER_BED_PIN 8 // BED
|
|
60
|
+
|
|
61
|
+#define TEMP_0_PIN 13 // ANALOG NUMBERING
|
|
62
|
+#define TEMP_1_PIN 15 // ANALOG NUMBERING
|
|
63
|
+#define TEMP_2_PIN -1 // ANALOG NUMBERING
|
|
64
|
+
|
|
65
|
+#define TEMP_BED_PIN 14 // ANALOG NUMBERING
|
|
66
|
+
|
|
67
|
+#ifdef ULTRA_LCD
|
|
68
|
+
|
|
69
|
+#ifdef NEWPANEL
|
|
70
|
+//encoder rotation values
|
|
71
|
+#define encrot0 0
|
|
72
|
+#define encrot1 2
|
|
73
|
+#define encrot2 3
|
|
74
|
+#define encrot3 1
|
|
75
|
+
|
|
76
|
+#define BLEN_A 0
|
|
77
|
+#define BLEN_B 1
|
|
78
|
+#define BLEN_C 2
|
|
79
|
+
|
|
80
|
+#define LCD_PINS_RS 16
|
|
81
|
+#define LCD_PINS_ENABLE 17
|
|
82
|
+#define LCD_PINS_D4 23
|
|
83
|
+#define LCD_PINS_D5 25
|
|
84
|
+#define LCD_PINS_D6 27
|
|
85
|
+#define LCD_PINS_D7 29
|
|
86
|
+
|
|
87
|
+//arduino pin which triggers an piezzo beeper
|
|
88
|
+#define BEEPER 33 // Beeper on AUX-4
|
|
89
|
+
|
|
90
|
+//buttons are directly attached using AUX-2
|
|
91
|
+#define BTN_EN1 37
|
|
92
|
+#define BTN_EN2 35
|
|
93
|
+#define BTN_ENC 31 //the click
|
|
94
|
+
|
|
95
|
+#define SDCARDDETECT 6 // Ramps does not use this port
|
|
96
|
+#endif //NEWPANEL
|
|
97
|
+#endif //ULTRA_LCD
|
|
98
|
+
|
|
99
|
+// SPI for Max6675 Thermocouple
|
|
100
|
+
|
|
101
|
+#ifndef SDSUPPORT
|
|
102
|
+// these pins are defined in the SD library if building with SD support
|
|
103
|
+#define MAX_SCK_PIN 52
|
|
104
|
+#define MAX_MISO_PIN 50
|
|
105
|
+#define MAX_MOSI_PIN 51
|
|
106
|
+#define MAX6675_SS 53
|
|
107
|
+#else
|
|
108
|
+#define MAX6675_SS 49
|
|
109
|
+#endif
|
|
110
|
+
|
|
111
|
+#endif//MOTHERBOARD == BOARD_FELIX2
|
|
112
|
+
|