Kaynağa Gözat

Consistent order/formatting of pins files

Scott Lahteine 7 yıl önce
ebeveyn
işleme
e78274a7f4

+ 30
- 15
Marlin/pins_3DRAG.h Dosyayı Görüntüle

@@ -42,20 +42,35 @@
42 42
 
43 43
 #include "pins_RAMPS.h"
44 44
 
45
-#define HEATER_2_PIN       6
45
+//
46
+// Limit Switches
47
+//
48
+#undef Z_MAX_PIN
49
+#define Z_MAX_PIN          -1
46 50
 
51
+//
52
+// Steppers
53
+//
47 54
 #undef Z_ENABLE_PIN
48 55
 #define Z_ENABLE_PIN       63
49 56
 
50
-#undef Z_MAX_PIN
51
-#define Z_MAX_PIN          -1
52
-
57
+//
58
+// SD Card
59
+//
53 60
 #undef SDSS
54 61
 #define SDSS               25//53
55 62
 
63
+//
64
+// Heaters / Fans
65
+//
66
+#define HEATER_2_PIN        6
67
+
68
+//
69
+// LCD / Controller
70
+//
56 71
 #if ENABLED(ULTRA_LCD) && ENABLED(NEWPANEL)
57 72
   #undef BEEPER_PIN
58
-  #define BEEPER_PIN -1
73
+  #define BEEPER_PIN       -1
59 74
 
60 75
   #undef LCD_PINS_RS
61 76
   #undef LCD_PINS_ENABLE
@@ -63,23 +78,23 @@
63 78
   #undef LCD_PINS_D5
64 79
   #undef LCD_PINS_D6
65 80
   #undef LCD_PINS_D7
66
-  #define LCD_PINS_RS 27
67
-  #define LCD_PINS_ENABLE 29
68
-  #define LCD_PINS_D4 37
69
-  #define LCD_PINS_D5 35
70
-  #define LCD_PINS_D6 33
71
-  #define LCD_PINS_D7 31
81
+  #define LCD_PINS_RS      27
82
+  #define LCD_PINS_ENABLE  29
83
+  #define LCD_PINS_D4      37
84
+  #define LCD_PINS_D5      35
85
+  #define LCD_PINS_D6      33
86
+  #define LCD_PINS_D7      31
72 87
 
73 88
   // Buttons
74 89
   #undef BTN_EN1
75 90
   #undef BTN_EN2
76 91
   #undef BTN_ENC
77
-  #define BTN_EN1 16
78
-  #define BTN_EN2 17
79
-  #define BTN_ENC 23
92
+  #define BTN_EN1          16
93
+  #define BTN_EN2          17
94
+  #define BTN_ENC          23
80 95
 
81 96
 #else
82 97
 
83
-  #define BEEPER_PIN 33
98
+  #define BEEPER_PIN       33
84 99
 
85 100
 #endif // ULTRA_LCD && NEWPANEL

+ 36
- 22
Marlin/pins_5DPRINT.h Dosyayı Görüntüle

@@ -35,45 +35,59 @@
35 35
 
36 36
 #define LARGE_FLASH        true
37 37
 
38
+//
39
+// Limit Switches
40
+//
41
+#define X_STOP_PIN         37
42
+#define Y_STOP_PIN         36
43
+#define Z_STOP_PIN         39
44
+
45
+//
46
+// Steppers
47
+//
38 48
 #define X_STEP_PIN          0
39 49
 #define X_DIR_PIN           1
40 50
 #define X_ENABLE_PIN       23
41
-#define X_STOP_PIN         37
42 51
 
43 52
 #define Y_STEP_PIN          2
44 53
 #define Y_DIR_PIN           3
45 54
 #define Y_ENABLE_PIN       19
46
-#define Y_STOP_PIN         36
47 55
 
48 56
 #define Z_STEP_PIN          4
49 57
 #define Z_DIR_PIN           5
50 58
 #define Z_ENABLE_PIN       18
51
-#define Z_STOP_PIN         39
52 59
 
53 60
 #define E0_STEP_PIN         6
54 61
 #define E0_DIR_PIN          7
55 62
 #define E0_ENABLE_PIN      17
56 63
 
57
-#define HEATER_0_PIN       21  // Extruder
58
-#define HEATER_BED_PIN     20  // Bed
64
+// Microstepping pins - Mapping not from fastio.h (?)
65
+#define X_MS1_PIN          25
66
+#define X_MS2_PIN          26
67
+#define Y_MS1_PIN           9
68
+#define Y_MS2_PIN           8
69
+#define Z_MS1_PIN           7
70
+#define Z_MS2_PIN           6
71
+#define E0_MS1_PIN          5
72
+#define E0_MS2_PIN          4
73
+
74
+//
75
+// Temperature Sensors
76
+//
77
+#define TEMP_0_PIN          1  // Analog
78
+#define TEMP_BED_PIN        0  // Analog
79
+
80
+//
81
+// Heaters / Fans
82
+//
83
+#define HEATER_0_PIN       21
84
+#define HEATER_BED_PIN     20
85
+
59 86
 // You may need to change FAN_PIN to 16 because Marlin isn't using fastio.h
60 87
 // for the fan and Teensyduino uses a different pin mapping.
61
-#define FAN_PIN            16  // Fan
62
-
63
-#define TEMP_0_PIN          1  // Extruder / Analog pin numbering
64
-#define TEMP_BED_PIN        0  // Bed / Analog pin numbering
88
+#define FAN_PIN            16
65 89
 
66
-// The SDSS pin uses a different pin mapping from file fastio.h
90
+//
91
+// SD Card
92
+//
67 93
 #define SDSS               20
68
-
69
-// Microstepping pins
70
-// Note that the pin mapping is not from fastio.h
71
-// See Sd2PinMap.h for the pin configurations ???
72
-#define X_MS1_PIN 25
73
-#define X_MS2_PIN 26
74
-#define Y_MS1_PIN 9
75
-#define Y_MS2_PIN 8
76
-#define Z_MS1_PIN 7
77
-#define Z_MS2_PIN 6
78
-#define E0_MS1_PIN 5
79
-#define E0_MS2_PIN 4

+ 29
- 14
Marlin/pins_99.h Dosyayı Görüntüle

@@ -23,31 +23,46 @@
23 23
 /**
24 24
  * Board 99 pin assignments
25 25
  */
26
+
26 27
 #define BOARD_NAME          "99 Unknown"
27
- 
28
+
29
+//
30
+// Limit Switches
31
+//
32
+#define X_STOP_PIN         16
33
+#define Y_STOP_PIN         67
34
+#define Z_STOP_PIN         59
35
+
36
+//
37
+// Steppers
38
+//
28 39
 #define X_STEP_PIN          2
29 40
 #define X_DIR_PIN           3
30
-#define X_ENABLE_PIN        -1
31
-#define X_STOP_PIN          16
41
+#define X_ENABLE_PIN       -1
32 42
 
33 43
 #define Y_STEP_PIN          5
34 44
 #define Y_DIR_PIN           6
35 45
 #define Y_ENABLE_PIN       -1
36
-#define Y_STOP_PIN          67
37 46
 
38
-#define Z_STEP_PIN          62
39
-#define Z_DIR_PIN           63
47
+#define Z_STEP_PIN         62
48
+#define Z_DIR_PIN          63
40 49
 #define Z_ENABLE_PIN       -1
41
-#define Z_STOP_PIN          59
42 50
 
43
-#define E0_STEP_PIN         65
44
-#define E0_DIR_PIN          66
51
+#define E0_STEP_PIN        65
52
+#define E0_DIR_PIN         66
45 53
 #define E0_ENABLE_PIN      -1
46 54
 
47
-#define SDSS               53
48
-#define PS_ON_PIN           9
55
+//
56
+// Temperature Sensors
57
+//
58
+#define TEMP_0_PIN          6   // ANALOG INPUT - NOT DIGITAL OUTPUT
59
+#define TEMP_BED_PIN       10
49 60
 
50
-#define HEATER_0_PIN        13
51
-#define TEMP_0_PIN          6   // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
61
+//
62
+// Heaters / Fans
63
+//
64
+#define HEATER_0_PIN       13
52 65
 #define HEATER_BED_PIN      4
53
-#define TEMP_BED_PIN       10
66
+
67
+#define SDSS               53
68
+#define PS_ON_PIN           9

+ 85
- 70
Marlin/pins_A4JP.h Dosyayı Görüntüle

@@ -30,39 +30,15 @@
30 30
 
31 31
 #define BOARD_NAME "AJ4P"
32 32
 
33
-// Servo support
33
+//
34
+// Servos
35
+//
34 36
 #define SERVO0_PIN 22 // Motor header MX1
35 37
 #define SERVO1_PIN 23 // Motor header MX2
36 38
 #define SERVO2_PIN 24 // Motor header MX3
37 39
 #define SERVO3_PIN  5 // PWM header pin 5
38 40
 
39
-#if ENABLED(Z_PROBE_SLED)
40
-  #define SLED_PIN -1
41
-#endif
42
-
43
-//Fan_2 2
44
-
45
-/*****************
46
-#if ENABLED(ULTRA_LCD)
47
-
48
-  #define KILL_PIN -1 //was 80 Glen maybe a mistake
49
-
50
-#endif // ULTRA_LCD */
51
-
52
-#if ENABLED(VIKI2) || ENABLED(miniVIKI)
53
-  #define BEEPER_PIN 44
54
-  // Pins for DOGM SPI LCD Support
55
-  #define DOGLCD_A0  70
56
-  #define DOGLCD_CS  71
57
-  #define LCD_SCREEN_ROT_180
58
-
59
-  #define SD_DETECT_PIN -1 // Pin 72 if using easy adapter board
60
-
61
-  #if ENABLED(TEMP_STAT_LEDS)
62
-    #define STAT_LED_RED      22
63
-    #define STAT_LED_BLUE     32
64
-  #endif
65
-#endif // VIKI2/miniVIKI
41
+#define SLED_PIN -1
66 42
 
67 43
 #define FILWIDTH_PIN        3  // ANALOG NUMBERING
68 44
 
@@ -71,57 +47,81 @@
71 47
  ************************************************/
72 48
 
73 49
 #define LARGE_FLASH true
74
-#define X_STEP_PIN    37
75
-#define X_DIR_PIN     48
76
-#define X_MIN_PIN     12
77
-#define X_MAX_PIN     24
78
-#define X_ENABLE_PIN  29
79
-#define X_MS1_PIN     40
80
-#define X_MS2_PIN     41
81
-#define Y_STEP_PIN    36
82
-#define Y_DIR_PIN     49
83
-#define Y_MIN_PIN     11
84
-#define Y_MAX_PIN     23
85
-#define Y_ENABLE_PIN  28
86
-#define Y_MS1_PIN     69
87
-#define Y_MS2_PIN     39
88
-#define Z_STEP_PIN    35
89
-#define Z_DIR_PIN     47
90
-#define Z_MIN_PIN     10
91
-#define Z_MAX_PIN     30
92
-#define Z_ENABLE_PIN  27
93
-#define Z_MS1_PIN     68
94
-#define Z_MS2_PIN     67
95 50
 
96
-#define HEATER_BED_PIN 3
97
-#define TEMP_BED_PIN   7 //2014/02/04  0:T0 / 1:T1 / 2:T2 / 7:T3
51
+//
52
+// Limit Switches
53
+//
54
+#define X_MIN_PIN           12
55
+#define X_MAX_PIN           24
56
+#define Y_MIN_PIN           11
57
+#define Y_MAX_PIN           23
58
+#define Z_MIN_PIN           10
59
+#define Z_MAX_PIN           30
60
+
61
+//
62
+// Z Probe (when not Z_MIN_PIN)
63
+//
64
+#ifndef Z_MIN_PROBE_PIN
65
+  #define Z_MIN_PROBE_PIN   30
66
+#endif
67
+
68
+//
69
+// Steppers
70
+//
71
+#define X_STEP_PIN          37
72
+#define X_DIR_PIN           48
73
+#define X_ENABLE_PIN        29
74
+#define X_MS1_PIN           40
75
+#define X_MS2_PIN           41
76
+
77
+#define Y_STEP_PIN          36
78
+#define Y_DIR_PIN           49
79
+#define Y_ENABLE_PIN        28
80
+#define Y_MS1_PIN           69
81
+#define Y_MS2_PIN           39
82
+
83
+#define Z_STEP_PIN          35
84
+#define Z_DIR_PIN           47
85
+#define Z_ENABLE_PIN        27
86
+#define Z_MS1_PIN           68
87
+#define Z_MS2_PIN           67
88
+
89
+#define E0_STEP_PIN         34
90
+#define E0_DIR_PIN          43
91
+#define E0_ENABLE_PIN       26
92
+#define E0_MS1_PIN          65
93
+#define E0_MS2_PIN          66
94
+
95
+#define E1_STEP_PIN         33
96
+#define E1_DIR_PIN          42
97
+#define E1_ENABLE_PIN       25
98
+#define E1_MS1_PIN          63
99
+#define E1_MS2_PIN          64
100
+
101
+#define DIGIPOTSS_PIN       38
102
+#define DIGIPOT_CHANNELS {4,5,3,0,1} // X Y Z E0 E1 digipot channels to stepper driver mapping
103
+
104
+//
105
+// Heaters / Fans
106
+//
98 107
 #define HEATER_0_PIN   9
99
-#define TEMP_0_PIN     0
100 108
 #define HEATER_1_PIN   7
109
+#define HEATER_BED_PIN 3
101 110
 
102
-#define E0_STEP_PIN   34
103
-#define E0_DIR_PIN    43
104
-#define E0_ENABLE_PIN 26
105
-#define E0_MS1_PIN    65
106
-#define E0_MS2_PIN    66
107
-#define E1_STEP_PIN   33
108
-#define E1_DIR_PIN    42
109
-#define E1_ENABLE_PIN 25
110
-#define E1_MS1_PIN    63
111
-#define E1_MS2_PIN    64
112
-
113
-#define DIGIPOTSS_PIN 38
114
-#define DIGIPOT_CHANNELS {4,5,3,0,1} // X Y Z E0 E1 digipot channels to stepper driver mapping
111
+#define FAN_PIN        8
112
+#define FAN0_PIN       6
113
+#define FAN1_PIN       2
114
+
115
+#define TEMP_0_PIN     0
116
+#define TEMP_BED_PIN   7
115 117
 
116 118
 #define SDSS          53
117 119
 #define LED_PIN       13
118
-#define FAN_PIN        8
119 120
 #define PS_ON_PIN      4
120
-#define FAN_0_PIN      6 //Glen
121
-#define FAN_1_PIN      2 //Glen
122
-
123
-// 2015/12/23
124 121
 
122
+//
123
+// LCD / Controller
124
+//
125 125
 #define LCD_PINS_RS     70 //ext2_5
126 126
 #define LCD_PINS_ENABLE 71 //ext2_7
127 127
 #define LCD_PINS_D4     72 ///////Ext2 9 ?
@@ -139,3 +139,18 @@
139 139
 #define BTN_DOWN        85 //ext2_6
140 140
 
141 141
 #define HOME_PIN        BTN_HOME
142
+
143
+#if ENABLED(VIKI2) || ENABLED(miniVIKI)
144
+  #define BEEPER_PIN 44
145
+  // Pins for DOGM SPI LCD Support
146
+  #define DOGLCD_A0  70
147
+  #define DOGLCD_CS  71
148
+  #define LCD_SCREEN_ROT_180
149
+
150
+  #define SD_DETECT_PIN -1 // Pin 72 if using easy adapter board
151
+
152
+  #if ENABLED(TEMP_STAT_LEDS)
153
+    #define STAT_LED_RED      22
154
+    #define STAT_LED_BLUE     32
155
+  #endif
156
+#endif // VIKI2/miniVIKI

+ 44
- 34
Marlin/pins_AZTEEG_X3_PRO.h Dosyayı Görüntüle

@@ -28,21 +28,16 @@
28 28
 
29 29
 #include "pins_RAMPS.h"
30 30
 
31
-#undef FAN_PIN
32
-#define FAN_PIN             6 //Part Cooling System
31
+//
32
+// Tested this pin with bed leveling on a Delta with 1 servo.
33
+// Physical wire attachment on EXT1: GND, 5V, D47.
34
+//
35
+#undef SERVO0_PIN
36
+#define SERVO0_PIN         47
33 37
 
34
-#undef BEEPER_PIN
35
-#define BEEPER_PIN         33
36
-#define CONTROLLERFAN_PIN   4 //Pin used for the fan to cool motherboard (-1 to disable)
37
-//Fans/Water Pump to cool the hotend cool side.
38
-#define EXTRUDER_0_AUTO_FAN_PIN   5
39
-#define EXTRUDER_1_AUTO_FAN_PIN   5
40
-#define EXTRUDER_2_AUTO_FAN_PIN   5
41
-#define EXTRUDER_3_AUTO_FAN_PIN   5
42 38
 //
