Browse Source

Merge pull request #7286 from cscott/printrboard-rev-f

[1.1.x] Update pin definitions for PRINTRBOARD REV F.
Scott Lahteine 7 years ago
parent
commit
4e3b566f72
No account linked to committer's email address

+ 1
- 1
Marlin/Marlin_main.cpp View File

@@ -13790,7 +13790,7 @@ void setup() {
13790 13790
     Max7219_init();
13791 13791
   #endif
13792 13792
 
13793
-  #ifdef DISABLE_JTAG
13793
+  #if ENABLED(DISABLE_JTAG)
13794 13794
     // Disable JTAG on AT90USB chips to free up pins for IO
13795 13795
     MCUCR = 0x80;
13796 13796
     MCUCR = 0x80;

+ 0
- 2
Marlin/pins_5DPRINT.h View File

@@ -74,8 +74,6 @@
74 74
 #define DEFAULT_MACHINE_NAME "Makibox"
75 75
 #define BOARD_NAME           "5DPrint D8"
76 76
 
77
-#define LARGE_FLASH        true
78
-
79 77
 //
80 78
 // Limit Switches
81 79
 //

+ 0
- 2
Marlin/pins_ANET_10.h View File

@@ -96,8 +96,6 @@
96 96
   #define BOARD_NAME "Anet"
97 97
 #endif
98 98
 
99
-#define LARGE_FLASH true
100
-
101 99
 //
102 100
 // Limit Switches
103 101
 //

+ 0
- 2
Marlin/pins_BRAINWAVE_PRO.h View File

@@ -80,8 +80,6 @@
80 80
 
81 81
 #define BOARD_NAME         "Brainwave Pro"
82 82
 
83
-#define LARGE_FLASH        true
84
-
85 83
 //
86 84
 // Limit Switches
87 85
 //

+ 0
- 2
Marlin/pins_CHEAPTRONIC.h View File

@@ -29,8 +29,6 @@
29 29
 #endif
30 30
 
31 31
 #define BOARD_NAME         "Cheaptronic v1.0"
32
-#define LARGE_FLASH        true
33
-
34 32
 //
35 33
 // Limit Switches
36 34
 //

+ 0
- 2
Marlin/pins_CHEAPTRONICv2.h View File

@@ -31,8 +31,6 @@
31 31
 #endif
32 32
 
33 33
 #define BOARD_NAME         "Cheaptronic v2.0"
34
-#define LARGE_FLASH        true
35
-
36 34
 //
37 35
 // Limit Switches
38 36
 //

+ 0
- 2
Marlin/pins_CNCONTROLS_11.h View File

@@ -8,8 +8,6 @@
8 8
 
9 9
 #define BOARD_NAME "CN Controls V11"
10 10
 
11
-//#define LARGE_FLASH true
12
-
13 11
 //
14 12
 // Limit Switches
15 13
 //

+ 0
- 2
Marlin/pins_CNCONTROLS_12.h View File

@@ -8,8 +8,6 @@
8 8
 
9 9
 #define BOARD_NAME            "CN Controls V12"
10 10
 
11
-//#define LARGE_FLASH true
12
-
13 11
 //
14 12
 // Limit Switches
15 13
 //

+ 0
- 2
Marlin/pins_GT2560_REV_A.h View File

@@ -32,8 +32,6 @@
32 32
 
33 33
 #define BOARD_NAME           "GT2560 Rev.A"
34 34
 #define DEFAULT_MACHINE_NAME "Prusa i3 Pro B"
35
-#define LARGE_FLASH true
36
-
37 35
 //
38 36
 // Limit Switches
39 37
 //

+ 0
- 2
Marlin/pins_MEGATRONICS.h View File

@@ -29,8 +29,6 @@
29 29
 #endif
30 30
 
31 31
 #define BOARD_NAME         "Megatronics"
32
-#define LARGE_FLASH        true
33
-
34 32
 //
35 33
 // Limit Switches
36 34
 //

+ 0
- 2
Marlin/pins_MEGATRONICS_2.h View File

@@ -29,8 +29,6 @@
29 29
 #endif
30 30
 
31 31
 #define BOARD_NAME         "Megatronics v2.0"
32
-#define LARGE_FLASH        true
33
-
34 32
 //
35 33
 // Limit Switches
36 34
 //

+ 0
- 2
Marlin/pins_MEGATRONICS_3.h View File

@@ -36,8 +36,6 @@
36 36
   #define BOARD_NAME       "Megatronics v3.0"
37 37
 #endif
38 38
 
39
-#define LARGE_FLASH        true
40
-
41 39
 //
42 40
 // Servos
43 41
 //

+ 0
- 2
Marlin/pins_MIGHTYBOARD_REVE.h View File

@@ -59,8 +59,6 @@
59 59
 #define DEFAULT_MACHINE_NAME    "MB Replicator"
60 60
 #define BOARD_NAME              "Mightyboard"
61 61
 
62
-#define LARGE_FLASH true
63
-
64 62
 //
65 63
 // Servos
66 64
 //

+ 0
- 1
Marlin/pins_MINIRAMBO.h View File

@@ -29,7 +29,6 @@
29 29
 #endif
30 30
 
31 31
 #define BOARD_NAME          "Mini Rambo"
32
-#define LARGE_FLASH         true
33 32
 
34 33
 //
35 34
 // Limit Switches

+ 0
- 2
Marlin/pins_MINITRONICS.h View File

@@ -40,8 +40,6 @@
40 40
 #endif
41 41
 
42 42
 #define BOARD_NAME         "Minitronics v1.0 / v1.1"
43
-#define LARGE_FLASH        true
44
-
45 43
 //
46 44
 // Limit Switches
47 45
 //

+ 1
- 3
Marlin/pins_PRINTRBOARD.h View File

@@ -67,10 +67,8 @@
67 67
 
68 68
 #define BOARD_NAME         "Printrboard"
69 69
 
70
-#define LARGE_FLASH        true
71
-
72 70
 // Disable JTAG pins so they can be used for the Extrudrboard
73
-#define DISABLE_JTAG       true
71
+#define DISABLE_JTAG
74 72
 
75 73
 //
76 74
 // Limit Switches

+ 77
- 6
Marlin/pins_PRINTRBOARD_REVF.h View File

@@ -30,8 +30,8 @@
30 30
  *  There are two Arduino IDE extensions that are compatible with this board
31 31
  *  and with the mainstream Marlin software.
32 32
  *
33
- *  Teensyduino - http://www.pjrc.com/teensy/teensyduino.html
34
- *    Installation instructions are at the above URL.
33
+ *  Teensyduino -  https://www.pjrc.com/teensy/teensyduino.html
34
+ *  Installation - https://www.pjrc.com/teensy/td_download.html
35 35
  *
36 36
  *    Select Teensy++ 2.0 in Arduino IDE from the 'Tools -> Boards' menu
37 37
  *
@@ -66,8 +66,33 @@
66 66
   #error "Oops!  Make sure you have 'Teensy++ 2.0' or 'Printrboard' selected from the 'Tools -> Boards' menu."
67 67
 #endif
68 68
 
69
+#ifndef USBCON
70
+  #error "USBCON should be defined by the platform for this board."
71
+#endif
72
+
69 73
 #define BOARD_NAME         "Printrboard Rev F"
70
-#define LARGE_FLASH        true
74
+// Disable JTAG pins so EXP1 pins work correctly
75
+// (Its pins are used for the Extrudrboard and filament sensor, for example).
76
+#define DISABLE_JTAG
77
+
78
+/**
79
+ * Note that REV F6 of the Printrboard stole the A HOTEND pin and
80
+ * reassigned it to a second fan for the extruder heater.  It's
81
+ * recommended that you swap the A and B outputs on the Extrudrboard
82
+ * so EXTRUDERS=2 will still work on F6, using B for E1/HEATER_1/TEMP_1.
83
+ * See https://printrbot.zendesk.com/hc/en-us/articles/115003072346
84
+ *
85
+ * If you have REV F6 you probably also want to set E0_AUTO_FAN_PIN
86
+ * to PRINTRBOARD_F6_HEATER_FAN_PIN
87
+ *
88
+ * Define NO_EXTRUDRBOARD if you don't have an EXTRUDRBOARD and wish to
89
+ * reassign different functions to EXP1.
90
+ *
91
+ * Define NO_EXTRUDRBOARD_OUTPUT_SWAP if you have a REV F5 or lower and
92
+ * want to use EXTRUDRBOARD A for E1 and EXTRUDRBOARD B for E2.
93
+ */
94
+//#define NO_EXTRUDRBOARD
95
+//#define NO_EXTRUDRBOARD_OUTPUT_SWAP
71 96
 
72 97
 //
73 98
 // Limit Switches
@@ -95,6 +120,26 @@
95 120
 #define E0_DIR_PIN         35   // A7
96 121
 #define E0_ENABLE_PIN      13   // C3
97 122
 
123
+#if DISABLED(NO_EXTRUDRBOARD)
124
+#if DISABLED(NO_EXTRUDRBOARD_OUTPUT_SWAP)
125
+  #define E1_STEP_PIN      25   // B5
126
+  #define E1_DIR_PIN       37   // E5
127
+  #define E1_ENABLE_PIN    42   // F4
128
+
129
+  #define E2_STEP_PIN       2   // D2
130
+  #define E2_DIR_PIN        3   // D3
131
+  #define E2_ENABLE_PIN    43   // F5
132
+#else
133
+  #define E1_STEP_PIN       2   // D2
134
+  #define E1_DIR_PIN        3   // D3
135
+  #define E1_ENABLE_PIN    43   // F5
136
+
137
+  #define E2_STEP_PIN      25   // B5
138
+  #define E2_DIR_PIN       37   // E5
139
+  #define E2_ENABLE_PIN    42   // F4
140
+#endif
141
+#endif // NO_EXTRUDRBOARD
142
+
98 143
 // Enable control of stepper motor currents with the I2C based MCP4728 DAC used on Printrboard REVF
99 144
 #define DAC_STEPPER_CURRENT
100 145
 
@@ -119,14 +164,32 @@
119 164
 #define TEMP_0_PIN          1   // Analog Input (Extruder)
120 165
 #define TEMP_BED_PIN        0   // Analog Input (Bed)
121 166
 
167
+#if DISABLED(NO_EXTRUDRBOARD)
168
+#if DISABLED(NO_EXTRUDRBOARD_OUTPUT_SWAP)
169
+  #define TEMP_1_PIN        2   // Analog Input (Extrudrboard A THERM)
170
+  #define TEMP_2_PIN        3   // Analog Input (Extrudrboard B THERM)
171
+#else
172
+  #define TEMP_1_PIN        3   // Analog Input (Extrudrboard B THERM)
173
+  #define TEMP_2_PIN        2   // Analog Input (Extrudrboard A THERM)
174
+#endif
175
+#endif
176
+
122 177
 //
123 178
 // Heaters / Fans
124 179
 //
125 180
 #define HEATER_0_PIN       15   // C5 PWM3B - Extruder
126
-#define HEATER_1_PIN       44   // F6
127
-#define HEATER_2_PIN       45   // F7
128 181
 #define HEATER_BED_PIN     14   // C4 PWM3C
129 182
 
183
+#if DISABLED(NO_EXTRUDRBOARD)
184
+#if DISABLED(NO_EXTRUDRBOARD_OUTPUT_SWAP)
185
+  #define HEATER_1_PIN     44   // F6 - Extrudrboard A HOTEND
186
+  #define HEATER_2_PIN     45   // F7 - Extrudrboard B HOTEND
187
+#else
188
+  #define HEATER_1_PIN     45   // F7 - Extrudrboard B HOTEND
189
+  #define HEATER_2_PIN     44   // F6 - Extrudrboard A HOTEND
190
+#endif
191
+#endif
192
+
130 193
 #define FAN_PIN            16   // C6 PWM3A
131 194
 
132 195
 //
@@ -201,6 +264,14 @@
201 264
 #ifndef SDSS
202 265
   #define SDSS             20  //        10               B0
203 266
 #endif
267
+
268
+/**
269
+ * This is EXP1-2, which is also the TEMP_A_PIN for the Extrudrboard.
270
+ * If using w/ Extrudrboard, cut off pin 2 on the Extrudrboard male
271
+ * connector to ensure this is disconnected from the A THERM pullups.
272
+ * You probably want to set EXTRUDERS=2 and swap the Extrudrboard outputs,
273
+ * which will let you use Channel B on the Extrudrboard as E1.
274
+ */
204 275
 #ifndef FILWIDTH_PIN
205
-  #define FILWIDTH_PIN      2  // Analog Input 
276
+  #define FILWIDTH_PIN      2   // Analog Input
206 277
 #endif

+ 0
- 2
Marlin/pins_RAMBO.h View File

@@ -46,8 +46,6 @@
46 46
 
47 47
 #define BOARD_NAME "Rambo"
48 48
 
49
-#define LARGE_FLASH true
50
-
51 49
 //
52 50
 // Servos
53 51
 //

+ 0
- 2
Marlin/pins_RAMPS.h View File

@@ -52,8 +52,6 @@
52 52
   #define BOARD_NAME "RAMPS 1.4"
53 53
 #endif
54 54
 
55
-#define LARGE_FLASH true
56
-
57 55
 //
58 56
 // Servos
59 57
 //

+ 0
- 4
Marlin/pins_SANGUINOLOLU_11.h View File

@@ -59,10 +59,6 @@
59 59
   #define BOARD_NAME "Sanguinololu <1.2"
60 60
 #endif
61 61
 
62
-#ifdef __AVR_ATmega1284P__
63
-  #define LARGE_FLASH true
64
-#endif
65
-
66 62
 //
67 63
 // Limit Switches
68 64
 //

+ 0
- 2
Marlin/pins_SAV_MKI.h View File

@@ -69,8 +69,6 @@
69 69
 #define DEFAULT_SOURCE_CODE_URL "https://github.com/fmalpartida/Marlin/tree/SAV-MkI-config"
70 70
 #define BOARD_NAME              "SAV MkI"
71 71
 
72
-#define LARGE_FLASH        true
73
-
74 72
 //
75 73
 // Servos
76 74
 //

+ 0
- 2
Marlin/pins_SCOOVO_X9H.h View File

@@ -30,8 +30,6 @@
30 30
 
31 31
 #define BOARD_NAME "Scoovo X9H"
32 32
 
33
-#define LARGE_FLASH true
34
-
35 33
 //
36 34
 // Servos
37 35
 //

+ 0
- 2
Marlin/pins_SILVER_GATE.h View File

@@ -28,8 +28,6 @@
28 28
   #define BOARD_NAME "Silver Gate"
29 29
 #endif
30 30
 
31
-#define LARGE_FLASH true
32
-
33 31
 #define X_STEP_PIN         43
34 32
 #define X_DIR_PIN          44
35 33
 #define X_ENABLE_PIN       42

+ 0
- 2
Marlin/pins_TEENSY2.h View File

@@ -112,8 +112,6 @@
112 112
 
113 113
 #define BOARD_NAME         "Teensy++2.0"
114 114
 
115
-#define LARGE_FLASH        true
116
-
117 115
 //
118 116
 // Limit Switches
119 117
 //

+ 0
- 2
Marlin/pins_TEENSYLU.h View File

@@ -79,8 +79,6 @@
79 79
 
80 80
 #define BOARD_NAME         "Teensylu"
81 81
 
82
-#define LARGE_FLASH        true
83
-
84 82
 
85 83
 //
86 84
 // Limit Switch definitions that match the SCHEMATIC

+ 0
- 2
Marlin/pins_ULTIMAKER.h View File

@@ -40,8 +40,6 @@
40 40
 #define DEFAULT_SOURCE_CODE_URL "https://github.com/Ultimaker/Marlin"
41 41
 #define BOARD_NAME              "Ultimaker"
42 42
 
43
-#define LARGE_FLASH true
44
-
45 43
 //
46 44
 // Servos
47 45
 //

+ 0
- 2
Marlin/pins_ULTIMAKER_OLD.h View File

@@ -68,8 +68,6 @@
68 68
 #define DEFAULT_SOURCE_CODE_URL "https://github.com/Ultimaker/Marlin"
69 69
 #define BOARD_NAME              "Ultimaker <1.5.4"
70 70
 
71
-#define LARGE_FLASH true
72
-
73 71
 //
74 72
 // Limit Switches
75 73
 //

Loading…
Cancel
Save