|
@@ -31,10 +31,12 @@
|
31
|
31
|
* and with the mainstream Marlin software.
|
32
|
32
|
*
|
33
|
33
|
* Teensyduino - http://www.pjrc.com/teensy/teensyduino.html
|
|
34
|
+ * Installation instructions are at the above URL.
|
|
35
|
+ *
|
34
|
36
|
* Select Teensy++ 2.0 in Arduino IDE from the 'Tools -> Boards' menu
|
35
|
|
- *
|
36
|
|
- * Installation instructions are at the above URL. Don't bother loading the
|
37
|
|
- * libraries - they are not used with the Marlin software.
|
|
37
|
+ *
|
|
38
|
+ * Note: With Teensyduino extension, the Arduino IDE will report 130048 bytes of program storage space available,
|
|
39
|
+ * but there is actually only 122880 bytes due to the larger DFU bootloader shipped by default on all Printrboard RevF.
|
38
|
40
|
*
|
39
|
41
|
* Printrboard - https://github.com/scwimbush/Printrboard-HID-Arduino-IDE-Support
|
40
|
42
|
*
|
|
@@ -48,12 +50,11 @@
|
48
|
50
|
* 3. Restart Arduino.
|
49
|
51
|
* 4. Select "Printrboard" from the 'Tools -> Boards' menu.
|
50
|
52
|
*
|
51
|
|
- * Teensyduino is the most popular option. Printrboard is used if your board doesn't have
|
52
|
|
- * the Teensyduino bootloader on it.
|
|
53
|
+ * Teensyduino is the most popular and easiest option.
|
53
|
54
|
*/
|
54
|
55
|
|
55
|
56
|
/**
|
56
|
|
- * To burn the bootloader that comes with Printrboard:
|
|
57
|
+ * To burn the bootloader that comes with Printrboard HID extension:
|
57
|
58
|
*
|
58
|
59
|
* 1. Connect your programmer to the board.
|
59
|
60
|
* 2. In the Arduino IDE select "Printrboard" and then select the programmer.
|
|
@@ -94,9 +95,15 @@
|
94
|
95
|
#define E0_DIR_PIN 35 // A7
|
95
|
96
|
#define E0_ENABLE_PIN 13 // C3
|
96
|
97
|
|
97
|
|
-// uncomment to enable an I2C based DAC like on the Printrboard REVF
|
|
98
|
+// Enable control of stepper motor currents with the I2C based MCP4728 DAC used on Printrboard REVF
|
98
|
99
|
#define DAC_STEPPER_CURRENT
|
99
|
|
-// Number of channels available for DAC, For Printrboar REVF there are 4
|
|
100
|
+
|
|
101
|
+// Set default drive strength percents if not already defined - X, Y, Z, E axis
|
|
102
|
+#ifndef DAC_MOTOR_CURRENT_DEFAULT
|
|
103
|
+ #define DAC_MOTOR_CURRENT_DEFAULT { 70, 70, 50, 70 }
|
|
104
|
+#endif
|
|
105
|
+
|
|
106
|
+// Number of channels available for DAC
|
100
|
107
|
#define DAC_STEPPER_ORDER { 3, 2, 1, 0 }
|
101
|
108
|
|
102
|
109
|
#define DAC_STEPPER_SENSE 0.11
|
|
@@ -123,14 +130,10 @@
|
123
|
130
|
#define FAN_PIN 16 // C6 PWM3A
|
124
|
131
|
|
125
|
132
|
//
|
126
|
|
-// Misc. Functions
|
127
|
|
-//
|
128
|
|
-#define SDSS 20 // B0 SS
|
129
|
|
-#define FILWIDTH_PIN 2 // Analog Input
|
130
|
|
-
|
131
|
|
-//
|
132
|
133
|
// LCD / Controller
|
133
|
134
|
//
|
|
135
|
+//#define USE_INTERNAL_SD
|
|
136
|
+
|
134
|
137
|
#if ENABLED(ULTRA_LCD)
|
135
|
138
|
#define BEEPER_PIN -1
|
136
|
139
|
|
|
@@ -164,3 +167,53 @@
|
164
|
167
|
#define STAT_LED_RED_PIN 12 // C2 JP11-14
|
165
|
168
|
#define STAT_LED_BLUE_PIN 10 // C0 JP11-12
|
166
|
169
|
#endif
|
|
170
|
+
|
|
171
|
+#if ENABLED(MINIPANEL)
|
|
172
|
+ #if ENABLED(USE_INTERNAL_SD)
|
|
173
|
+ // PIN FASTIO PIN# ATUSB90 PIN# Teensy2.0++ PIN#
|
|
174
|
+ #define SDSS 20 // 10 B0
|
|
175
|
+ #define SD_DETECT_PIN -1 // no auto-detect SD insertion on built-in Printrboard SD reader
|
|
176
|
+ #else
|
|
177
|
+ // PIN FASTIO PIN# ATUSB90 PIN# Teensy2.0++ PIN# Printrboard RevF Conn. MKSLCD12864 PIN#
|
|
178
|
+ #define SDSS 11 // 36 C1 EXP2-13 EXP2-07
|
|
179
|
+ #define SD_DETECT_PIN 9 // 34 E1 EXP2-11 EXP2-04
|
|
180
|
+ #endif
|
|
181
|
+
|
|
182
|
+ // PIN FASTIO PIN# ATUSB90 PIN# Teensy2.0++ PIN# Printrboard RevF Conn. MKSLCD12864 PIN#
|
|
183
|
+ #define DOGLCD_A0 4 // 29 D4 EXP2-05 EXP1-04
|
|
184
|
+ #define DOGLCD_CS 5 // 30 D5 EXP2-06 EXP1-05
|
|
185
|
+ #define BTN_ENC 6 // 31 D6 EXP2-07 EXP1-09
|
|
186
|
+ #define BEEPER_PIN 7 // 32 D7 EXP2-08 EXP1-10
|
|
187
|
+ #define KILL_PIN 8 // 33 E0 EXP2-10 EXP2-03
|
|
188
|
+ #define BTN_EN1 10 // 35 C0 EXP2-12 EXP2-06
|
|
189
|
+ #define BTN_EN2 12 // 37 C2 EXP2-14 EXP2-08
|
|
190
|
+ //#define LCD_BACKLIGHT_PIN 43 // 56 F5 EXP1-12 Not Implemented
|
|
191
|
+ //#define SCK 21 // 11 B1 ICSP-04 EXP2-09
|
|
192
|
+ //#define MOSI 22 // 12 B2 ICSP-03 EXP2-05
|
|
193
|
+ //#define MISO 23 // 13 B3 ICSP-06 EXP2-05
|
|
194
|
+
|
|
195
|
+ // encoder connections present
|
|
196
|
+ #define BLEN_A 0
|
|
197
|
+ #define BLEN_B 1
|
|
198
|
+ #define BLEN_C 2
|
|
199
|
+
|
|
200
|
+ // encoder rotation values
|
|
201
|
+ #define encrot0 0
|
|
202
|
+ #define encrot1 2
|
|
203
|
+ #define encrot2 3
|
|
204
|
+ #define encrot3 1
|
|
205
|
+
|
|
206
|
+ // increase delays to max
|
|
207
|
+ #define ST7920_DELAY_1 DELAY_5_NOP
|
|
208
|
+ #define ST7920_DELAY_2 DELAY_5_NOP
|
|
209
|
+ #define ST7920_DELAY_3 DELAY_5_NOP
|
|
210
|
+#endif
|
|
211
|
+
|
|
212
|
+//
|
|
213
|
+// Misc. Functions
|
|
214
|
+//
|
|
215
|
+#ifndef SDSS
|
|
216
|
+ #define SDSS 20 // B0 SS
|
|
217
|
+#endif
|
|
218
|
+
|
|
219
|
+#define FILWIDTH_PIN 2 // Analog Input
|