43
-//This section is to swap the MIN and MAX pins because the X3 Pro comes with only
44
-//MIN endstops soldered onto the board. Delta code wants the homing endstops to be
45
-//the MAX so I swapped them here.
39
+// Swap the MIN and MAX endstop pins because the X3 Pro comes with only
40
+// MIN endstop pin headers soldered onto the board.
46 41
 //
47 42
 #if ENABLED(DELTA)
48 43
   #undef X_MIN_PIN
@@ -60,10 +55,16 @@
60 55
   #define Z_MAX_PIN        18
61 56
 #endif
62 57
 
58
+//
59
+// Z Probe (when not Z_MIN_PIN)
60
+//
63 61
 #ifndef Z_MIN_PROBE_PIN
64
-  #define Z_MIN_PROBE_PIN  19
62
+  #define Z_MIN_PROBE_PIN  18
65 63
 #endif
66 64
 
65
+//
66
+// Steppers
67
+//
67 68
 #define E2_STEP_PIN        23
68 69
 #define E2_DIR_PIN         25
69 70
 #define E2_ENABLE_PIN      40
@@ -76,10 +77,18 @@
76 77
 #define E4_DIR_PIN         37
77 78
 #define E4_ENABLE_PIN      42
78 79
 
79
-#undef HEATER_1_PIN
80
-#undef HEATER_2_PIN
81
-#undef HEATER_3_PIN
82
-#define HEATER_1_PIN        9
80
+//
81
+// Temperature Sensors
82
+//
83
+#define TEMP_2_PIN         12   // ANALOG NUMBERING
84
+#define TEMP_3_PIN         11   // ANALOG NUMBERING
85
+#define TEMP_4_PIN         10   // ANALOG NUMBERING
86
+#define TC1                 4   // ANALOG NUMBERING Thermo couple on Azteeg X3Pro
87
+#define TC2                 5   // ANALOG NUMBERING Thermo couple on Azteeg X3Pro
88
+
89
+//
90
+// Heaters / Fans
91
+//
83 92
 #define HEATER_2_PIN       16
84 93
 #define HEATER_3_PIN       17
85 94
 #define HEATER_4_PIN        4
@@ -87,26 +96,27 @@
87 96
 #define HEATER_6_PIN        6
88 97
 #define HEATER_7_PIN       11
89 98
 
90
-#undef TEMP_2_PIN
91
-#undef TEMP_3_PIN
92
-#define TEMP_2_PIN         12   // ANALOG NUMBERING
93
-#define TEMP_3_PIN         11   // ANALOG NUMBERING
94
-#define TEMP_4_PIN         10   // ANALOG NUMBERING
95
-#define TC1                 4   // ANALOG NUMBERING Thermo couple on Azteeg X3Pro
96
-#define TC2                 5   // ANALOG NUMBERING Thermo couple on Azteeg X3Pro
99
+#undef FAN_PIN
100
+#define FAN_PIN             6 //Part Cooling System
101
+
102
+#define CONTROLLERFAN_PIN   4 //Pin used for the fan to cool motherboard (-1 to disable)
103
+
104
+// Fans/Water Pump to cool the hotend cool side.
105
+#define EXTRUDER_0_AUTO_FAN_PIN   5
106
+#define EXTRUDER_1_AUTO_FAN_PIN   5
107
+#define EXTRUDER_2_AUTO_FAN_PIN   5
108
+#define EXTRUDER_3_AUTO_FAN_PIN   5
97 109
 
98 110
 //
99
-// These Servo pins are for when they are defined. Tested for usage with bed leveling
100
-// on a Delta with 1 servo. Running through the Z servo endstop in code.
101
-// Physical wire attachment was done on EXT1 on the GND, 5V, and D47 pins.
111
+// LCD / Controller
102 112
 //
103
-#undef SERVO0_PIN
104
-#define SERVO0_PIN         47
113
+#undef BEEPER_PIN
114
+#define BEEPER_PIN         33
105 115
 
106 116
 #if ENABLED(VIKI2) || ENABLED(miniVIKI)
107 117
   #undef SD_DETECT_PIN
108
-  #define SD_DETECT_PIN 49  // For easy adapter board
109
-#elif ENABLED(TEMP_STAT_LEDS)
110
-  #define STAT_LED_RED   32
111
-  #define STAT_LED_BLUE  35
118
+  #define SD_DETECT_PIN    49 // For easy adapter board
119
+#else
120
+  #define STAT_LED_RED     32
121
+  #define STAT_LED_BLUE    35
112 122
 #endif

+ 19
- 6
Marlin/pins_BRAINWAVE.h Dosyayı Görüntüle

@@ -33,22 +33,29 @@
33 33
 
34 34
 #define BOARD_NAME         "Brainwave"
35 35
 
36
+//
37
+// Limit Switches
38
+//
39
+#define X_STOP_PIN          7
40
+#define Y_STOP_PIN          6
41
+#define Z_STOP_PIN          5
42
+
43
+//
44
+// Steppers
45
+//
36 46
 #define X_STEP_PIN         27
37 47
 #define X_DIR_PIN          29
38 48
 #define X_ENABLE_PIN       28
39
-#define X_STOP_PIN          7
40 49
 #define X_ATT_PIN          26
41 50
 
42 51
 #define Y_STEP_PIN         31
43 52
 #define Y_DIR_PIN          33
44 53
 #define Y_ENABLE_PIN       32
45
-#define Y_STOP_PIN          6
46 54
 #define Y_ATT_PIN          30
47 55
 
48 56
 #define Z_STEP_PIN         17
49 57
 #define Z_DIR_PIN          19
50 58
 #define Z_ENABLE_PIN       18
51
-#define Z_STOP_PIN          5
52 59
 #define Z_ATT_PIN          16
53 60
 
54 61
 #define E0_STEP_PIN        21
@@ -56,11 +63,17 @@
56 63
 #define E0_ENABLE_PIN      22
57 64
 #define E0_ATT_PIN         20
58 65
 
66
+//
67
+// Temperature Sensors
68
+//
69
+#define TEMP_0_PIN          7  // Extruder / Analog pin numbering
70
+#define TEMP_BED_PIN        6  // Bed / Analog pin numbering
71
+
72
+//
73
+// Heaters / Fans
74
+//
59 75
 #define HEATER_0_PIN        4  // Extruder
60 76
 #define HEATER_BED_PIN     38  // Bed
61 77
 #define FAN_PIN             3  // Fan
62 78
 
63
-#define TEMP_0_PIN          7  // Extruder / Analog pin numbering
64
-#define TEMP_BED_PIN        6  // Bed / Analog pin numbering
65
-
66 79
 #define LED_PIN            39

+ 25
- 5
Marlin/pins_BRAINWAVE_PRO.h Dosyayı Görüntüle

@@ -41,13 +41,23 @@
41 41
 
42 42
 #define LARGE_FLASH        true
43 43
 
44
+//
45
+// Limit Switches
46
+//
44 47
 #define X_STOP_PIN         47
45 48
 #define Y_STOP_PIN         18
46 49
 #define Z_MAX_PIN          36
50
+
51
+//
52
+// Z Probe (when not Z_MIN_PIN)
53
+//
47 54
 #ifndef Z_MIN_PROBE_PIN
48 55
   #define Z_MIN_PROBE_PIN  17
49 56
 #endif
50 57
 
58
+//
59
+// Steppers
60
+//
51 61
 #define X_STEP_PIN         33
52 62
 #define X_DIR_PIN          32
53 63
 #define X_ENABLE_PIN       11
@@ -64,14 +74,24 @@
64 74
 #define E0_DIR_PIN         34
65 75
 #define E0_ENABLE_PIN      13
66 76
 
67
-#define HEATER_0_PIN       15
68
-#define HEATER_BED_PIN     14  // Bed
69
-#define FAN_PIN            16  // Fan, PWM
70
-
77
+//
78
+// Temperature Sensors
79
+//
71 80
 #define TEMP_0_PIN          2  // Extruder / Analog pin numbering
72 81
 #define TEMP_1_PIN          1  // Spare / Analog pin numbering
73 82
 #define TEMP_BED_PIN        0  // Bed / Analog pin numbering
74 83
 
84
+//
85
+// Heaters / Fans
86
+//
87
+#define HEATER_0_PIN       15
88
+#define HEATER_BED_PIN     14  // Bed
89
+#define FAN_PIN            16  // Fan, PWM
90
+
91
+//
92
+// LCD / Controller
93
+//
75 94
 #define SDSS               20
76
-#define LED_PIN            19
77 95
 #define SD_DETECT_PIN      12
96
+
97
+#define LED_PIN            19

+ 45
- 43
Marlin/pins_CHEAPTRONIC.h Dosyayı Görüntüle

@@ -31,57 +31,59 @@
31 31
 #define BOARD_NAME         "Cheaptronic v1.0"
32 32
 #define LARGE_FLASH        true
33 33
 
34
-// X motor stepper
35
-#define X_STEP_PIN 14
36
-#define X_DIR_PIN 15
37
-#define X_ENABLE_PIN 24
34
+//
35
+// Limit Switches
36
+//
37
+#define X_STOP_PIN          3
38
+#define Y_STOP_PIN          2
39
+#define Z_STOP_PIN          5
38 40
 
39
-// Y motor stepper
40
-#define Y_STEP_PIN 35
41
-#define Y_DIR_PIN 36
42
-#define Y_ENABLE_PIN 31
41
+//
42
+// Steppers
43
+//
44
+#define X_STEP_PIN         14
45
+#define X_DIR_PIN          15
46
+#define X_ENABLE_PIN       24
43 47
 
44
-// Z motor stepper
45
-#define Z_STEP_PIN 40
46
-#define Z_DIR_PIN 41
47
-#define Z_ENABLE_PIN 37
48
+#define Y_STEP_PIN         35
49
+#define Y_DIR_PIN          36
50
+#define Y_ENABLE_PIN       31
48 51
 
49
-// XYZ endstops
50
-#define X_STOP_PIN 3
51
-#define Y_STOP_PIN 2
52
-#define Z_STOP_PIN 5
52
+#define Z_STEP_PIN         40
53
+#define Z_DIR_PIN          41
54
+#define Z_ENABLE_PIN       37
53 55
 
54
-// Extruder 0 stepper
55
-#define E0_STEP_PIN 26
56
-#define E0_DIR_PIN 28
57
-#define E0_ENABLE_PIN 25
56
+#define E0_STEP_PIN        26
57
+#define E0_DIR_PIN         28
58
+#define E0_ENABLE_PIN      25
58 59
 
59
-// Extruder 1 stepper
60
-#define E1_STEP_PIN 33
61
-#define E1_DIR_PIN 34
62
-#define E1_ENABLE_PIN 30
63
-
64
-
65
-#define HEATER_0_PIN 19 // EXTRUDER 1
66
-#define HEATER_1_PIN 23 // EXTRUDER 2
67
-#define HEATER_BED_PIN 22
60
+#define E1_STEP_PIN        33
61
+#define E1_DIR_PIN         34
62
+#define E1_ENABLE_PIN      30
68 63
 
64
+//
69 65
 // Temperature sensors
70
-#define TEMP_0_PIN 15
71
-#define TEMP_1_PIN 14
72
-#define TEMP_BED_PIN 13
66
+//
67
+#define TEMP_0_PIN         15
68
+#define TEMP_1_PIN         14
69
+#define TEMP_BED_PIN       13
70
+
71
+//
72
+// Heaters / Fans
73
+//
74
+#define HEATER_0_PIN       19 // EXTRUDER 1
75
+#define HEATER_1_PIN       23 // EXTRUDER 2
76
+#define HEATER_BED_PIN     22
73 77
 
74 78
 // Cheaptronic v1.0 doesn't support LCD
75
-#define LCD_PINS_RS -1
76
-#define LCD_PINS_ENABLE -1
77
-#define LCD_PINS_D4 -1
78
-#define LCD_PINS_D5 -1
79
-#define LCD_PINS_D6 -1
80
-#define LCD_PINS_D7 -1
79
+#define LCD_PINS_RS        -1
80
+#define LCD_PINS_ENABLE    -1
81
+#define LCD_PINS_D4        -1
82
+#define LCD_PINS_D5        -1
83
+#define LCD_PINS_D6        -1
84
+#define LCD_PINS_D7        -1
81 85
 
82 86
 // Cheaptronic v1.0 doesn't support keypad
83
-#define BTN_EN1 -1
84
-#define BTN_EN2 -1
85
-#define BTN_ENC -1
86
-
87
-// Cheaptronic v1.0 doesn't use this
87
+#define BTN_EN1            -1
88
+#define BTN_EN2            -1
89
+#define BTN_ENC            -1

+ 85
- 67
Marlin/pins_CNCONTROLS_11.h Dosyayı Görüntüle

@@ -6,54 +6,65 @@
6 6
   #error Oops!  Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
7 7
 #endif
8 8
 
9
-#define BOARD_NAME            "CN Controls V11"
9
+#define BOARD_NAME "CN Controls V11"
10 10
 
11 11
 //#define LARGE_FLASH true
12 12
 
13
-#define X_ENABLE_PIN          35
14
-#define X_STEP_PIN            34
15
-#define X_DIR_PIN             36
16
-#define X_MIN_PIN             43
17
-#define X_MAX_PIN             -1
18
-
19
-#define Y_ENABLE_PIN          38
20
-#define Y_STEP_PIN            37
21
-#define Y_DIR_PIN             39
22
-#define Y_MIN_PIN             45
23
-#define Y_MAX_PIN             -1
24
-
25
-#define Z_ENABLE_PIN          41
26
-#define Z_STEP_PIN            40
27
-#define Z_DIR_PIN             48
28
-#define Z_MIN_PIN             42
29
-#define Z_MAX_PIN             -1
30
-
31
-#define E0_ENABLE_PIN          3
32
-#define E0_STEP_PIN           29
33
-#define E0_DIR_PIN            28
34
-#define HEATER_0_PIN           5
35
-#define TEMP_0_PIN             0  // ANALOG INPUT !!
36
-
37
-#define E1_ENABLE_PIN         60
38
-#define E1_STEP_PIN           61
39
-#define E1_DIR_PIN            62
40
-#define HEATER_1_PIN          58
41
-#define TEMP_1_PIN             3  // 3 for tool2 -> 2 for chambertemp
42
-
43
-#define E2_ENABLE_PIN         16
44
-#define E2_STEP_PIN           15
45
-#define E2_DIR_PIN            14
46
-#define HEATER_2_PIN          64
47
-#define TEMP_2_PIN             2  // 9 for tool3 -> 2 for chambertemp
48
-
49
-#define E3_ENABLE_PIN         47
50
-#define E3_STEP_PIN           44
51
-#define E3_DIR_PIN            49
52
-#define HEATER_3_PIN          46
53
-#define TEMP_3_PIN            11  // 11 for tool4 -> 2 for chambertemp
54
-
55
-#define HEATER_BED_PIN         2
56
-#define TEMP_BED_PIN           1  // ANALOG INPUT !!
13
+//
14
+// Limit Switches
15
+//
16
+#define X_STOP_PIN         43
17
+#define Y_STOP_PIN         45
18
+#define Z_STOP_PIN         42
19
+
20
+//
21
+// Steppers
22
+//
23
+#define X_STEP_PIN         34
24
+#define X_DIR_PIN          36
25
+#define X_ENABLE_PIN       35
26
+
27
+#define Y_STEP_PIN         37
28
+#define Y_DIR_PIN          39
29
+#define Y_ENABLE_PIN       38
30
+
31
+#define Z_STEP_PIN         40
32
+#define Z_DIR_PIN          48
33
+#define Z_ENABLE_PIN       41
34
+
35
+#define E0_STEP_PIN        29
36
+#define E0_DIR_PIN         28
37
+#define E0_ENABLE_PIN       3
38
+
39
+#define E1_STEP_PIN        61
40
+#define E1_DIR_PIN         62
41
+#define E1_ENABLE_PIN      60
42
+
43
+#define E2_STEP_PIN        15
44
+#define E2_DIR_PIN         14
45
+#define E2_ENABLE_PIN      16
46
+
47
+#define E3_STEP_PIN        44
48
+#define E3_DIR_PIN         49
49
+#define E3_ENABLE_PIN      47
50
+
51
+//
52
+// Temperature Sensors
53
+//
54
+#define TEMP_0_PIN          0  // ANALOG INPUT !!
55
+#define TEMP_1_PIN          3  // 3 for tool2 -> 2 for chambertemp
56
+#define TEMP_2_PIN          2  // 9 for tool3 -> 2 for chambertemp
57
+#define TEMP_3_PIN         11  // 11 for tool4 -> 2 for chambertemp
58
+#define TEMP_BED_PIN        1  // ANALOG INPUT !!
59
+
60
+//
61
+// Heaters / Fans
62
+//
63
+#define HEATER_0_PIN        5
64
+#define HEATER_1_PIN       58
65
+#define HEATER_2_PIN       64
66
+#define HEATER_3_PIN       46
67
+#define HEATER_BED_PIN      2
57 68
 
58 69
 // Tools
59 70
 
@@ -72,30 +83,37 @@
72 83
 //#define SPARE_IO            12
73 84
 //#define FAN_PIN              7  // common PWM pin for all tools
74 85
 
75
-// User interface
76
-#define BEEPER_PIN             6
86
+//
87
+// SD Card
88
+//
89
+#define SDSS               53
90
+#define SD_DETECT_PIN      13
91
+
92
+//
93
+// LCD / Controller
94
+//
95
+#define BEEPER_PIN          6
77 96
 
78 97
 // Pins for DOGM SPI LCD Support
79
-#define DOGLCD_A0             26
80
-#define DOGLCD_CS             24
81
-#define DOGLCD_MOSI           -1
82
-#define DOGLCD_SCK            -1
98
+#define DOGLCD_A0          26
99
+#define DOGLCD_CS          24
100
+#define DOGLCD_MOSI        -1
101
+#define DOGLCD_SCK         -1
83 102
 
84
-// The encoder and click button
85
-#define BTN_EN1               23
86
-#define BTN_EN2               25
87
-#define BTN_ENC               27
103
+#define BTN_EN1            23
104
+#define BTN_EN2            25
105
+#define BTN_ENC            27
88 106
 
89 107
 // Hardware buttons for manual movement of XYZ
90
-#define SHIFT_OUT             19
91
-#define SHIFT_LD              18
92
-#define SHIFT_CLK             17
93
-
94
-//#define UI1                 31
95
-//#define UI2                 22
96
-
97
-// Other
98
-#define SDSS                  53
99
-#define SD_DETECT_PIN         13
100
-#define STAT_LED_BLUE         -1
101
-#define STAT_LED_RED          31
108
+#define SHIFT_OUT          19
109
+#define SHIFT_LD           18
110
+#define SHIFT_CLK          17
111
+
112
+//#define UI1                31
113
+//#define UI2                22
114
+
115
+//
116
+// Misc. Functions
117
+//
118
+#define STAT_LED_BLUE      -1
119
+#define STAT_LED_RED       31

+ 96
- 77
Marlin/pins_CNCONTROLS_12.h Dosyayı Görüntüle

@@ -10,96 +10,115 @@
10 10
 
11 11
 //#define LARGE_FLASH true
12 12
 
13
-#define X_ENABLE_PIN          26
14
-#define X_STEP_PIN            25
15
-#define X_DIR_PIN             27
16
-#define X_MIN_PIN             19
17
-#define X_MAX_PIN             -1
18
-
19
-#define Y_ENABLE_PIN          29
20
-#define Y_STEP_PIN            28
21
-#define Y_DIR_PIN             30
22
-#define Y_MIN_PIN             22
23
-#define Y_MAX_PIN             -1
24
-
25
-#define Z_ENABLE_PIN          32
26
-#define Z_STEP_PIN            31
27
-#define Z_DIR_PIN             33
28
-#define Z_MIN_PIN             23
29
-#define Z_MAX_PIN             -1
30
-
31
-#define E0_ENABLE_PIN         58
32
-#define E0_STEP_PIN           57
33
-#define E0_DIR_PIN            55
34
-#define HEATER_0_PIN          11
35
-#define TEMP_0_PIN             0  // ANALOG INPUT !!
36
-
37
-#define E1_ENABLE_PIN         60
38
-#define E1_STEP_PIN           61
39
-#define E1_DIR_PIN            62
40
-#define HEATER_1_PIN           9
41
-#define TEMP_1_PIN             9  // 9 for tool2 -> 13 for chambertemp
42
-
43
-#define E2_ENABLE_PIN         44
44
-#define E2_STEP_PIN           46
45
-#define E2_DIR_PIN            66
46
-#define HEATER_2_PIN           6
47
-#define TEMP_2_PIN            13  // 10 for tool3 -> 13 for chambertemp
48
-
49
-#define E3_ENABLE_PIN         47
50
-#define E3_STEP_PIN           45
51
-#define E3_DIR_PIN            69
52
-#define HEATER_3_PIN           3
53
-#define TEMP_3_PIN            11  // 11 for tool4 -> 13 for chambertemp
54
-
55
-#define HEATER_BED_PIN        24
56
-#define TEMP_BED_PIN          14  // ANALOG INPUT !!
13
+//
14
+// Limit Switches
15
+//
16
+#define X_STOP_PIN         19
17
+#define Y_STOP_PIN         22
18
+#define Z_STOP_PIN         23
19
+
20
+//
21
+// Steppers
22
+//
23
+#define X_STEP_PIN         25
24
+#define X_DIR_PIN          27
25
+#define X_ENABLE_PIN       26
26
+
27
+#define Y_STEP_PIN         28
28
+#define Y_DIR_PIN          30
29
+#define Y_ENABLE_PIN       29
30
+
31
+#define Z_STEP_PIN         31
32
+#define Z_DIR_PIN          33
33
+#define Z_ENABLE_PIN       32
34
+
35
+#define E0_STEP_PIN        57
36
+#define E0_DIR_PIN         55
37
+#define E0_ENABLE_PIN      58
38
+
39
+#define E1_STEP_PIN        61
40
+#define E1_DIR_PIN         62
41
+#define E1_ENABLE_PIN      60
42
+
43
+#define E2_STEP_PIN        46
44
+#define E2_DIR_PIN         66
45
+#define E2_ENABLE_PIN      44
46
+
47
+#define E3_STEP_PIN        45
48
+#define E3_DIR_PIN         69
49
+#define E3_ENABLE_PIN      47
50
+
51
+//
52
+// Temperature Sensors
53
+//
54
+#define TEMP_0_PIN          0  // ANALOG INPUT !!
55
+#define TEMP_1_PIN          9  // 9 for tool2 -> 13 for chambertemp
56
+#define TEMP_2_PIN         13  // 10 for tool3 -> 13 for chambertemp
57
+#define TEMP_3_PIN         11  // 11 for tool4 -> 13 for chambertemp
58
+#define TEMP_BED_PIN       14  // ANALOG INPUT !!
59
+//#define TEMP_CHAMBER_PIN   13  // ANALOG INPUT !!
60
+
61
+//
62
+// Heaters / Fans
63
+//
64
+#define HEATER_0_PIN       11
65
+#define HEATER_1_PIN        9
66
+#define HEATER_2_PIN        6
67
+#define HEATER_3_PIN        3
68
+#define HEATER_BED_PIN     24
69
+
70
+#define FAN_PIN             5  // 5 is PWMtool3 -> 7 is common PWM pin for all tools
71
+
72
+//#define PWM_1_PIN          12
73
+//#define PWM_2_PIN          13
74
+//#define SPARE_IO           17
57 75
 
58 76
 // Tools
59 77
 
60
-//#define TOOL_0_PIN          56
61
-//#define TOOL_0_PWM_PIN      10  // red warning led at dual extruder
62
-//#define TOOL_1_PIN          59
63
-//#define TOOL_1_PWM_PIN       8  // lights at dual extruder
64
-//#define TOOL_2_PIN           4
65
-//#define TOOL_2_PWM_PIN       5
66
-//#define TOOL_3_PIN          14
67
-//#define TOOL_3_PWM_PIN       2
78
+//#define TOOL_0_PIN         56
79
+//#define TOOL_0_PWM_PIN     10  // red warning led at dual extruder
80
+//#define TOOL_1_PIN         59
81
+//#define TOOL_1_PWM_PIN      8  // lights at dual extruder
82
+//#define TOOL_2_PIN          4
83
+//#define TOOL_2_PWM_PIN      5
84
+//#define TOOL_3_PIN         14
85
+//#define TOOL_3_PWM_PIN      2
68 86
 
69 87
 // Common I/O
70 88
 
71
-//#define TEMP_CHAMBER_PIN    13  // ANALOG INPUT !!
72
-#define FIL_RUNOUT_PIN        18
73
-//#define PWM_1_PIN           12
74
-//#define PWM_2_PIN           13
75
-//#define SPARE_IO            17
76
-#define FAN_PIN                5  // 5 is PWMtool3 -> 7 is common PWM pin for all tools
77
-
78
-// User interface
79
-#define BEEPER_PIN            16
89
+//
90
+// LCD / Controller
91
+//
92
+#define BEEPER_PIN         16
80 93
 
81 94
 // Pins for DOGM SPI LCD Support
82
-#define DOGLCD_A0             39
83
-#define DOGLCD_CS             35
84
-#define DOGLCD_MOSI           48
85
-#define DOGLCD_SCK            49
95
+#define DOGLCD_A0          39
96
+#define DOGLCD_CS          35
97
+#define DOGLCD_MOSI        48
98
+#define DOGLCD_SCK         49
86 99
 #define LCD_SCREEN_ROT_180
87 100
 
88 101
 // The encoder and click button
89
-#define BTN_EN1               36
90
-#define BTN_EN2               34
91
-#define BTN_ENC               38
102
+#define BTN_EN1            36
103
+#define BTN_EN2            34
104
+#define BTN_ENC            38
92 105
 
93 106
 // Hardware buttons for manual movement of XYZ
94
-#define SHIFT_OUT             42
95
-#define SHIFT_LD              41
96
-#define SHIFT_CLK             40
107
+#define SHIFT_OUT          42
108
+#define SHIFT_LD           41
109
+#define SHIFT_CLK          40
110
+
111
+//#define UI1              43
112
+//#define UI2              37
113
+
114
+#define STAT_LED_BLUE      -1
115
+#define STAT_LED_RED       10 // TOOL_0_PWM_PIN
97 116
 
98
-//#define UI1                 43
99
-//#define UI2                 37
117
+//
118
+// SD Card
119
+//
120
+#define SDSS               53
121
+#define SD_DETECT_PIN      15
100 122
 
101 123
 // Other
102
-#define SDSS                  53
103
-#define SD_DETECT_PIN         15
104
-#define STAT_LED_BLUE         -1
105
-#define STAT_LED_RED          10 // TOOL_0_PWM_PIN
124
+#define FIL_RUNOUT_PIN     18

+ 54
- 30
Marlin/pins_ELEFU_3.h Dosyayı Görüntüle

@@ -28,58 +28,82 @@
28 28
   #error "Oops!  Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu."
29 29
 #endif
30 30
 
31
-#define BOARD_NAME         "Elefu Ra v3"
31
+#define BOARD_NAME "Elefu Ra v3"
32 32
 
33
+//
34
+// Limit Switches
35
+//
36
+#define X_MIN_PIN          35
37
+#define X_MAX_PIN          34
38
+#define Y_MIN_PIN          33
39
+#define Y_MAX_PIN          32
40
+#define Z_MIN_PIN          31
41
+#define Z_MAX_PIN          30
42
+
43
+//
44
+// Z Probe (when not Z_MIN_PIN)
45
+//
46
+#ifndef Z_MIN_PROBE_PIN
47
+  #define Z_MIN_PROBE_PIN  30
48
+#endif
49
+
50
+//
51
+// Steppers
52
+//
33 53
 #define X_STEP_PIN         49
34 54
 #define X_DIR_PIN          13
35 55
 #define X_ENABLE_PIN       48
36
-#define X_MIN_PIN          35
37
-#define X_MAX_PIN          34
38 56
 
39 57
 #define Y_STEP_PIN         11
40 58
 #define Y_DIR_PIN           9
41 59
 #define Y_ENABLE_PIN       12
42
-#define Y_MIN_PIN          33
43
-#define Y_MAX_PIN          32
44 60
 
45 61
 #define Z_STEP_PIN          7
46 62
 #define Z_DIR_PIN           6
47 63
 #define Z_ENABLE_PIN        8
48
-#define Z_MIN_PIN          31
49
-#define Z_MAX_PIN          30
50
-
51
-#define E2_STEP_PIN        43
52
-#define E2_DIR_PIN         47
53
-#define E2_ENABLE_PIN      42
54
-
55
-#define E1_STEP_PIN        18
56
-#define E1_DIR_PIN         19
57
-#define E1_ENABLE_PIN      38
58 64
 
59 65
 #define E0_STEP_PIN        40
60 66
 #define E0_DIR_PIN         41
61 67
 #define E0_ENABLE_PIN      37
62 68
 
63
-#define FAN_PIN            16 //5V PWM
69
+#define E1_STEP_PIN        18
70
+#define E1_DIR_PIN         19
71
+#define E1_ENABLE_PIN      38
64 72
 
65
-#define PS_ON_PIN          10 //Set to -1 if using a manual switch on the PWRSW Connector
66
-#define SLEEP_WAKE_PIN     26 //This feature still needs work
73
+#define E2_STEP_PIN        43
74
+#define E2_DIR_PIN         47
75
+#define E2_ENABLE_PIN      42
67 76
 
68
-#define HEATER_0_PIN       45 //12V PWM1
69
-#define HEATER_1_PIN       46 //12V PWM2
70
-#define HEATER_2_PIN       17 //12V PWM3
71
-#define HEATER_BED_PIN     44 //DOUBLE 12V PWM
72
-#define TEMP_0_PIN          3 //ANALOG NUMBERING
73
-#define TEMP_1_PIN          2 //ANALOG NUMBERING
74
-#define TEMP_2_PIN          1 //ANALOG NUMBERING
75
-#define TEMP_BED_PIN        0 //ANALOG NUMBERING
77
+//
78
+// Temperature Sensors
79
+//
80
+#define TEMP_0_PIN          3 // ANALOG NUMBERING
81
+#define TEMP_1_PIN          2 // ANALOG NUMBERING
82
+#define TEMP_2_PIN          1 // ANALOG NUMBERING
83
+#define TEMP_BED_PIN        0 // ANALOG NUMBERING
84
+
85
+//
86
+// Heaters / Fans
87
+//
88
+#define HEATER_0_PIN       45 // 12V PWM1
89
+#define HEATER_1_PIN       46 // 12V PWM2
90
+#define HEATER_2_PIN       17 // 12V PWM3
91
+#define HEATER_BED_PIN     44 // DOUBLE 12V PWM
92
+
93
+#define FAN_PIN            16 // 5V PWM
94
+
95
+//
96
+// Misc. Functions
97
+//
98
+#define PS_ON_PIN          10 // Set to -1 if using a manual switch on the PWRSW Connector
99
+#define SLEEP_WAKE_PIN     26 // This feature still needs work
100
+#define PHOTOGRAPH_PIN     29
76 101
 
102
+//
103
+// LCD / Controller
104
+//
77 105
 #define BEEPER_PIN         36
78 106
 
79
-// M240  Triggers a camera by emulating a Canon RC-1 Remote
80
-// Data from: http://www.doc-diy.net/photo/rc-1_hacked/
81
-#define PHOTOGRAPH_PIN     29
82
-
83 107
 #if ENABLED(RA_CONTROL_PANEL)
84 108
 
85 109
   #define SDSS             53

+ 34
- 28
Marlin/pins_GEN3_MONOLITHIC.h Dosyayı Görüntüle

@@ -31,39 +31,45 @@
31 31
 #define BOARD_NAME "Gen3 Monolithic"
32 32
 #define DEBUG_PIN 0
33 33
 
34
-// x axis
35
-#define X_STEP_PIN 15
36
-#define X_DIR_PIN 18
37
-#define X_MIN_PIN 20
38
-// Alex Checar #define X_STOP_PIN         20
39
-#define X_ENABLE_PIN 24 // actually uses Y_enable_pin
40
-#define X_MAX_PIN -1
34
+//
35
+// Limit Switches
36
+//
37
+#define X_STOP_PIN         20
38
+#define Y_STOP_PIN         25
39
+#define Z_STOP_PIN         30
41 40
 
42
-// y axis
43
-#define Y_STEP_PIN 23
44
-#define Y_DIR_PIN 22
45
-#define Y_MIN_PIN 25
46
-// Alex Checar #define Y_STOP_PIN         25
47
-#define Y_ENABLE_PIN 24 // shared with X_enable_pin
48
-#define Y_MAX_PIN -1
41
+//
42
+// Steppers
43
+//
44
+#define X_STEP_PIN         15
45
+#define X_DIR_PIN          18
46
+#define X_ENABLE_PIN       24 // actually uses Y_enable_pin
49 47
 
50
-// z axis
51
-#define Z_STEP_PIN 27
52
-#define Z_DIR_PIN 28
53
-#define Z_MIN_PIN 30
54
-// Alex Checar #define Z_STOP_PIN         30
55
-#define Z_ENABLE_PIN 29
56
-#define Z_MAX_PIN -1
48
+#define Y_STEP_PIN         23
49
+#define Y_DIR_PIN          22
50
+#define Y_ENABLE_PIN       24 // shared with X_enable_pin
57 51
 
58
-// extruder pins
59
-#define E0_STEP_PIN         12
60
-#define E0_DIR_PIN          17
52
+#define Z_STEP_PIN         27
53
+#define Z_DIR_PIN          28
54
+#define Z_ENABLE_PIN       29
55
+
56
+#define E0_STEP_PIN        12
57
+#define E0_DIR_PIN         17
61 58
 #define E0_ENABLE_PIN       3
62 59
 
63
-#define HEATER_0_PIN 16
64
-#define TEMP_0_PIN 0
60
+//
61
+// Temperature Sensors
62
+//
63
+#define TEMP_0_PIN          0
64
+
65
+//
66
+// Heaters
67
+//
68
+#define HEATER_0_PIN       16
65 69
 
66
-// pin for controlling the PSU.
67
-#define PS_ON_PIN       14  // Alex, Do this work on the card?
70
+//
71
+// Etc.
72
+//
73
+#define PS_ON_PIN          14 // Alex, does this work on the card?
68 74
 
69 75
 // Alex extras from Gen3+

+ 29
- 13
Marlin/pins_GEN3_PLUS.h Dosyayı Görüntüle

@@ -30,31 +30,47 @@
30 30
 
31 31
 #define BOARD_NAME         "Gen3+"
32 32
 
33
+//
34
+// Limit Switches
35
+//
36
+#define X_STOP_PIN         20
37
+#define Y_STOP_PIN         25
38
+#define Z_STOP_PIN         30
39
+
40
+//
41
+// Steppers
42
+//
33 43
 #define X_STEP_PIN         15
34 44
 #define X_DIR_PIN          18
35
-#define X_STOP_PIN         20
45
+#define X_ENABLE_PIN       19
36 46
 
37 47
 #define Y_STEP_PIN         23
38 48
 #define Y_DIR_PIN          22
39
-#define Y_STOP_PIN         25
49
+#define Y_ENABLE_PIN       24
40 50
 
41 51
 #define Z_STEP_PIN         27
42 52
 #define Z_DIR_PIN          28
43
-#define Z_STOP_PIN         30
53
+#define Z_ENABLE_PIN       29
44 54
 
45 55
 #define E0_STEP_PIN        17
46 56
 #define E0_DIR_PIN         21
57
+#define E0_ENABLE_PIN      13
47 58
 
48
-#define PS_ON_PIN         14
59
+#define PS_ON_PIN          14
49 60
 
50
-#define HEATER_0_PIN       12 // (extruder)
61
+//
62
+// Temperature Sensors
63
+//
64
+#define TEMP_0_PIN          0   // ANALOG INPUT (pin 33 extruder)
65
+#define TEMP_BED_PIN        5   // ANALOG INPUT (pin 34 bed)
51 66
 
52
-#define HEATER_BED_PIN     16 // (bed)
53
-#define X_ENABLE_PIN       19
54
-#define Y_ENABLE_PIN       24
55
-#define Z_ENABLE_PIN       29
56
-#define E0_ENABLE_PIN      13
67
+//
68
+// Heaters
69
+//
70
+#define HEATER_0_PIN       12
71
+#define HEATER_BED_PIN     16
57 72
 
58
-#define TEMP_0_PIN          0   // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 33 extruder)
59
-#define TEMP_BED_PIN        5   // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 34 bed)
60
-#define SDSS               4
73
+//
74
+// SD Card
75
+//
76
+#define SDSS                4

+ 44
- 29
Marlin/pins_GEN6.h Dosyayı Görüntüle

@@ -34,42 +34,57 @@
34 34
   #define BOARD_NAME "Gen6"
35 35
 #endif
36 36
 
37
-//x axis pins
38
-#define X_STEP_PIN      15
39
-#define X_DIR_PIN       18
40
-#define X_ENABLE_PIN    19
41
-#define X_STOP_PIN      20
37
+//
38
+// Limit Switches
39
+//
40
+#define X_STOP_PIN         20
41
+#define Y_STOP_PIN         25
42
+#define Z_STOP_PIN         30
42 43
 
43
-//y axis pins
44
-#define Y_STEP_PIN      23
45
-#define Y_DIR_PIN       22
46
-#define Y_ENABLE_PIN    24
47
-#define Y_STOP_PIN      25
44
+//
45
+// Steppers
46
+//
47
+#define X_STEP_PIN         15
48
+#define X_DIR_PIN          18
49
+#define X_ENABLE_PIN       19
48 50
 
49
-//z axis pins
50
-#define Z_STEP_PIN      27
51
-#define Z_DIR_PIN       28
52
-#define Z_ENABLE_PIN    29
53
-#define Z_STOP_PIN      30
51
+#define Y_STEP_PIN         23
52
+#define Y_DIR_PIN          22
53
+#define Y_ENABLE_PIN       24
54 54
 
55
-//extruder pins
56
-#define E0_STEP_PIN      4    //Edited @ EJE Electronics 20100715
57
-#define E0_DIR_PIN       2    //Edited @ EJE Electronics 20100715
58
-#define E0_ENABLE_PIN    3    //Added @ EJE Electronics 20100715
59
-#define TEMP_0_PIN      5     //changed @ rkoeppl 20110410
55
+#define Z_STEP_PIN         27
56
+#define Z_DIR_PIN          28
57
+#define Z_ENABLE_PIN       29
60 58
 
61
-#define HEATER_0_PIN    14    //changed @ rkoeppl 20110410
59
+#define E0_STEP_PIN         4    //Edited @ EJE Electronics 20100715
60
+#define E0_DIR_PIN          2    //Edited @ EJE Electronics 20100715
61
+#define E0_ENABLE_PIN       3    //Added @ EJE Electronics 20100715
62
+
63
+//
64
+// Temperature Sensor
65
+//
66
+#define TEMP_0_PIN          5    //changed @ rkoeppl 20110410
67
+
68
+//
69
+// Heaters
70
+//
71
+#define HEATER_0_PIN       14    //changed @ rkoeppl 20110410
62 72
 
63 73
 #if !MB(GEN6)
64
-  #define HEATER_BED_PIN   1    //changed @ rkoeppl 20110410
65
-  #define TEMP_BED_PIN     0    //changed @ rkoeppl 20110410
74
+  #define HEATER_BED_PIN    1    //changed @ rkoeppl 20110410
75
+  #define TEMP_BED_PIN      0    //changed @ rkoeppl 20110410
66 76
 #endif
67 77
 
68
-#define SDSS          17
69
-//our pin for debugging.
78
+//
79
+// SD Card
80
+//
81
+#define SDSS               17
70 82
 
71
-#define DEBUG_PIN        0
83
+//
84
+// Misc. Functions
85
+//
86
+#define DEBUG_PIN           0
72 87
 
73
-//our RS485 pins
74
-#define TX_ENABLE_PIN 12
75
-#define RX_ENABLE_PIN 13
88
+// RS485 pins
89
+#define TX_ENABLE_PIN      12
90
+#define RX_ENABLE_PIN      13

+ 58
- 42
Marlin/pins_GEN7_12.h Dosyayı Görüntüle

@@ -36,52 +36,68 @@
36 36
   #define GEN7_VERSION 12 // v1.x
37 37
 #endif
38 38
 
39
-//x axis pins
40
-#define X_STEP_PIN 19
41
-#define X_DIR_PIN 18
42
-#define X_ENABLE_PIN 24
43
-#define X_STOP_PIN 7
44
-
45
-//y axis pins
46
-#define Y_STEP_PIN 23
47
-#define Y_DIR_PIN 22
48
-#define Y_ENABLE_PIN 24
49
-#define Y_STOP_PIN 5
50
-
51
-//z axis pins
52
-#define Z_STEP_PIN 26
53
-#define Z_DIR_PIN 25
54
-#define Z_ENABLE_PIN 24
55
-#define Z_MIN_PIN 1
56
-#define Z_MAX_PIN 0
57
-
58
-//extruder pins
59
-#define E0_STEP_PIN 28
60
-#define E0_DIR_PIN 27
61
-#define E0_ENABLE_PIN 24
62
-
63
-#define TEMP_0_PIN 1
64
-#define TEMP_BED_PIN 2
65
-
66
-#define HEATER_0_PIN 4
67
-#define HEATER_BED_PIN 3
68
-
69
-
70
-// Gen7 v1.3 removed the fan pin
71
-#if GEN7_VERSION < 13
72
-  #define FAN_PIN 31
39
+//
40
+// Limit Switches
41
+//
42
+#define X_STOP_PIN          7
43
+#define Y_STOP_PIN          5
44
+#define Z_MIN_PIN           1
45
+#define Z_MAX_PIN           0
46
+
47
+//
48
+// Z Probe (when not Z_MIN_PIN)
49
+//
50
+#ifndef Z_MIN_PROBE_PIN
51
+  #define Z_MIN_PROBE_PIN   0
73 52
 #endif
74 53
 
75
-#define PS_ON_PIN 15
54
+//
55
+// Steppers
56
+//
57
+#define X_STEP_PIN         19
58
+#define X_DIR_PIN          18
59
+#define X_ENABLE_PIN       24
60
+
61
+#define Y_STEP_PIN         23
62
+#define Y_DIR_PIN          22
63
+#define Y_ENABLE_PIN       24
64
+
65
+#define Z_STEP_PIN         26
66
+#define Z_DIR_PIN          25
67
+#define Z_ENABLE_PIN       24
68
+
69
+#define E0_STEP_PIN        28
70
+#define E0_DIR_PIN         27
71
+#define E0_ENABLE_PIN      24
72
+
73
+//
74
+// Temperature Sensors
75
+//
76
+#define TEMP_0_PIN          1
77
+#define TEMP_BED_PIN        2
78
+
79
+//
80
+// Heaters / Fans
81
+//
82
+#define HEATER_0_PIN        4
83
+#define HEATER_BED_PIN      3
84
+
85
+#if GEN7_VERSION < 13   // Gen7 v1.3 removed the fan pin
86
+  #define FAN_PIN          31
87
+#endif
88
+
89
+//
90
+// Misc. Functions
91
+//
92
+#define PS_ON_PIN          15
76 93
 
77
-//All these generations of Gen7 supply thermistor power
78
-//via PS_ON, so ignore bad thermistor readings
94
+// All these generations of Gen7 supply thermistor power
95
+// via PS_ON, so ignore bad thermistor readings
79 96
 #define BOGUS_TEMPERATURE_FAILSAFE_OVERRIDE
80 97
 
81
-//our pin for debugging.
82
-#define DEBUG_PIN 0
98
+#define DEBUG_PIN           0
83 99
 
84
-//our RS485 pins
85
-#define TX_ENABLE_PIN 12
86
-#define RX_ENABLE_PIN 13
100
+// RS485 pins
101
+#define TX_ENABLE_PIN      12
102
+#define RX_ENABLE_PIN      13
87 103
 

+ 38
- 19
Marlin/pins_LEAPFROG.h Dosyayı Görüntüle

@@ -30,44 +30,63 @@
30 30
 
31 31
 #define BOARD_NAME         "Leapfrog"
32 32
 
33
+//
34
+// Limit Switches
35
+//
36
+#define X_MIN_PIN          47
37
+#define X_MAX_PIN           2
38
+#define Y_MIN_PIN          48
39
+#define Y_MAX_PIN          15
40
+#define Z_MIN_PIN          49
41
+#define Z_MAX_PIN          -1
42
+
43
+//
44
+// Steppers
45
+//
33 46
 #define X_STEP_PIN         28
34 47
 #define X_DIR_PIN          63
35 48
 #define X_ENABLE_PIN       29
36
-#define X_MIN_PIN          47
37
-#define X_MAX_PIN          2 //Max endstops default to disabled "-1", set to commented value to enable.
38 49
 
39 50
 #define Y_STEP_PIN         14 // A6
40 51
 #define Y_DIR_PIN          15 // A0
41 52
 #define Y_ENABLE_PIN       39
42
-#define Y_MIN_PIN          48
43
-#define Y_MAX_PIN          15
44 53
 
45 54
 #define Z_STEP_PIN         31 // A2
46 55
 #define Z_DIR_PIN          32 // A6
47 56
 #define Z_ENABLE_PIN       30 // A1
48
-#define Z_MIN_PIN          49
49
-#define Z_MAX_PIN          -1
50 57
 
51
-#define E0_STEP_PIN         34  //34
52
-#define E0_DIR_PIN          35 //35
53
-#define E0_ENABLE_PIN       33 //33
58
+#define E0_STEP_PIN        34 // 34
59
+#define E0_DIR_PIN         35 // 35
60
+#define E0_ENABLE_PIN      33 // 33
54 61
 
55
-#define E1_STEP_PIN         37 //37
56
-#define E1_DIR_PIN          40 //40
57
-#define E1_ENABLE_PIN       36 //36
62
+#define E1_STEP_PIN        37 // 37
63
+#define E1_DIR_PIN         40 // 40
64
+#define E1_ENABLE_PIN      36 // 36
58 65
 
66
+//
67
+// Misc. Functions
68
+//
59 69
 #define SDSS               11
60 70
 #define LED_PIN            13
61
-#define FAN_PIN            7
62
-#define SOL1_PIN   16
63
-#define SOL2_PIN    17
71
+#define SOL1_PIN           16
72
+#define SOL2_PIN           17
64 73
 
65
-#define HEATER_0_PIN       9
66
-#define HEATER_1_PIN       8 // 12
67
-#define HEATER_2_PIN       11 //-1 // 13
74
+//
75
+// Temperature Sensors
76
+//
68 77
 #define TEMP_0_PIN         13 //D27   // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
69 78
 #define TEMP_1_PIN         15 // 1
70
-#define HEATER_BED_PIN     10 // 14/15
71 79
 #define TEMP_BED_PIN       14 // 1,2 or I2C
80
+
81
+//
82
+// Heaters / Fans
83
+//
84
+#define HEATER_0_PIN        9
85
+#define HEATER_1_PIN        8 // 12
86
+#define HEATER_2_PIN       11 // 13
87
+#define HEATER_BED_PIN     10 // 14/15
88
+
89
+#define FAN_PIN             7
90
+
72 91
 /*  Unused (1) (2) (3) 4 5 6 7 8 9 10 11 12 13 (14) (15) (16) 17 (18) (19) (20) (21) (22) (23) 24 (25) (26) (27) 28 (29) (30) (31)  */
73 92
 

+ 90
- 60
Marlin/pins_MEGACONTROLLER.h Dosyayı Görüntüle

@@ -34,79 +34,109 @@
34 34
 
35 35
 #define BOARD_NAME "Mega Controller"
36 36
 
37
-#define SERVO0_PIN 30
38
-#define SERVO1_PIN 31
39
-#define SERVO2_PIN 32
40
-#define SERVO3_PIN 33
41
-
42
-#define X_STEP_PIN 62//A8
43
-#define X_DIR_PIN 63//A9
44
-#define X_ENABLE_PIN 61//A7
45
-#define X_MIN_PIN 43
46
-#define X_MAX_PIN 42 //Max endstops default to disabled "-1", set to commented value to enable.
47
-
48
-#define Y_STEP_PIN 65 // A11
49
-#define Y_DIR_PIN 66 // A12
50
-#define Y_ENABLE_PIN 64//A10
51
-#define Y_MIN_PIN 38
52
-#define Y_MAX_PIN 41
53
-
54
-#define Z_STEP_PIN 68 // A14
55
-#define Z_DIR_PIN 69 // A15
56
-#define Z_ENABLE_PIN 67 // A13
57
-#define Z_MIN_PIN 40
58
-#define Z_MAX_PIN 37
59
-
60
-#define E0_STEP_PIN 23
61
-#define E0_DIR_PIN 24
62
-#define E0_ENABLE_PIN 22
63
-
64
-#define E1_STEP_PIN 26
65
-#define E1_DIR_PIN 27
66
-#define E1_ENABLE_PIN 25
67
-
68
-#define SDSS 53
69
-#define LED_PIN 13
70
-
71
-#define FAN_PIN 39
72
-#define FAN1_PIN 35
73
-#define FAN2_PIN 36
74
-#define FAN_SOFT_PWM
75
-#define CONTROLLERFAN_PIN FAN2_PIN
76
-
77
-#define HEATER_0_PIN 29 // EXTRUDER 1
78
-#define HEATER_1_PIN 34 // EXTRUDER 2
37
+//
38
+// Servos
39
+//
40
+#define SERVO0_PIN         30
41
+#define SERVO1_PIN         31
42
+#define SERVO2_PIN         32
43
+#define SERVO3_PIN         33
44
+
45
+//
46
+// Limit Switches
47
+//
48
+#define X_MIN_PIN          43
49
+#define X_MAX_PIN          42
50
+#define Y_MIN_PIN          38
51
+#define Y_MAX_PIN          41
52
+#define Z_MIN_PIN          40
53
+#define Z_MAX_PIN          37
54
+
55
+//
56
+// Z Probe (when not Z_MIN_PIN)
57
+//
58
+#ifndef Z_MIN_PROBE_PIN
59
+  #define Z_MIN_PROBE_PIN  37
60
+#endif
79 61
 
62
+//
63
+// Steppers
64
+//
65
+#define X_STEP_PIN         62 // A8
66
+#define X_DIR_PIN          63 // A9
67
+#define X_ENABLE_PIN       61 // A7
68
+
69
+#define Y_STEP_PIN         65 // A11
70
+#define Y_DIR_PIN          66 // A12
71
+#define Y_ENABLE_PIN       64 // A10
72
+
73
+#define Z_STEP_PIN         68 // A14
74
+#define Z_DIR_PIN          69 // A15
75
+#define Z_ENABLE_PIN       67 // A13
76
+
77
+#define E0_STEP_PIN        23
78
+#define E0_DIR_PIN         24
79
+#define E0_ENABLE_PIN      22
80
+
81
+#define E1_STEP_PIN        26
82
+#define E1_DIR_PIN         27
83
+#define E1_ENABLE_PIN      25
84
+
85
+//
86
+// Misc. Functions
87
+//
88
+#define SDSS               53
89
+#define LED_PIN            13
90
+
91
+//
92
+// Temperature Sensors
93
+//
80 94
 #if TEMP_SENSOR_0 == -1
81
-  #define TEMP_0_PIN 4 // ANALOG NUMBERING
95
+  #define TEMP_0_PIN        4 // ANALOG NUMBERING
82 96
 #else
83
-  #define TEMP_0_PIN 0 // ANALOG NUMBERING
97
+  #define TEMP_0_PIN        0 // ANALOG NUMBERING
84 98
 #endif
85 99
 
86 100
 #if TEMP_SENSOR_1 == -1
87
-  #define TEMP_1_PIN 5 // ANALOG NUMBERING
101
+  #define TEMP_1_PIN        5 // ANALOG NUMBERING
88 102
 #else
89
-  #define TEMP_1_PIN 2 // ANALOG NUMBERING
103
+  #define TEMP_1_PIN        2 // ANALOG NUMBERING
90 104
 #endif
91 105
 
92
-#define TEMP_2_PIN 3 // ANALOG NUMBERING
93
-
94
-#define HEATER_BED_PIN 28 // BED
106
+#define TEMP_2_PIN          3 // ANALOG NUMBERING
95 107
 
96 108
 #if TEMP_SENSOR_BED == -1
97
-  #define TEMP_BED_PIN 6 // ANALOG NUMBERING
109
+  #define TEMP_BED_PIN      6 // ANALOG NUMBERING
98 110
 #else
99
-  #define TEMP_BED_PIN 1 // ANALOG NUMBERING
111
+  #define TEMP_BED_PIN      1 // ANALOG NUMBERING
100 112
 #endif
101 113
 
114
+//
115
+// Heaters / Fans
116
+//
117
+#define HEATER_0_PIN       29
118
+#define HEATER_1_PIN       34
119
+#define HEATER_BED_PIN     28
120
+
121
+#define FAN_PIN            39
122
+#define FAN1_PIN           35
123
+#define FAN2_PIN           36
124
+
125
+#define CONTROLLERFAN_PIN  FAN2_PIN
126
+
127
+#define FAN_SOFT_PWM
128
+
129
+//
130
+// LCD / Controller
131
+//
102 132
 #if ENABLED(MINIPANEL)
103
-  #define BEEPER_PIN 46
133
+  #define BEEPER_PIN       46
104 134
   // Pins for DOGM SPI LCD Support
105
-  #define DOGLCD_A0  47
106
-  #define DOGLCD_CS  45
107
-  #define LCD_PIN_BL 44  // backlight LED on PA3
135
+  #define DOGLCD_A0        47
136
+  #define DOGLCD_CS        45
137
+  #define LCD_PIN_BL       44  // backlight LED on PA3
108 138
 
109
-  #define KILL_PIN 12
139
+  #define KILL_PIN         12
110 140
   // GLCD features
111 141
   //#define LCD_CONTRAST 190
112 142
   // Uncomment screen orientation
@@ -114,10 +144,10 @@
114 144
   //#define LCD_SCREEN_ROT_180
115 145
   //#define LCD_SCREEN_ROT_270
116 146
 
117
-  #define BTN_EN1 48
118
-  #define BTN_EN2 11
119
-  #define BTN_ENC 10
147
+  #define BTN_EN1          48
148
+  #define BTN_EN2          11
149
+  #define BTN_ENC          10
120 150
 
121
-  #define SD_DETECT_PIN 49
151
+  #define SD_DETECT_PIN    49
122 152
 #endif // MINIPANEL
123 153
 

+ 38
- 13
Marlin/pins_MEGATRONICS.h Dosyayı Görüntüle

@@ -31,23 +31,37 @@
31 31
 #define BOARD_NAME         "Megatronics"
32 32
 #define LARGE_FLASH        true
33 33
 
34
+//
35
+// Limit Switches
36
+//
37
+#define X_MIN_PIN          41
38
+#define X_MAX_PIN          37
39
+#define Y_MIN_PIN          14
40
+#define Y_MAX_PIN          15
41
+#define Z_MIN_PIN          18
42
+#define Z_MAX_PIN          19
43
+
44
+//
45
+// Z Probe (when not Z_MIN_PIN)
46
+//
47
+#ifndef Z_MIN_PROBE_PIN
48
+  #define Z_MIN_PROBE_PIN  19
49
+#endif
50
+
51
+//
52
+// Steppers
53
+//
34 54
 #define X_STEP_PIN         26
35 55
 #define X_DIR_PIN          28
36 56
 #define X_ENABLE_PIN       24
37
-#define X_MIN_PIN          41
38
-#define X_MAX_PIN          37
39 57
 
40 58
 #define Y_STEP_PIN         60 // A6
41 59
 #define Y_DIR_PIN          61 // A7
42 60
 #define Y_ENABLE_PIN       22
43
-#define Y_MIN_PIN          14
44
-#define Y_MAX_PIN          15
45 61
 
46 62
 #define Z_STEP_PIN         54 // A0
47 63
 #define Z_DIR_PIN          55 // A1
48 64
 #define Z_ENABLE_PIN       56 // A2
49
-#define Z_MIN_PIN          18
50
-#define Z_MAX_PIN          19
51 65
 
52 66
 #define E0_STEP_PIN        31
53 67
 #define E0_DIR_PIN         32
@@ -57,16 +71,16 @@
57 71
 #define E1_DIR_PIN         36
58 72
 #define E1_ENABLE_PIN      30
59 73
 
74
+//
75
+// Misc. Functions
76
+//
60 77
 #define SDSS               53
61 78
 #define LED_PIN            13
62
-
63
-#define FAN_PIN             7   // IO pin. Buffer needed
64 79
 #define PS_ON_PIN          12
65 80
 
66
-#define HEATER_0_PIN        9
67
-#define HEATER_1_PIN        8
68
-#define HEATER_BED_PIN     10   // BED
69
-
81
+//
82
+// Temperature Sensors
83
+//
70 84
 #if TEMP_SENSOR_0 == -1
71 85
   #define TEMP_0_PIN        8   // ANALOG NUMBERING
72 86
 #else
@@ -75,7 +89,18 @@
75 89
 #define TEMP_1_PIN         15   // ANALOG NUMBERING
76 90
 #define TEMP_BED_PIN       14   // ANALOG NUMBERING
77 91
 
78
-// AUX-4
92
+//
93
+// Heaters / Fans
94
+//
95
+#define HEATER_0_PIN        9
96
+#define HEATER_1_PIN        8
97
+#define HEATER_BED_PIN     10
98
+
99
+#define FAN_PIN             7   // IO pin. Buffer needed
100
+
101
+//
102
+// LCD / Controller
103
+//
79 104
 #define BEEPER_PIN         33
80 105
 
81 106
 #if ENABLED(ULTRA_LCD) && ENABLED(NEWPANEL)

+ 83
- 56
Marlin/pins_MEGATRONICS_2.h Dosyayı Görüntüle

@@ -31,74 +31,101 @@
31 31
 #define BOARD_NAME         "Megatronics v2.0"
32 32
 #define LARGE_FLASH        true
33 33
 
34
-#define X_STEP_PIN 26
35
-#define X_DIR_PIN 27
36
-#define X_ENABLE_PIN 25
37
-#define X_MIN_PIN 37
38
-#define X_MAX_PIN 40
39
-
40
-#define Y_STEP_PIN 4 // A6
41
-#define Y_DIR_PIN 54 // A0
42
-#define Y_ENABLE_PIN 5
43
-#define Y_MIN_PIN 41
44
-#define Y_MAX_PIN 38
45
-
46
-#define Z_STEP_PIN 56 // A2
47
-#define Z_DIR_PIN 60 // A6
48
-#define Z_ENABLE_PIN 55 // A1
49
-#define Z_MIN_PIN 18
50
-#define Z_MAX_PIN 19
51
-
52
-#define E0_STEP_PIN 35
53
-#define E0_DIR_PIN 36
54
-#define E0_ENABLE_PIN 34
55
-
56
-#define E1_STEP_PIN 29
57
-#define E1_DIR_PIN 39
58
-#define E1_ENABLE_PIN 28
59
-
60
-#define E2_STEP_PIN 23
61
-#define E2_DIR_PIN 24
62
-#define E2_ENABLE_PIN 22
63
-
64
-#define SDSS 53
65
-#define LED_PIN 13
66
-
67
-#define FAN_PIN 7
68
-#define FAN2_PIN 6
69
-#define PS_ON_PIN 12
70
-
71
-#define HEATER_0_PIN 9  // EXTRUDER 1
34
+//
35
+// Limit Switches
36
+//
37
+#define X_MIN_PIN          37
38
+#define X_MAX_PIN          40
39
+#define Y_MIN_PIN          41
40
+#define Y_MAX_PIN          38
41
+#define Z_MIN_PIN          18
42
+#define Z_MAX_PIN          19
43
+
44
+//
45
+// Z Probe (when not Z_MIN_PIN)
46
+//
47
+#ifndef Z_MIN_PROBE_PIN
48
+  #define Z_MIN_PROBE_PIN  19
49
+#endif
50
+
51
+//
52
+// Steppers
53
+//
54
+#define X_STEP_PIN         26
55
+#define X_DIR_PIN          27
56
+#define X_ENABLE_PIN       25
57
+
58
+#define Y_STEP_PIN          4 // A6
59
+#define Y_DIR_PIN          54 // A0
60
+#define Y_ENABLE_PIN        5
61
+
62
+#define Z_STEP_PIN         56 // A2
63
+#define Z_DIR_PIN          60 // A6
64
+#define Z_ENABLE_PIN       55 // A1
65
+
66
+#define E0_STEP_PIN        35
67
+#define E0_DIR_PIN         36
68
+#define E0_ENABLE_PIN      34
69
+
70
+#define E1_STEP_PIN        29
71
+#define E1_DIR_PIN         39
72
+#define E1_ENABLE_PIN      28
73
+
74
+#define E2_STEP_PIN        23
75
+#define E2_DIR_PIN         24
76
+#define E2_ENABLE_PIN      22
77
+
78
+//
79
+// Misc. Functions
80
+//
81
+#define SDSS               53
82
+#define LED_PIN            13
83
+#define PS_ON_PIN          12
84
+
85
+//
86
+// Temperature Sensors
87
+//
72 88
 #if TEMP_SENSOR_0 == -1
73
-  #define TEMP_0_PIN 4  // ANALOG NUMBERING
89
+  #define TEMP_0_PIN        4 // ANALOG NUMBERING
74 90
 #else
75
-  #define TEMP_0_PIN 13 // ANALOG NUMBERING
91
+  #define TEMP_0_PIN       13 // ANALOG NUMBERING
76 92
 #endif
77 93
 
78
-#define HEATER_1_PIN 8  // EXTRUDER 2
79 94
 #if TEMP_SENSOR_1 == -1
80
-  #define TEMP_1_PIN 8  // ANALOG NUMBERING
95
+  #define TEMP_1_PIN        8 // ANALOG NUMBERING
81 96
 #else
82
-  #define TEMP_1_PIN 15 // ANALOG NUMBERING
97
+  #define TEMP_1_PIN       15 // ANALOG NUMBERING
83 98
 #endif
84 99
 
85
-#define HEATER_BED_PIN 10 // BED
86 100
 #if TEMP_SENSOR_BED == -1
87
-  #define TEMP_BED_PIN 8  // ANALOG NUMBERING
101
+  #define TEMP_BED_PIN      8 // ANALOG NUMBERING
88 102
 #else
89
-  #define TEMP_BED_PIN 14 // ANALOG NUMBERING
103
+  #define TEMP_BED_PIN     14 // ANALOG NUMBERING
90 104
 #endif
91 105
 
92
-#define BEEPER_PIN 64
106
+//
107
+// Heaters / Fans
108
+//
109
+#define HEATER_0_PIN        9
110
+#define HEATER_1_PIN        8
111
+#define HEATER_BED_PIN     10
112
+
113
+#define FAN_PIN             7
114
+#define FAN1_PIN            6
115
+
116
+//
117
+// LCD / Controller
118
+//
119
+#define BEEPER_PIN         64
93 120
 
94
-#define LCD_PINS_RS 14
95
-#define LCD_PINS_ENABLE 15
96
-#define LCD_PINS_D4 30
97
-#define LCD_PINS_D5 31
98
-#define LCD_PINS_D6 32
99
-#define LCD_PINS_D7 33
121
+#define LCD_PINS_RS        14
122
+#define LCD_PINS_ENABLE    15
123
+#define LCD_PINS_D4        30
124
+#define LCD_PINS_D5        31
125
+#define LCD_PINS_D6        32
126
+#define LCD_PINS_D7        33
100 127
 
101 128
 // Buttons are directly attached using keypad
102
-#define BTN_EN1 61
103
-#define BTN_EN2 59
104
-#define BTN_ENC 43
129
+#define BTN_EN1            61
130
+#define BTN_EN2            59
131
+#define BTN_ENC            43

+ 79
- 57
Marlin/pins_MEGATRONICS_3.h Dosyayı Görüntüle

@@ -38,33 +38,45 @@
38 38
 
39 39
 #define LARGE_FLASH        true
40 40
 
41
-#if ENABLED(Z_PROBE_SLED)
42
-  #define SLED_PIN         -1
43
-#endif
44
-
45
-// Servo support
41
+//
42
+// Servos
43
+//
46 44
 #define SERVO0_PIN         46 // AUX3-6
47 45
 #define SERVO1_PIN         47 // AUX3-5
48 46
 #define SERVO2_PIN         48 // AUX3-4
49 47
 #define SERVO3_PIN         49 // AUX3-3
50 48
 
49
+//
50
+// Limit Switches
51
+//
52
+#define X_MIN_PIN          37
53
+#define X_MAX_PIN          40
54
+#define Y_MIN_PIN          41
55
+#define Y_MAX_PIN          38
56
+#define Z_MIN_PIN          18
57
+#define Z_MAX_PIN          19
58
+
59
+//
60
+// Z Probe (when not Z_MIN_PIN)
61
+//
62
+#ifndef Z_MIN_PROBE_PIN
63
+  #define Z_MIN_PROBE_PIN  19
64
+#endif
65
+
66
+//
67
+// Steppers
68
+//
51 69
 #define X_STEP_PIN         58
52 70
 #define X_DIR_PIN          57
53 71
 #define X_ENABLE_PIN       59
54
-#define X_MIN_PIN          37
55
-#define X_MAX_PIN          40
56 72
 
57
-#define Y_STEP_PIN         5
73
+#define Y_STEP_PIN          5
58 74
 #define Y_DIR_PIN          17
59
-#define Y_ENABLE_PIN       4
60
-#define Y_MIN_PIN          41
61
-#define Y_MAX_PIN          38
75
+#define Y_ENABLE_PIN        4
62 76
 
63 77
 #define Z_STEP_PIN         16
64 78
 #define Z_DIR_PIN          11
65
-#define Z_ENABLE_PIN       3
66
-#define Z_MIN_PIN          18
67
-#define Z_MAX_PIN          19
79
+#define Z_ENABLE_PIN        3
68 80
 
69 81
 #define E0_STEP_PIN        28
70 82
 #define E0_DIR_PIN         27
@@ -78,70 +90,80 @@
78 90
 #define E2_DIR_PIN         60
79 91
 #define E2_ENABLE_PIN      23
80 92
 
81
-#define SDSS 53
82
-#define LED_PIN 13
83
-
84
-#define PS_ON_PIN 12
85
-
86
-#define HEATER_0_PIN 2
87
-#define HEATER_1_PIN 9
88
-#define HEATER_2_PIN 8
89
-#define HEATER_BED_PIN 10
90
-#define FAN_PIN 6
91
-#define FAN2_PIN 7
92
-
93
+//
94
+// Misc. Functions
95
+//
96
+#define SDSS               53
97
+#define LED_PIN            13
98
+#define PS_ON_PIN          12
99
+#define SLED_PIN           -1
100
+
101
+//
102
+// Temperature Sensors
103
+//
93 104
 #if TEMP_SENSOR_0 == -1
94
-  #define TEMP_0_PIN   11 // ANALOG NUMBERING
105
+  #define TEMP_0_PIN       11 // ANALOG NUMBERING
95 106
 #else
96
-  #define TEMP_0_PIN   15 // ANALOG NUMBERING
107
+  #define TEMP_0_PIN       15 // ANALOG NUMBERING
97 108
 #endif
98 109
 #if TEMP_SENSOR_1 == -1
99
-  #define TEMP_1_PIN   10 // ANALOG NUMBERING
110
+  #define TEMP_1_PIN       10 // ANALOG NUMBERING
100 111
 #else
101
-  #define TEMP_1_PIN   13 // ANALOG NUMBERING
112
+  #define TEMP_1_PIN       13 // ANALOG NUMBERING
102 113
 #endif
103 114
 #if TEMP_SENSOR_2 == -1
104
-  #define TEMP_2_PIN    9 // ANALOG NUMBERING
115
+  #define TEMP_2_PIN        9 // ANALOG NUMBERING
105 116
 #else
106
-  #define TEMP_2_PIN   12 // ANALOG NUMBERING
117
+  #define TEMP_2_PIN       12 // ANALOG NUMBERING
107 118
 #endif
108 119
 #if TEMP_SENSOR_BED == -1
109
-  #define TEMP_BED_PIN  8 // ANALOG NUMBERING
120
+  #define TEMP_BED_PIN      8 // ANALOG NUMBERING
110 121
 #else
111
-  #define TEMP_BED_PIN 14 // ANALOG NUMBERING
122
+  #define TEMP_BED_PIN     14 // ANALOG NUMBERING
112 123
 #endif
113 124
 
114
-/**
115
- * Controllers and LCDs
116
- */
117
-#define BEEPER_PIN 61
125
+//
126
+// Heaters / Fans
127
+//
128
+#define HEATER_0_PIN        2
129
+#define HEATER_1_PIN        9
130
+#define HEATER_2_PIN        8
131
+#define HEATER_BED_PIN     10
132
+
133
+#define FAN_PIN             6
134
+#define FAN1_PIN            7
135
+
136
+//
137
+// LCD / Controller
138
+//
139
+#define BEEPER_PIN         61
118 140
 
119
-#define BTN_EN1 44
120
-#define BTN_EN2 45
121
-#define BTN_ENC 33
141
+#define BTN_EN1            44
142
+#define BTN_EN2            45
143
+#define BTN_ENC            33
122 144
 
123 145
 #if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
124
-  #define LCD_PINS_RS     56 // CS chip select / SS chip slave select
125
-  #define LCD_PINS_ENABLE 51 // SID (MOSI)
126
-  #define LCD_PINS_D4     52 // SCK (CLK) clock
127
-  #define SD_DETECT_PIN   35
146
+  #define LCD_PINS_RS      56 // CS chip select / SS chip slave select
147
+  #define LCD_PINS_ENABLE  51 // SID (MOSI)
148
+  #define LCD_PINS_D4      52 // SCK (CLK) clock
149
+  #define SD_DETECT_PIN    35
128 150
 #else
129
-  #define LCD_PINS_RS     32
130
-  #define LCD_PINS_ENABLE 31
131
-  #define LCD_PINS_D4     14
132
-  #define LCD_PINS_D5     30
133
-  #define LCD_PINS_D6     39
134
-  #define LCD_PINS_D7     15
151
+  #define LCD_PINS_RS      32
152
+  #define LCD_PINS_ENABLE  31
153
+  #define LCD_PINS_D4      14
154
+  #define LCD_PINS_D5      30
155
+  #define LCD_PINS_D6      39
156
+  #define LCD_PINS_D7      15
135 157
   
136
-  #define SHIFT_CLK       43
137
-  #define SHIFT_LD        35
138
-  #define SHIFT_OUT       34
139
-  #define SHIFT_EN        44
158
+  #define SHIFT_CLK        43
159
+  #define SHIFT_LD         35
160
+  #define SHIFT_OUT        34
161
+  #define SHIFT_EN         44
140 162
 
141 163
   #if ENABLED(MEGATRONICS_31)
142
-    #define SD_DETECT_PIN 56
164
+    #define SD_DETECT_PIN  56
143 165
   #else
144
-    #define SD_DETECT_PIN -1
166
+    #define SD_DETECT_PIN  -1
145 167
   #endif
146 168
 
147 169
 #endif

+ 83
- 59
Marlin/pins_MINIRAMBO.h Dosyayı Görüntüle

@@ -31,52 +31,53 @@
31 31
 #define BOARD_NAME          "Mini Rambo"
32 32
 #define LARGE_FLASH         true
33 33
 
34
-#define X_STEP_PIN          37
35
-#define X_DIR_PIN           48
36
-#define X_MIN_PIN           12
37
-#define X_MAX_PIN           30
38
-#define X_ENABLE_PIN        29
39
-#define X_MS1_PIN           40
40
-#define X_MS2_PIN           41
41
-
42
-#define Y_STEP_PIN          36
43
-#define Y_DIR_PIN           49
44
-#define Y_MIN_PIN           11
45
-#define Y_MAX_PIN           24
46
-#define Y_ENABLE_PIN        28
47
-#define Y_MS1_PIN           69
48
-#define Y_MS2_PIN           39
49
-
50
-#define Z_STEP_PIN          35
51
-#define Z_DIR_PIN           47
52
-#define Z_MIN_PIN           10
53
-#define Z_MAX_PIN           23
54
-#define Z_ENABLE_PIN        27
55
-#define Z_MS1_PIN           68
56
-#define Z_MS2_PIN           67
57
-
58
-#define HEATER_BED_PIN       4
59
-#define TEMP_BED_PIN         2
60
-
61
-#define HEATER_0_PIN         3
62
-#define TEMP_0_PIN           0
63
-
64
-#define HEATER_1_PIN         7
65
-#define TEMP_1_PIN           1
66
-
67
-#if ENABLED(BARICUDA)
68
-  #define HEATER_2_PIN       6
34
+//
35
+// Limit Switches
36
+//
37
+#define X_MIN_PIN          12
38
+#define X_MAX_PIN          30
39
+#define Y_MIN_PIN          11
40
+#define Y_MAX_PIN          24
41
+#define Z_MIN_PIN          10
42
+#define Z_MAX_PIN          23
43
+
44
+//
45
+// Z Probe (when not Z_MIN_PIN)
46
+//
47
+#ifndef Z_MIN_PROBE_PIN
48
+  #define Z_MIN_PROBE_PIN  23
69 49
 #endif
70 50
 
71
-#define E0_STEP_PIN         34
72
-#define E0_DIR_PIN          43
73
-#define E0_ENABLE_PIN       26
74
-#define E0_MS1_PIN          65
75
-#define E0_MS2_PIN          66
76
-
77
-#define E1_STEP_PIN         -1
78
-#define E1_DIR_PIN          -1
79
-#define E1_ENABLE_PIN       -1
51
+//
52
+// Steppers
53
+//
54
+#define X_STEP_PIN         37
55
+#define X_DIR_PIN          48
56
+#define X_ENABLE_PIN       29
57
+#define X_MS1_PIN          40
58
+#define X_MS2_PIN          41
59
+
60
+#define Y_STEP_PIN         36
61
+#define Y_DIR_PIN          49
62
+#define Y_ENABLE_PIN       28
63
+#define Y_MS1_PIN          69
64
+#define Y_MS2_PIN          39
65
+
66
+#define Z_STEP_PIN         35
67
+#define Z_DIR_PIN          47
68
+#define Z_ENABLE_PIN       27
69
+#define Z_MS1_PIN          68
70
+#define Z_MS2_PIN          67
71
+
72
+#define E0_STEP_PIN        34
73
+#define E0_DIR_PIN         43
74
+#define E0_ENABLE_PIN      26
75
+#define E0_MS1_PIN         65
76
+#define E0_MS2_PIN         66
77
+
78
+#define E1_STEP_PIN        -1
79
+#define E1_DIR_PIN         -1
80
+#define E1_ENABLE_PIN      -1
80 81
 
81 82
 #define MOTOR_CURRENT_PWM_XY_PIN 46
82 83
 #define MOTOR_CURRENT_PWM_Z_PIN  45
@@ -84,33 +85,56 @@
84 85
 //Motor current PWM conversion, PWM value = MotorCurrentSetting * 255 / range
85 86
 #define MOTOR_CURRENT_PWM_RANGE 2000
86 87
 #define DEFAULT_PWM_MOTOR_CURRENT  {1300, 1300, 1250}
87
-#define SDSS                53
88
-#define LED_PIN             13
89
-#define FAN_PIN              8
90
-#define FAN_1_PIN            6
91 88
 
89
+//
90
+// Temperature Sensors
91
+//
92
+#define TEMP_0_PIN          0
93
+#define TEMP_1_PIN          1
94
+#define TEMP_BED_PIN        2
95
+
96
+//
97
+// Heaters / Fans
98
+//
99
+#define HEATER_0_PIN        3
100
+#define HEATER_1_PIN        7
101
+#define HEATER_2_PIN        6
102
+#define HEATER_BED_PIN      4
103
+
104
+#define FAN_PIN             8
105
+#define FAN1_PIN            6
106
+
107
+//
108
+// Misc. Functions
109
+//
110
+#define SDSS               53
111
+#define LED_PIN            13
112
+
113
+//
114
+// LCD / Controller
115
+//
92 116
 #if ENABLED(ULTRA_LCD)
93 117
 
94
-  #define KILL_PIN          32
118
+  #define KILL_PIN         32
95 119
 
96 120
   #if ENABLED(NEWPANEL)
97 121
 
98 122
     // Beeper on AUX-4
99
-    #define BEEPER_PIN      84
123
+    #define BEEPER_PIN     84
100 124
 
101
-    #define LCD_PINS_RS     82
125
+    #define LCD_PINS_RS    82
102 126
     #define LCD_PINS_ENABLE 18
103
-    #define LCD_PINS_D4     19
104
-    #define LCD_PINS_D5     70
105
-    #define LCD_PINS_D6     85
106
-    #define LCD_PINS_D7     71
127
+    #define LCD_PINS_D4    19
128
+    #define LCD_PINS_D5    70
129
+    #define LCD_PINS_D6    85
130
+    #define LCD_PINS_D7    71
107 131
 
108 132
     //buttons are directly attached using AUX-2
109
-    #define BTN_EN1         14
110
-    #define BTN_EN2         72
111
-    #define BTN_ENC          9  // the click
133
+    #define BTN_EN1        14
134
+    #define BTN_EN2        72
135
+    #define BTN_ENC         9  // the click
112 136
 
113
-    #define SD_DETECT_PIN   15
137
+    #define SD_DETECT_PIN  15
114 138
 
115 139
   #endif //NEWPANEL
116 140
 #endif //ULTRA_LCD

+ 77
- 64
Marlin/pins_MINITRONICS.h Dosyayı Görüntüle

@@ -28,82 +28,95 @@
28 28
   #error "Oops!  Make sure you have 'Minitronics' selected from the 'Tools -> Boards' menu."
29 29
 #endif
30 30
 
31
+#if HOTENDS > 2
32
+  #error "Minitronics supports up to 2 hotends. Comment this line to keep going."
33
+#endif
34
+
31 35
 #define BOARD_NAME         "Minitronics v1.0 / v1.1"
32 36
 #define LARGE_FLASH        true
33 37
 
34
-#define X_STEP_PIN 48
35
-#define X_DIR_PIN 47
36
-#define X_ENABLE_PIN 49
37
-#define X_MIN_PIN 5
38
-#define X_MAX_PIN 2
39
-
40
-#define Y_STEP_PIN 39 // A6
41
-#define Y_DIR_PIN 40 // A0
42
-#define Y_ENABLE_PIN 38
43
-#define Y_MIN_PIN 2
44
-#define Y_MAX_PIN 15
45
-
46
-#define Z_STEP_PIN 42 // A2
47
-#define Z_DIR_PIN 43 // A6
48
-#define Z_ENABLE_PIN 41 // A1
49
-#define Z_MIN_PIN 6
50
-#define Z_MAX_PIN -1
51
-
52
-#define E0_STEP_PIN 45
53
-#define E0_DIR_PIN 44
54
-#define E0_ENABLE_PIN 27
55
-
56
-#define E1_STEP_PIN 36
57
-#define E1_DIR_PIN 35
58
-#define E1_ENABLE_PIN 37
59
-
60
-#define E2_STEP_PIN -1
61
-#define E2_DIR_PIN -1
62
-#define E2_ENABLE_PIN -1
63
-
64
-#define SDSS 16
65
-#define LED_PIN 46
66
-
67
-#define FAN_PIN 9
68
-
69
-#define TEMP_0_PIN   7 // ANALOG NUMBERING
70
-#define TEMP_1_PIN   6 // ANALOG NUMBERING
71
-#define TEMP_BED_PIN 6 // ANALOG NUMBERING
72
-
73
-#define HEATER_0_PIN   7 // EXTRUDER 1
74
-#define HEATER_1_PIN   8 // EXTRUDER 2
75
-#define HEATER_BED_PIN 3 // BED
76
-
77
-/**
78
- * Controllers and LCDs
79
- */
80
-#define BEEPER_PIN -1
38
+//
39
+// Limit Switches
40
+//
41
+#define X_MIN_PIN           5
42
+#define X_MAX_PIN           2
43
+#define Y_MIN_PIN           2
44
+#define Y_MAX_PIN          15
45
+#define Z_MIN_PIN           6
46
+#define Z_MAX_PIN          -1
47
+
48
+//
49
+// Steppers
50
+//
51
+#define X_STEP_PIN         48
52
+#define X_DIR_PIN          47
53
+#define X_ENABLE_PIN       49
54
+
55
+#define Y_STEP_PIN         39 // A6
56
+#define Y_DIR_PIN          40 // A0
57
+#define Y_ENABLE_PIN       38
58
+
59
+#define Z_STEP_PIN         42 // A2
60
+#define Z_DIR_PIN          43 // A6
61
+#define Z_ENABLE_PIN       41 // A1
62
+
63
+#define E0_STEP_PIN        45
64
+#define E0_DIR_PIN         44
65
+#define E0_ENABLE_PIN      27
66
+
67
+#define E1_STEP_PIN        36
68
+#define E1_DIR_PIN         35
69
+#define E1_ENABLE_PIN      37
70
+
71
+//
72
+// Temperature Sensors
73
+//
74
+#define SDSS               16
75
+#define LED_PIN            46
76
+
77
+#define TEMP_0_PIN          7 // ANALOG NUMBERING
78
+#define TEMP_1_PIN          6 // ANALOG NUMBERING
79
+#define TEMP_BED_PIN        6 // ANALOG NUMBERING
80
+
81
+//
82
+// Heaters / Fans
83
+//
84
+#define HEATER_0_PIN        7 // EXTRUDER 1
85
+#define HEATER_1_PIN        8 // EXTRUDER 2
86
+#define HEATER_BED_PIN      3 // BED
87
+
88
+#define FAN_PIN             9
89
+
90
+//
91
+// LCD / Controller
92
+//
93
+#define BEEPER_PIN         -1
81 94
 
82 95
 #if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
83 96
 
84
-  #define LCD_PINS_RS     15 // CS chip select /SS chip slave select
85
-  #define LCD_PINS_ENABLE 11 // SID (MOSI)
86
-  #define LCD_PINS_D4     10 // SCK (CLK) clock
97
+  #define LCD_PINS_RS      15 // CS chip select /SS chip slave select
98
+  #define LCD_PINS_ENABLE  11 // SID (MOSI)
99
+  #define LCD_PINS_D4      10 // SCK (CLK) clock
87 100
 
88
-  #define BTN_EN1         18
89
-  #define BTN_EN2         17
90
-  #define BTN_ENC         25
101
+  #define BTN_EN1          18
102
+  #define BTN_EN2          17
103
+  #define BTN_ENC          25
91 104
 
92
-  #define SD_DETECT_PIN   30
105
+  #define SD_DETECT_PIN    30
93 106
 
94 107
 #else
95 108
 
96
-  #define LCD_PINS_RS     -1
97
-  #define LCD_PINS_ENABLE -1
98
-  #define LCD_PINS_D4     -1
99
-  #define LCD_PINS_D5     -1
100
-  #define LCD_PINS_D6     -1
101
-  #define LCD_PINS_D7     -1
109
+  #define LCD_PINS_RS      -1
110
+  #define LCD_PINS_ENABLE  -1
111
+  #define LCD_PINS_D4      -1
112
+  #define LCD_PINS_D5      -1
113
+  #define LCD_PINS_D6      -1
114
+  #define LCD_PINS_D7      -1
102 115
 
103 116
   // Buttons are directly attached using keypad
104
-  #define BTN_EN1         -1
105
-  #define BTN_EN2         -1
106
-  #define BTN_ENC         -1
117
+  #define BTN_EN1          -1
118
+  #define BTN_EN2          -1
119
+  #define BTN_ENC          -1
107 120
 
108
-  #define SD_DETECT_PIN -1  // Minitronics doesn't use this
121
+  #define SD_DETECT_PIN    -1  // Minitronics doesn't use this
109 122
 #endif

+ 78
- 66
Marlin/pins_RAMBO.h Dosyayı Görüntüle

@@ -32,85 +32,97 @@
32 32
 
33 33
 #define LARGE_FLASH true
34 34
 
35
-// Servo support
36
-#define SERVO0_PIN 22 // Motor header MX1
37
-#define SERVO1_PIN 23 // Motor header MX2
38
-#define SERVO2_PIN 24 // Motor header MX3
39
-#define SERVO3_PIN  5 // PWM header pin 5
35
+//
36
+// Servos
37
+//
38
+#define SERVO0_PIN         22 // Motor header MX1
39
+#define SERVO1_PIN         23 // Motor header MX2
40
+#define SERVO2_PIN         24 // Motor header MX3
41
+#define SERVO3_PIN          5 // PWM header pin 5
40 42
 
41 43
 #if ENABLED(Z_PROBE_SLED)
42 44
   #define SLED_PIN         -1
43 45
 #endif
44 46
 
45
-#define X_MIN_PIN 12
46
-#define X_MAX_PIN 24
47
-#define Y_MIN_PIN 11
48
-#define Y_MAX_PIN 23
49
-#define Z_MIN_PIN 10
50
-#define Z_MAX_PIN 30
47
+//
48
+// Limit Switches
49
+//
50
+#define X_MIN_PIN          12
51
+#define X_MAX_PIN          24
52
+#define Y_MIN_PIN          11
53
+#define Y_MAX_PIN          23
54
+#define Z_MIN_PIN          10
55
+#define Z_MAX_PIN          30
56
+
57
+//
58
+// Z Probe (when not Z_MIN_PIN)
59
+//
51 60
 #ifndef Z_MIN_PROBE_PIN
52
-  #define Z_MIN_PROBE_PIN 10
61
+  #define Z_MIN_PROBE_PIN  30
53 62
 #endif
54 63
 
55
-#define X_STEP_PIN 37
56
-#define X_DIR_PIN 48
57
-#define X_ENABLE_PIN 29
58
-#define X_MS1_PIN 40
59
-#define X_MS2_PIN 41
60
-
61
-#define Y_STEP_PIN 36
62
-#define Y_DIR_PIN 49
63
-#define Y_ENABLE_PIN 28
64
-#define Y_MS1_PIN 69
65
-#define Y_MS2_PIN 39
66
-
67
-#define Z_STEP_PIN 35
68
-#define Z_DIR_PIN 47
69
-#define Z_ENABLE_PIN 27
70
-#define Z_MS1_PIN 68
71
-#define Z_MS2_PIN 67
72
-
73
-#define HEATER_BED_PIN 3
74
-#define TEMP_BED_PIN 2
75
-
76
-#define HEATER_0_PIN  9
77
-#define TEMP_0_PIN 0
78
-
79
-#define HEATER_1_PIN 7
80
-#define TEMP_1_PIN 1
81
-
82
-#if ENABLED(BARICUDA)
83
-  #define HEATER_2_PIN 6
84
-#endif
85
-
86
-#define E0_STEP_PIN         34
87
-#define E0_DIR_PIN          43
88
-#define E0_ENABLE_PIN       26
89
-#define E0_MS1_PIN 65
90
-#define E0_MS2_PIN 66
91
-
92
-#define E1_STEP_PIN         33
93
-#define E1_DIR_PIN          42
94
-#define E1_ENABLE_PIN       25
95
-#define E1_MS1_PIN 63
96
-#define E1_MS2_PIN 64
97
-
98
-#define DIGIPOTSS_PIN 38
64
+//
65
+// Steppers
66
+//
67
+#define X_STEP_PIN         37
68
+#define X_DIR_PIN          48
69
+#define X_ENABLE_PIN       29
70
+#define X_MS1_PIN          40
71
+#define X_MS2_PIN          41
72
+
73
+#define Y_STEP_PIN         36
74
+#define Y_DIR_PIN          49
75
+#define Y_ENABLE_PIN       28
76
+#define Y_MS1_PIN          69
77
+#define Y_MS2_PIN          39
78
+
79
+#define Z_STEP_PIN         35
80
+#define Z_DIR_PIN          47
81
+#define Z_ENABLE_PIN       27
82
+#define Z_MS1_PIN          68
83
+#define Z_MS2_PIN          67
84
+
85
+#define E0_STEP_PIN        34
86
+#define E0_DIR_PIN         43
87
+#define E0_ENABLE_PIN      26
88
+#define E0_MS1_PIN         65
89
+#define E0_MS2_PIN         66
90
+
91
+#define E1_STEP_PIN        33
92
+#define E1_DIR_PIN         42
93
+#define E1_ENABLE_PIN      25
94
+#define E1_MS1_PIN         63
95
+#define E1_MS2_PIN         64
96
+
97
+#define DIGIPOTSS_PIN      38
99 98
 #define DIGIPOT_CHANNELS {4,5,3,0,1} // X Y Z E0 E1 digipot channels to stepper driver mapping
100 99
 
100
+//
101
+// Temperature Sensors
102
+//
103
+#define TEMP_0_PIN          0
104
+#define TEMP_1_PIN          1
105
+#define TEMP_BED_PIN        2
106
+
107
+//
108
+// Heaters / Fans
109
+//
110
+#define HEATER_0_PIN        9
111
+#define HEATER_1_PIN        7
112
+#define HEATER_2_PIN        6
113
+#define HEATER_BED_PIN      3
114
+
115
+#define FAN_PIN             8
116
+#define FAN1_PIN            6
117
+#define FAN2_PIN            2
118
+
119
+//
120
+// Misc. Functions
121
+//
101 122
 #define SDSS               53
102 123
 #define LED_PIN            13
103
-#define FAN_PIN            8
104
-
105 124
 #define FILWIDTH_PIN        3  // ANALOG NUMBERING
106
-
107
-/**********************************************************
108
-  Fan Pins
109
-  Fan_0 8
110
-  Fan_1 6
111
-  Fan_2 2
112
-***********************************************************/
113
-#define PS_ON_PIN          4
125
+#define PS_ON_PIN           4
114 126
 
115 127
 #if ENABLED(ULTRA_LCD)
116 128
 

+ 32
- 15
Marlin/pins_RAMPS.h Dosyayı Görüntüle

@@ -54,6 +54,9 @@
54 54
 
55 55
 #define LARGE_FLASH true
56 56
 
57
+//
58
+// Servos
59
+//
57 60
 #ifdef IS_RAMPS_13
58 61
   #define SERVO0_PIN        7 // RAMPS_13 // Will conflict with BTN_EN2 on LCD_I2C_VIKI
59 62
 #else
@@ -63,6 +66,9 @@
63 66
 #define SERVO2_PIN          5
64 67
 #define SERVO3_PIN          4
65 68
 
69
+//
70
+// Limit Switches
71
+//
66 72
 #define X_MIN_PIN           3
67 73
 #ifndef X_MAX_PIN
68 74
   #define X_MAX_PIN         2
@@ -71,10 +77,17 @@
71 77
 #define Y_MAX_PIN          15
72 78
 #define Z_MIN_PIN          18
73 79
 #define Z_MAX_PIN          19
80
+
81
+//
82
+// Z Probe (when not Z_MIN_PIN)
83
+//
74 84
 #ifndef Z_MIN_PROBE_PIN
75 85
   #define Z_MIN_PROBE_PIN  32
76 86
 #endif
77 87
 
88
+//
89
+// Steppers
90
+//
78 91
 #define X_STEP_PIN         54
79 92
 #define X_DIR_PIN          55
80 93
 #define X_ENABLE_PIN       38
@@ -95,6 +108,16 @@
95 108
 #define E1_DIR_PIN         34
96 109
 #define E1_ENABLE_PIN      30
97 110
 
111
+//
112
+// Temperature Sensors
113
+//
114
+#define TEMP_0_PIN         13   // ANALOG NUMBERING
115
+#define TEMP_1_PIN         15   // ANALOG NUMBERING
116
+#define TEMP_BED_PIN       14   // ANALOG NUMBERING
117
+
118
+//
119
+// Misc. Functions
120
+//
98 121
 #define SDSS               53
99 122
 #define LED_PIN            13
100 123
 
@@ -105,15 +128,11 @@
105 128
 #define FIL_RUNOUT_PIN      4
106 129
 
107 130
 #define PS_ON_PIN          12
108
-#define TEMP_0_PIN         13   // ANALOG NUMBERING
109
-#define TEMP_1_PIN         15   // ANALOG NUMBERING
110
-#define TEMP_BED_PIN       14   // ANALOG NUMBERING
111
-
112
-#if ENABLED(Z_PROBE_SLED)
113
-  #define SLED_PIN           -1
114
-#endif
131
+#define SLED_PIN           -1
115 132
 
133
+//
116 134
 // Augmentation for auto-assigning RAMPS plugs
135
+//
117 136
 #if DISABLED(IS_RAMPS_EEB) && DISABLED(IS_RAMPS_EEF) && DISABLED(IS_RAMPS_EFB) && DISABLED(IS_RAMPS_EFF) && DISABLED(IS_RAMPS_SF) && !PIN_EXISTS(MOSFET_D)
118 137
   #if HOTENDS > 1
119 138
     #if TEMP_SENSOR_BED
@@ -128,10 +147,9 @@
128 147
   #endif
129 148
 #endif
130 149
 
131
-/**
132
- * Hi Voltage PWM Pin Assignments
133
- */
134
-
150
+//
151
+// Heaters / Fans
152
+//
135 153
 #ifndef MOSFET_D_PIN
136 154
   #define MOSFET_D_PIN  -1
137 155
 #endif
@@ -175,10 +193,9 @@
175 193
   #define FAN_PIN 4      // IO pin. Buffer needed
176 194
 #endif
177 195
 
178
-/**
179
- * LCD Controller Pin Assignments
180
- */
181
-
196
+//
197
+// LCD / Controller
198
+//
182 199
 #if ENABLED(ULTRA_LCD)
183 200
 
184 201
   #if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)

+ 39
- 16
Marlin/pins_RAMPS_OLD.h Dosyayı Görüntüle

@@ -33,45 +33,68 @@
33 33
 // Uncomment the following line for RAMPS v1.0
34 34
 //#define RAMPS_V_1_0
35 35
 
36
+//
37
+// Limit Switches
38
+//
39
+#define X_MIN_PIN           3
40
+#define X_MAX_PIN           2
41
+#define Y_MIN_PIN          16
42
+#define Y_MAX_PIN          17
43
+#define Z_MIN_PIN          18
44
+#define Z_MAX_PIN          19
45
+
46
+//
47
+// Z Probe (when not Z_MIN_PIN)
48
+//
49
+#ifndef Z_MIN_PROBE_PIN
50
+  #define Z_MIN_PROBE_PIN  19
51
+#endif
52
+
53
+//
54
+// Steppers
55
+//
36 56
 #define X_STEP_PIN         26
37 57
 #define X_DIR_PIN          28
38 58
 #define X_ENABLE_PIN       24
39
-#define X_MIN_PIN           3
40
-#define X_MAX_PIN           2
41 59
 
42 60
 #define Y_STEP_PIN         38
43 61
 #define Y_DIR_PIN          40
44 62
 #define Y_ENABLE_PIN       36
45
-#define Y_MIN_PIN          16
46
-#define Y_MAX_PIN          17
47 63
 
48 64
 #define Z_STEP_PIN         44
49 65
 #define Z_DIR_PIN          46
50 66
 #define Z_ENABLE_PIN       42
51
-#define Z_MIN_PIN          18
52
-#define Z_MAX_PIN          19
53 67
 
54 68
 #define E0_STEP_PIN        32
55 69
 #define E0_DIR_PIN         34
56 70
 #define E0_ENABLE_PIN      30
57 71
 
72
+//
73
+// Misc. Functions
74
+//
58 75
 #define SDPOWER            48
59 76
 #define SDSS               53
60 77
 #define LED_PIN            13
61 78
 
62
-#if ENABLED(RAMPS_V_1_0) // RAMPS_V_1_0
63
-  #define HEATER_0_PIN     12    // RAMPS 1.0
64
-  #define HEATER_BED_PIN   -1    // RAMPS 1.0
65
-  #define FAN_PIN          11    // RAMPS 1.0
66
-#else // RAMPS_V_1_1 or RAMPS_V_1_2
67
-  #define HEATER_0_PIN     10    // RAMPS 1.1
68
-  #define HEATER_BED_PIN    8    // RAMPS 1.1
69
-  #define FAN_PIN           9    // RAMPS 1.1
70
-#endif
71
-
79
+//
80
+// Temperature Sensors
81
+//
72 82
 #define TEMP_0_PIN          2    // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
73 83
 #define TEMP_BED_PIN        1    // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
74 84
 
85
+//
86
+// Heaters / Fans
87
+//
88
+#if ENABLED(RAMPS_V_1_0)
89
+  #define HEATER_0_PIN     12
90
+  #define HEATER_BED_PIN   -1
91
+  #define FAN_PIN          11
92
+#else // RAMPS_V_1_1 or RAMPS_V_1_2
93
+  #define HEATER_0_PIN     10
94
+  #define HEATER_BED_PIN    8
95
+  #define FAN_PIN           9
96
+#endif
97
+
75 98
 // SPI for Max6675 or Max31855 Thermocouple
76 99
 #if DISABLED(SDSUPPORT)
77 100
   #define MAX6675_SS       66// Do not use pin 53 if there is even the remote possibility of using Display/SD card

+ 40
- 20
Marlin/pins_RUMBA.h Dosyayı Görüntüle

@@ -35,27 +35,37 @@
35 35
 #define DEFAULT_MACHINE_NAME "Rumba"
36 36
 #define BOARD_NAME           "Rumba"
37 37
 
38
+//
39
+// Limit Switches
40
+//
41
+#define X_MIN_PIN          37
42
+#define X_MAX_PIN          36
43
+#define Y_MIN_PIN          35
44
+#define Y_MAX_PIN          34
45
+#define Z_MIN_PIN          33
46
+#define Z_MAX_PIN          32
47
+
48
+//
49
+// Z Probe (when not Z_MIN_PIN)
50
+//
51
+#ifndef Z_MIN_PROBE_PIN
52
+  #define Z_MIN_PROBE_PIN  32
53
+#endif
54
+
55
+//
56
+// Steppers
57
+//
38 58
 #define X_STEP_PIN         17
39 59
 #define X_DIR_PIN          16
40 60
 #define X_ENABLE_PIN       48
41
-#define X_MIN_PIN          37
42
-#define X_MAX_PIN          36
43 61
 
44 62
 #define Y_STEP_PIN         54
45 63
 #define Y_DIR_PIN          47
46 64
 #define Y_ENABLE_PIN       55
47
-#define Y_MIN_PIN          35
48
-#define Y_MAX_PIN          34
49 65
 
50 66
 #define Z_STEP_PIN         57
51 67
 #define Z_DIR_PIN          56
52 68
 #define Z_ENABLE_PIN       62
53
-#define Z_MIN_PIN          33
54
-#define Z_MAX_PIN          32
55
-
56
-#ifndef Z_MIN_PROBE_PIN
57
-  #define Z_MIN_PROBE_PIN  33
58
-#endif
59 69
 
60 70
 #define E0_STEP_PIN        23
61 71
 #define E0_DIR_PIN         22
@@ -69,18 +79,17 @@
69 79
 #define E2_DIR_PIN         28
70 80
 #define E2_ENABLE_PIN      39
71 81
 
82
+//
83
+// Misc. Functions
84
+//
72 85
 #define LED_PIN            13
73 86
 
74
-#define FAN_PIN             7
75
-#define FAN1_PIN            8
76
-
77 87
 #define PS_ON_PIN          45
78 88
 #define KILL_PIN           46
79 89
 
80
-#define HEATER_0_PIN        2   // EXTRUDER 1
81
-#define HEATER_1_PIN        3   // EXTRUDER 2
82
-#define HEATER_2_PIN        6   // EXTRUDER 3
83
-
90
+//
91
+// Temperature Sensors
92
+//
84 93
 #if TEMP_SENSOR_0 == -1
85 94
   #define TEMP_0_PIN        6   // ANALOG NUMBERING - connector *K1* on RUMBA thermocouple ADD ON is used
86 95
 #else
@@ -99,10 +108,21 @@
99 108
   #define TEMP_2_PIN       13   // ANALOG NUMBERING - default connector for thermistor *T2* on rumba board is used
100 109
 #endif
101 110
 
102
-//optional for extruder 4 or chamber: #define TEMP_X_PIN         12   // ANALOG NUMBERING - default connector for thermistor *T3* on rumba board is used
103
-//optional FAN1 can be used as 4th heater output: #define HEATER_3_PIN       8    // EXTRUDER 4
111
+//
112
+// Heaters / Fans
113
+//
114
+#define HEATER_0_PIN        2
115
+#define HEATER_1_PIN        3
116
+#define HEATER_2_PIN        6
117
+#define HEATER_3_PIN        8
118
+#define HEATER_BED_PIN      9
119
+
120
+#define FAN_PIN             7
121
+#define FAN1_PIN            8
122
+
123
+//optional for extruder 4 or chamber:
124
+// #define TEMP_X_PIN         12   // ANALOG NUMBERING - default connector for thermistor *T3* on rumba board is used
104 125
 
105
-#define HEATER_BED_PIN      9    // BED
106 126
 #if TEMP_SENSOR_BED == -1
107 127
   #define TEMP_BED_PIN      7    // ANALOG NUMBERING - connector *K3* on RUMBA thermocouple ADD ON is used <-- this can not be used when TEMP_SENSOR_2 is defined as thermocouple
108 128
 #else

+ 44
- 35
Marlin/pins_SETHI.h Dosyayı Görüntüle

@@ -34,53 +34,62 @@
34 34
   #define GEN7_VERSION 12 // v1.x
35 35
 #endif
36 36
 
37
-//x axis pins
38
-#define X_STEP_PIN 19
39
-#define X_DIR_PIN 18
40
-#define X_ENABLE_PIN 24
41
-#define X_STOP_PIN 2
42
-
43
-//y axis pins
44
-#define Y_STEP_PIN 23
45
-#define Y_DIR_PIN 22
46
-#define Y_ENABLE_PIN 24
47
-#define Y_STOP_PIN 0
48
-
49
-//z axis pins
50
-#define Z_STEP_PIN 26
51
-#define Z_DIR_PIN 25
52
-#define Z_ENABLE_PIN 24
53
-#define Z_MIN_PIN 1
54
-#define Z_MAX_PIN 0
55
-
56
-//extruder pins
57
-#define E0_STEP_PIN 28
58
-#define E0_DIR_PIN 27
59
-#define E0_ENABLE_PIN 24
60
-
61
-#define TEMP_0_PIN 1
62
-#define TEMP_BED_PIN 2
63
-
64
-#define HEATER_0_PIN 4
65
-#define HEATER_BED_PIN 3
37
+//
38
+// Limit Switches
39
+//
40
+#define X_STOP_PIN          2
41
+#define Y_STOP_PIN          0
42
+#define Z_MIN_PIN           1
43
+#define Z_MAX_PIN           0
44
+
45
+//
46
+// Steppers
47
+//
48
+#define X_STEP_PIN         19
49
+#define X_DIR_PIN          18
50
+#define X_ENABLE_PIN       24
51
+
52
+#define Y_STEP_PIN         23
53
+#define Y_DIR_PIN          22
54
+#define Y_ENABLE_PIN       24
55
+
56
+#define Z_STEP_PIN         26
57
+#define Z_DIR_PIN          25
58
+#define Z_ENABLE_PIN       24
59
+
60
+#define E0_STEP_PIN        28
61
+#define E0_DIR_PIN         27
62
+#define E0_ENABLE_PIN      24
63
+
64
+//
65
+// Temperature Sensors
66
+//
67
+#define TEMP_0_PIN          1
68
+#define TEMP_BED_PIN        2
69
+
70
+//
71
+// Heaters / Fans
72
+//
73
+#define HEATER_0_PIN        4
74
+#define HEATER_BED_PIN      3
66 75
 
67 76
 
68 77
 #if (GEN7_VERSION >= 13)
69 78
   // Gen7 v1.3 removed the fan pin
70
-  #define FAN_PIN -1
79
+  #define FAN_PIN          -1
71 80
 #else
72
-  #define FAN_PIN 31
81
+  #define FAN_PIN          31
73 82
 #endif
74 83
 
75
-#define PS_ON_PIN 15
84
+#define PS_ON_PIN          15
76 85
 
77 86
 //All these generations of Gen7 supply thermistor power
78 87
 //via PS_ON, so ignore bad thermistor readings
79 88
 #define BOGUS_TEMPERATURE_FAILSAFE_OVERRIDE
80 89
 
81 90
 //our pin for debugging.
82
-#define DEBUG_PIN 0
91
+#define DEBUG_PIN           0
83 92
 
84 93
 //our RS485 pins
85
-#define TX_ENABLE_PIN 12
86
-#define RX_ENABLE_PIN 13
94
+#define TX_ENABLE_PIN      12
95
+#define RX_ENABLE_PIN      13

+ 65
- 49
Marlin/pins_ULTIMAIN_2.h Dosyayı Görüntüle

@@ -32,43 +32,35 @@
32 32
 #define DEFAULT_SOURCE_CODE_URL "https://github.com/Ultimaker/Marlin"
33 33
 #define BOARD_NAME              "Ultimaker 2.x"
34 34
 
35
-#define X_STEP_PIN 25
36
-#define X_DIR_PIN 23
37
-#define X_STOP_PIN 22
38
-#define X_ENABLE_PIN 27
39
-
40
-#define Y_STEP_PIN 32
41
-#define Y_DIR_PIN 33
42
-#define Y_STOP_PIN 26
43
-#define Y_ENABLE_PIN 31
44
-
45
-#define Z_STEP_PIN 35
46
-#define Z_DIR_PIN 36
47
-#define Z_STOP_PIN 29
48
-#define Z_ENABLE_PIN 34
49
-
50
-#define HEATER_BED_PIN 4
51
-#define TEMP_BED_PIN 10
52
-
53
-#define HEATER_0_PIN  2
54
-#define TEMP_0_PIN 8
55
-
56
-#define HEATER_1_PIN 3
57
-#define TEMP_1_PIN 9
58
-
59
-#define E0_STEP_PIN         42
60
-#define E0_DIR_PIN          43
61
-#define E0_ENABLE_PIN       37
62
-
63
-#define E1_STEP_PIN         49
64
-#define E1_DIR_PIN          47
65
-#define E1_ENABLE_PIN       48
66
-
67
-#define SDSS               53
68
-#define LED_PIN            8
69
-#define FAN_PIN            7
70
-#define SAFETY_TRIGGERED_PIN     28 //PIN to detect the safety circuit has triggered
71
-#define MAIN_VOLTAGE_MEASURE_PIN 14 //Analogue PIN to measure the main voltage, with a 100k - 4k7 resitor divider.
35
+//
36
+// Limit Switches
37
+//
38
+#define X_STOP_PIN         22
39
+#define Y_STOP_PIN         26
40
+#define Z_STOP_PIN         29
41
+
42
+//
43
+// Steppers
44
+//
45
+#define X_STEP_PIN         25
46
+#define X_DIR_PIN          23
47
+#define X_ENABLE_PIN       27
48
+
49
+#define Y_STEP_PIN         32
50
+#define Y_DIR_PIN          33
51
+#define Y_ENABLE_PIN       31
52
+
53
+#define Z_STEP_PIN         35
54
+#define Z_DIR_PIN          36
55
+#define Z_ENABLE_PIN       34
56
+
57
+#define E0_STEP_PIN        42
58
+#define E0_DIR_PIN         43
59
+#define E0_ENABLE_PIN      37
60
+
61
+#define E1_STEP_PIN        49
62
+#define E1_DIR_PIN         47
63
+#define E1_ENABLE_PIN      48
72 64
 
73 65
 #define MOTOR_CURRENT_PWM_XY_PIN 44
74 66
 #define MOTOR_CURRENT_PWM_Z_PIN 45
@@ -77,18 +69,42 @@
77 69
 #define MOTOR_CURRENT_PWM_RANGE 2000
78 70
 #define DEFAULT_PWM_MOTOR_CURRENT  {1300, 1300, 1250}
79 71
 
80
-#define BEEPER_PIN 18
72
+//
73
+// Temperature Sensors
74
+//
75
+#define TEMP_0_PIN          8
76
+#define TEMP_1_PIN          9
77
+#define TEMP_BED_PIN       10
78
+
79
+//
80
+// Heaters / Fans
81
+//
82
+#define HEATER_0_PIN        2
83
+#define HEATER_1_PIN        3
84
+#define HEATER_BED_PIN      4
85
+
86
+#define FAN_PIN             7
87
+
88
+//
89
+// SD Card
90
+//
91
+#define SDSS               53
92
+#define SD_DETECT_PIN      39
93
+
94
+#define LED_PIN             8
95
+#define SAFETY_TRIGGERED_PIN     28 // PIN to detect the safety circuit has triggered
96
+#define MAIN_VOLTAGE_MEASURE_PIN 14 // ANALOG PIN to measure the main voltage, with a 100k - 4k7 resitor divider.
81 97
 
82
-#define LCD_PINS_RS 20
83
-#define LCD_PINS_ENABLE 15
84
-#define LCD_PINS_D4 14
85
-#define LCD_PINS_D5 21
86
-#define LCD_PINS_D6 5
87
-#define LCD_PINS_D7 6
98
+#define BEEPER_PIN         18
88 99
 
89
-//buttons are directly attached
90
-#define BTN_EN1 40
91
-#define BTN_EN2 41
92
-#define BTN_ENC 19
100
+#define LCD_PINS_RS        20
101
+#define LCD_PINS_ENABLE    15
102
+#define LCD_PINS_D4        14
103
+#define LCD_PINS_D5        21
104
+#define LCD_PINS_D6         5
105
+#define LCD_PINS_D7         6
93 106
 
94
-#define SD_DETECT_PIN 39
107
+// Buttons are directly attached
108
+#define BTN_EN1            40
109
+#define BTN_EN2            41
110
+#define BTN_ENC            19

+ 61
- 36
Marlin/pins_ULTIMAKER.h Dosyayı Görüntüle

@@ -34,49 +34,74 @@
34 34
 
35 35
 #define LARGE_FLASH true
36 36
 
37
-#define SERVO0_PIN 13 // untested
38
-
39
-#define X_STEP_PIN 25
40
-#define X_DIR_PIN 23
41
-#define X_MIN_PIN 22
42
-#define X_MAX_PIN 24
43
-#define X_ENABLE_PIN 27
44
-
45
-#define Y_STEP_PIN 31
46
-#define Y_DIR_PIN 33
47
-#define Y_MIN_PIN 26
48
-#define Y_MAX_PIN 28
49
-#define Y_ENABLE_PIN 29
50
-
51
-#define Z_STEP_PIN 37
52
-#define Z_DIR_PIN 39
53
-#define Z_MIN_PIN 30
54
-#define Z_MAX_PIN 32
55
-#define Z_ENABLE_PIN 35
56
-
57
-#define HEATER_BED_PIN 4
58
-#define TEMP_BED_PIN 10
59
-
60
-#define HEATER_0_PIN  2
61
-#define TEMP_0_PIN 8
62
-
63
-#define HEATER_1_PIN 3
64
-#define TEMP_1_PIN 9
65
-
66
-#define E0_STEP_PIN         43
67
-#define E0_DIR_PIN          45
68
-#define E0_ENABLE_PIN       41
37
+//
38
+// Servos
39
+//
40
+#define SERVO0_PIN         13 // untested
41
+
42
+//
43
+// Limit Switches
44
+//
45
+#define X_MIN_PIN          22
46
+#define X_MAX_PIN          24
47
+#define Y_MIN_PIN          26
48
+#define Y_MAX_PIN          28
49
+#define Z_MIN_PIN          30
50
+#define Z_MAX_PIN          32
51
+
52
+//
53
+// Z Probe (when not Z_MIN_PIN)
54
+//
55
+#ifndef Z_MIN_PROBE_PIN
56
+  #define Z_MIN_PROBE_PIN  32
57
+#endif
69 58
 
70
-#define E1_STEP_PIN         49
71
-#define E1_DIR_PIN          47
72
-#define E1_ENABLE_PIN       48
59
+//
60
+// Steppers
61
+//
62
+#define X_STEP_PIN         25
63
+#define X_DIR_PIN          23
64
+#define X_ENABLE_PIN       27
65
+
66
+#define Y_STEP_PIN         31
67
+#define Y_DIR_PIN          33
68
+#define Y_ENABLE_PIN       29
69
+
70
+#define Z_STEP_PIN         37
71
+#define Z_DIR_PIN          39
72
+#define Z_ENABLE_PIN       35
73
+
74
+#define E0_STEP_PIN        43
75
+#define E0_DIR_PIN         45
76
+#define E0_ENABLE_PIN      41
77
+
78
+#define E1_STEP_PIN        49
79
+#define E1_DIR_PIN         47
80
+#define E1_ENABLE_PIN      48
81
+
82
+//
83
+// Temperature Sensors
84
+//
85
+#define TEMP_0_PIN          8
86
+#define TEMP_1_PIN          9
87
+#define TEMP_BED_PIN       10
88
+
89
+//
90
+// Heaters / Fans
91
+//
92
+#define HEATER_0_PIN        2
93
+#define HEATER_1_PIN        3
94
+#define HEATER_BED_PIN      4
73 95
 
74 96
 #define SDSS               53
75 97
 #define LED_PIN            13
76
-#define FAN_PIN            7
98
+#define FAN_PIN             7
77 99
 #define PS_ON_PIN          12
78 100
 #define SUICIDE_PIN        54  //PIN that has to be turned on right after start, to keep power flowing.
79 101
 
102
+//
103
+// LCD / Controller
104
+//
80 105
 #if ENABLED(ULTRA_LCD)
81 106
 
82 107
   #define BEEPER_PIN 18

+ 54
- 31
Marlin/pins_ULTIMAKER_OLD.h Dosyayı Görüntüle

@@ -34,41 +34,64 @@
34 34
 
35 35
 #define LARGE_FLASH true
36 36
 
37
-#define X_STEP_PIN 25
38
-#define X_DIR_PIN 23
39
-#define X_MIN_PIN 15
40
-#define X_MAX_PIN 14
41
-#define X_ENABLE_PIN 27
37
+//
38
+// Limit Switches
39
+//
40
+#define X_MIN_PIN          15
41
+#define X_MAX_PIN          14
42
+#define Y_MIN_PIN          17
43
+#define Y_MAX_PIN          16
44
+#define Z_MIN_PIN          19
45
+#define Z_MAX_PIN          18
42 46
 
43
-#define Y_STEP_PIN 31
44
-#define Y_DIR_PIN 33
45
-#define Y_MIN_PIN 17
46
-#define Y_MAX_PIN 16
47
-#define Y_ENABLE_PIN 29
47
+//
48
+// Z Probe (when not Z_MIN_PIN)
49
+//
50
+#ifndef Z_MIN_PROBE_PIN
51
+  #define Z_MIN_PROBE_PIN  18
52
+#endif
53
+
54
+//
55
+// Steppers
56
+//
57
+#define X_STEP_PIN         25
58
+#define X_DIR_PIN          23
59
+#define X_ENABLE_PIN       27
60
+
61
+#define Y_STEP_PIN         31
62
+#define Y_DIR_PIN          33
63
+#define Y_ENABLE_PIN       29
48 64
 
49
-#define Z_STEP_PIN 37
50
-#define Z_DIR_PIN 39
51
-#define Z_MIN_PIN 19
52
-#define Z_MAX_PIN 18
53
-#define Z_ENABLE_PIN 35
65
+#define Z_STEP_PIN         37
66
+#define Z_DIR_PIN          39
67
+#define Z_ENABLE_PIN       35
54 68
 
55
-#define TEMP_0_PIN 8
56
-#define TEMP_1_PIN 1
69
+#define E0_STEP_PIN        43
70
+#define E0_DIR_PIN         45
71
+#define E0_ENABLE_PIN      41
57 72
 
58
-#define HEATER_0_PIN  2
59
-#define HEATER_1_PIN  1
73
+#define E1_STEP_PIN        -1
74
+#define E1_DIR_PIN         -1
75
+#define E1_ENABLE_PIN      -1
60 76
 
61
-#define E0_STEP_PIN         43
62
-#define E0_DIR_PIN          45
63
-#define E0_ENABLE_PIN       41
77
+//
78
+// Temperature Sensors
79
+//
80
+#define TEMP_0_PIN          8
81
+#define TEMP_1_PIN          1
64 82
 
65
-#define E1_STEP_PIN         -1
66
-#define E1_DIR_PIN          -1
67
-#define E1_ENABLE_PIN       -1
83
+//
84
+// Heaters / Fans
85
+//
86
+#define HEATER_0_PIN        2
87
+#define HEATER_1_PIN        1
68 88
 
69
-#define LCD_PINS_RS 24
70
-#define LCD_PINS_ENABLE 22
71
-#define LCD_PINS_D4 36
72
-#define LCD_PINS_D5 34
73
-#define LCD_PINS_D6 32
74
-#define LCD_PINS_D7 30
89
+//
90
+// LCD / Controller
91
+//
92
+#define LCD_PINS_RS        24
93
+#define LCD_PINS_ENABLE    22
94
+#define LCD_PINS_D4        36
95
+#define LCD_PINS_D5        34
96
+#define LCD_PINS_D6        32
97
+#define LCD_PINS_D7        30

Loading…
İptal
Kaydet