Repetier-Firmware  0.80
Repetier/pins.h
Go to the documentation of this file.
00001 #ifndef PINS_H
00002 #define PINS_H
00003 
00004 /*
00005 The board assignment defines the capabilities of the motherboard and the used pins.
00006 Each board definition follows the following scheme:
00007 
00008 CPU_ARCH
00009   ARCH_AVR for AVR based boards
00010   ARCH_ARM for all arm based boards
00011 
00012 STEPPER_CURRENT_CONTROL
00013   CURRENT_CONTROL_MANUAL  1  // mechanical poti, default if not defined
00014   CURRENT_CONTROL_DIGIPOT 2  // Use a digipot like RAMBO does
00015   CURRENT_CONTROL_LTC2600 3  // Use LTC2600 like Foltyn 3D Master
00016 
00017 */
00018 
00019 #define ARCH_AVR 1
00020 #define ARCH_ARM 2
00021 
00022 #define CURRENT_CONTROL_MANUAL  1  // mechanical poti, default if not defined
00023 #define CURRENT_CONTROL_DIGIPOT 2  // Use a digipot like RAMBO does
00024 #define CURRENT_CONTROL_LTC2600 3  // Use LTC2600 like Foltyn 3D Master
00025 
00026 /****************************************************************************************
00027 * Arduino pin assignment
00028 *
00029 *                  ATMega168
00030 *                   +-\/-+
00031 *             PC6  1|    |28  PC5 (AI 5 / D19)
00032 *       (D 0) PD0  2|    |27  PC4 (AI 4 / D18)
00033 *       (D 1) PD1  3|    |26  PC3 (AI 3 / D17)
00034 *       (D 2) PD2  4|    |25  PC2 (AI 2 / D16)
00035 *  PWM+ (D 3) PD3  5|    |24  PC1 (AI 1 / D15)
00036 *       (D 4) PD4  6|    |23  PC0 (AI 0 / D14)
00037 *             VCC  7|    |22  GND
00038 *             GND  8|    |21  AREF
00039 *             PB6  9|    |20  AVCC
00040 *             PB7 10|    |19  PB5 (D 13)
00041 *  PWM+ (D 5) PD5 11|    |18  PB4 (D 12)
00042 *  PWM+ (D 6) PD6 12|    |17  PB3 (D 11) PWM
00043 *       (D 7) PD7 13|    |16  PB2 (D 10) PWM
00044 *       (D 8) PB0 14|    |15  PB1 (D 9)  PWM
00045 *                   +----+
00046 ****************************************************************************************/
00047 #if MOTHERBOARD == 0
00048 #define KNOWN_BOARD 1
00049 
00050 #ifndef __AVR_ATmega168__
00051 #error Oops!  Make sure you have 'Arduino Diecimila' selected from the boards menu.
00052 #endif
00053 
00054 #define X_STEP_PIN          2
00055 #define X_DIR_PIN           3
00056 #define X_ENABLE_PIN       -1
00057 #define X_MIN_PIN           4
00058 #define X_MAX_PIN           9
00059 
00060 #define Y_STEP_PIN         10
00061 #define Y_DIR_PIN           7
00062 #define Y_ENABLE_PIN       -1
00063 #define Y_MIN_PIN           8
00064 #define Y_MAX_PIN          13
00065 
00066 #define Z_STEP_PIN         19
00067 #define Z_DIR_PIN          18
00068 #define Z_ENABLE_PIN        5
00069 #define Z_MIN_PIN          17
00070 #define Z_MAX_PIN          16
00071 
00072 #define E0_STEP_PIN         11
00073 #define E0_DIR_PIN          12
00074 #define E0_ENABLE_PIN       -1
00075 
00076 #define SDPOWER          -1
00077 #define SDSS          -1
00078 #define LED_PIN            -1
00079 #define FAN_PIN            -1
00080 #define PS_ON_PIN          15
00081 #define KILL_PIN           -1
00082 
00083 #define HEATER_0_PIN        6
00084 #define TEMP_0_PIN          0    // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
00085 
00086 
00087 #endif
00088 
00089 
00090 
00091 /****************************************************************************************
00092 * Sanguino/RepRap Motherboard with direct-drive extruders
00093 *
00094 *                        ATMega644P
00095 *
00096 *                        +---\/---+
00097 *            (D 0) PB0  1|        |40  PA0 (AI 0 / D31)
00098 *            (D 1) PB1  2|        |39  PA1 (AI 1 / D30)
00099 *       INT2 (D 2) PB2  3|        |38  PA2 (AI 2 / D29)
00100 *        PWM (D 3) PB3  4|        |37  PA3 (AI 3 / D28)
00101 *        PWM (D 4) PB4  5|        |36  PA4 (AI 4 / D27)
00102 *       MOSI (D 5) PB5  6|        |35  PA5 (AI 5 / D26)
00103 *       MISO (D 6) PB6  7|        |34  PA6 (AI 6 / D25)
00104 *        SCK (D 7) PB7  8|        |33  PA7 (AI 7 / D24)
00105 *                  RST  9|        |32  AREF
00106 *                  VCC 10|        |31  GND 
00107 *                  GND 11|        |30  AVCC
00108 *                XTAL2 12|        |29  PC7 (D 23)
00109 *                XTAL1 13|        |28  PC6 (D 22)
00110 *       RX0 (D 8)  PD0 14|        |27  PC5 (D 21) TDI
00111 *       TX0 (D 9)  PD1 15|        |26  PC4 (D 20) TDO
00112 *  INT0 RX1 (D 10) PD2 16|        |25  PC3 (D 19) TMS
00113 *  INT1 TX1 (D 11) PD3 17|        |24  PC2 (D 18) TCK
00114 *       PWM (D 12) PD4 18|        |23  PC1 (D 17) SDA
00115 *       PWM (D 13) PD5 19|        |22  PC0 (D 16) SCL
00116 *       PWM (D 14) PD6 20|        |21  PD7 (D 15) PWM
00117 *                        +--------+
00118 *
00119 ****************************************************************************************/
00120 #if MOTHERBOARD == 1
00121 #define KNOWN_BOARD 1
00122 
00123 #ifndef __AVR_ATmega644P__
00124 #error Oops!  Make sure you have 'Sanguino' selected from the 'Tools -> Boards' menu.
00125 #endif
00126 
00127 #define X_STEP_PIN         15
00128 #define X_DIR_PIN          18
00129 #define X_ENABLE_PIN       19
00130 #define X_MIN_PIN          20
00131 #define X_MAX_PIN          21
00132 
00133 #define Y_STEP_PIN         23
00134 #define Y_DIR_PIN          22
00135 #define Y_ENABLE_PIN       19
00136 #define Y_MIN_PIN          25
00137 #define Y_MAX_PIN          26
00138 
00139 #define Z_STEP_PIN         29
00140 #define Z_DIR_PIN          30
00141 #define Z_ENABLE_PIN       31
00142 #define Z_MIN_PIN           2
00143 #define Z_MAX_PIN           1
00144 
00145 #define E0_STEP_PIN         12
00146 #define E0_DIR_PIN          16
00147 #define E0_ENABLE_PIN        3
00148 
00149 #define SDPOWER          -1
00150 #define SDSS          -1
00151 #define LED_PIN             0
00152 #define FAN_PIN            -1
00153 #define PS_ON_PIN          -1
00154 #define KILL_PIN           -1
00155 
00156 #define HEATER_0_PIN       14
00157 #define TEMP_0_PIN          4 //D27   // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
00158 
00159 /*  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)  */
00160 
00161 #define E0_PINS E0_STEP_PIN,E0_DIR_PIN,E0_ENABLE_PIN,
00162 #define E1_PINS
00163 
00164 
00165 #endif
00166 
00167 
00168 /****************************************************************************************
00169 * RepRap Motherboard  ****---NOOOOOO RS485/EXTRUDER CONTROLLER!!!!!!!!!!!!!!!!!---*******
00170 *
00171 ****************************************************************************************/
00172 #if MOTHERBOARD == 2
00173 #define KNOWN_BOARD 1
00174 
00175 #ifndef __AVR_ATmega644P__
00176 #error Oops!  Make sure you have 'Sanguino' selected from the 'Tools -> Boards' menu.
00177 #endif
00178 
00179 #define X_STEP_PIN      15
00180 #define X_DIR_PIN       18
00181 #define X_ENABLE_PIN    19
00182 #define X_MIN_PIN       20
00183 #define X_MAX_PIN       21
00184 
00185 #define Y_STEP_PIN      23
00186 #define Y_DIR_PIN       22
00187 #define Y_ENABLE_PIN    24
00188 #define Y_MIN_PIN       25
00189 #define Y_MAX_PIN       26
00190 
00191 #define Z_STEP_PINN     27
00192 #define Z_DIR_PINN      28
00193 #define Z_ENABLE_PIN    29
00194 #define Z_MIN_PIN       30
00195 #define Z_MAX_PIN       31
00196 
00197 #define E0_STEP_PIN      17
00198 #define E0_DIR_PIN       16
00199 #define E0_ENABLE_PIN    -1
00200 
00201 #define SDPOWER          -1
00202 #define SDSS          4
00203 #define LED_PIN          0
00204 
00205 #define SD_CARD_WRITE    2
00206 #define SD_CARD_DETECT   3
00207 #define SD_CARD_SELECT   4
00208 
00209 //our RS485 pins
00210 #define TX_ENABLE_PIN   12
00211 #define RX_ENABLE_PIN   13
00212 
00213 //pin for controlling the PSU.
00214 #define PS_ON_PIN       14
00215 
00216 #define FAN_PIN         -1
00217 #define KILL_PIN        -1
00218 
00219 #define HEATER_0_PIN    -1
00220 #define TEMP_0_PIN      -1    // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
00221 
00222 
00223 #define E0_PINS E0_STEP_PIN,E0_DIR_PIN,E0_ENABLE_PIN,
00224 #define E1_PINS
00225 
00226 
00227 #endif
00228 
00229 /****************************************************************************************
00230 * Arduino Mega pin assignment
00231 *
00232 ****************************************************************************************/
00233 #if MOTHERBOARD == 33
00234   #define MOTHERBOARD 3
00235   #define RAMPS_V_1_3
00236 #endif
00237 #if MOTHERBOARD == 3
00238   #define KNOWN_BOARD 1
00239 
00241   #ifndef __AVR_ATmega1280__
00242     #ifndef __AVR_ATmega2560__
00243      #error Oops!  Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
00244     #endif
00245   #endif
00246 
00247 // uncomment one of the following lines for RAMPS v1.3 or v1.0, comment both for v1.2 or 1.1
00248 // #define RAMPS_V_1_3
00249 // #define RAMPS_V_1_0
00250 
00251 #ifdef RAMPS_V_1_3
00252 
00253 #define X_STEP_PIN         54
00254 #define X_DIR_PIN          55
00255 #define X_ENABLE_PIN       38
00256 #define X_MIN_PIN          3
00257 #define X_MAX_PIN          2
00258 
00259 #define Y_STEP_PIN         60
00260 #define Y_DIR_PIN          61
00261 #define Y_ENABLE_PIN       56
00262 #define Y_MIN_PIN          14
00263 #define Y_MAX_PIN          15
00264 
00265 #define Z_STEP_PIN         46
00266 #define Z_DIR_PIN          48
00267 #define Z_ENABLE_PIN       62
00268 #define Z_MIN_PIN          18
00269 #define Z_MAX_PIN          19
00270 
00271 #define E0_STEP_PIN         26
00272 #define E0_DIR_PIN          28
00273 #define E0_ENABLE_PIN       24
00274 
00275 #define E1_STEP_PIN         36
00276 #define E1_DIR_PIN          34
00277 #define E1_ENABLE_PIN       30
00278 
00279 #define SDPOWER            -1
00280 #define SDSS               53
00281 #define SDCARDDETECT        49
00282 
00283 #define LED_PIN            13
00284 #define FAN_PIN            9
00285 #define PS_ON_PIN          12
00286 #define KILL_PIN           -1
00287 
00288 #define HEATER_0_PIN       10
00289 #define HEATER_1_PIN       8
00290 #define TEMP_0_PIN         13   // ANALOG NUMBERING
00291 #define TEMP_1_PIN         14   // ANALOG NUMBERING
00292 #define TEMP_2_PIN         15
00293 #define E0_PINS E0_STEP_PIN,E0_DIR_PIN,E0_ENABLE_PIN,
00294 #define E1_PINS E1_STEP_PIN,E1_DIR_PIN,E1_ENABLE_PIN,
00295 
00296 
00297 #else // RAMPS_V_1_1 or RAMPS_V_1_2 as default
00298 
00299 #define X_STEP_PIN         26
00300 #define X_DIR_PIN          28
00301 #define X_ENABLE_PIN       24
00302 #define X_MIN_PIN           3
00303 #define X_MAX_PIN          -1    //2
00304 
00305 #define Y_STEP_PIN         38
00306 #define Y_DIR_PIN          40
00307 #define Y_ENABLE_PIN       36
00308 #define Y_MIN_PIN          16
00309 #define Y_MAX_PIN          -1    //17
00310 
00311 #define Z_STEP_PIN         44
00312 #define Z_DIR_PIN          46
00313 #define Z_ENABLE_PIN       42
00314 #define Z_MIN_PIN          18
00315 #define Z_MAX_PIN          -1    //19
00316 
00317 #define E0_STEP_PIN         32
00318 #define E0_DIR_PIN          34
00319 #define E0_ENABLE_PIN       30
00320 
00321 #define SDPOWER            48
00322 #define SDSS               53
00323 #define LED_PIN            13
00324 #define PS_ON_PIN          -1
00325 #define KILL_PIN           -1
00326 //#define SCL                21
00327 //#define SDA                20
00328 
00329 #define E0_PINS E0_STEP_PIN,E0_DIR_PIN,E0_ENABLE_PIN,
00330 #define E1_PINS
00331 
00332 
00333 #ifdef RAMPS_V_1_0 // RAMPS_V_1_0
00334   #define HEATER_0_PIN     12    // RAMPS 1.0
00335   #define HEATER_1_PIN     -1    // RAMPS 1.0
00336   #define FAN_PIN          11    // RAMPS 1.0
00337 
00338 #else // RAMPS_V_1_1 or RAMPS_V_1_2
00339   #define HEATER_0_PIN     10    // RAMPS 1.1
00340   #define HEATER_1_PIN      8    // RAMPS 1.1
00341   #define FAN_PIN           9    // RAMPS 1.1
00342 #endif
00343 
00344 #define TEMP_0_PIN          2    // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
00345 #define TEMP_1_PIN          1    // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
00346 #endif
00347 
00348 // SPI for Max6675 Thermocouple 
00349 
00350 // these pins are defined in the SD library if building with SD support  
00351 #define SCK_PIN          52
00352 #define MISO_PIN         50
00353 #define MOSI_PIN         51
00354 #define MAX6675_SS       53
00355 
00356 
00357 #endif
00358 
00359 /****************************************************************************************
00360 * RUMBA pin assignment
00361 *
00362 ****************************************************************************************/
00363 #if MOTHERBOARD == 80
00364 #define KNOWN_BOARD 1
00365 
00366 #ifndef __AVR_ATmega2560__
00367  #error Oops!  Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
00368 #endif
00369 
00370 #define X_STEP_PIN         17
00371 #define X_DIR_PIN          16
00372 #define X_ENABLE_PIN       48
00373 #define X_MIN_PIN          37
00374 #define X_MAX_PIN          36   //Max endstops default to disabled "-1"
00375 
00376 #define Y_STEP_PIN         54
00377 #define Y_DIR_PIN          47 
00378 #define Y_ENABLE_PIN       55
00379 #define Y_MIN_PIN          35
00380 #define Y_MAX_PIN          34 
00381 
00382 #define Z_STEP_PIN         57 
00383 #define Z_DIR_PIN          56
00384 #define Z_ENABLE_PIN       62 
00385 #define Z_MIN_PIN          33
00386 #define Z_MAX_PIN          32
00387 
00388 #define E0_STEP_PIN         23
00389 #define E0_DIR_PIN          22
00390 #define E0_ENABLE_PIN       24
00391 
00392 #define E1_STEP_PIN        26
00393 #define E1_DIR_PIN         25
00394 #define E1_ENABLE_PIN      27
00395 
00396 #define E2_STEP_PIN        29
00397 #define E2_DIR_PIN         28
00398 #define E2_ENABLE_PIN      39
00399 
00400 #define LED_PIN            13
00401 
00402 #define FAN_PIN            7 
00403 //additional FAN1 PIN (e.g. useful for electronics fan or light on/off) on PIN 8
00404 
00405 #define PS_ON_PIN          45
00406 #define KILL_PIN           46
00407 
00408 #define HEATER_0_PIN       2    // EXTRUDER 1
00409 #define HEATER_1_PIN       3    // EXTRUDER 2
00410 #define HEATER_2_PIN       6    // EXTRUDER 3
00411 //optional FAN1 can be used as 4th heater output: #define HEATER_3_PIN       8    // EXTRUDER 4
00412 #define HEATER_BED_PIN     9    // BED
00413 
00414 #define TEMP_0_PIN         15   // ANALOG NUMBERING
00415 #define TEMP_1_PIN         14   // ANALOG NUMBERING
00416 #define TEMP_2_PIN         13   // ANALOG NUMBERING
00417 //optional for extruder 4 or chamber: #define TEMP_2_PIN         12   // ANALOG NUMBERING
00418 #define TEMP_BED_PIN       11   // ANALOG NUMBERING
00419 
00420 #define SDPOWER            -1
00421 #define SDSS               53
00422 #define SCK_PIN          52
00423 #define MISO_PIN         50
00424 #define MOSI_PIN         51
00425 
00426 #define E0_PINS E0_STEP_PIN,E0_DIR_PIN,E0_ENABLE_PIN,
00427 #define E1_PINS E1_STEP_PIN,E1_DIR_PIN,E1_ENABLE_PIN,
00428 #define E2_PINS E2_STEP_PIN,E2_DIR_PIN,E2_ENABLE_PIN,
00429 
00430 #endif //MOTHERBOARD==80
00431 
00432 /****************************************************************************************
00433 * Duemilanove w/ ATMega328P pin assignment
00434 *
00435 ****************************************************************************************/
00436 #if MOTHERBOARD == 4
00437 #define KNOWN_BOARD 1
00438 
00439 #ifndef __AVR_ATmega328P__
00440 #error Oops!  Make sure you have 'Arduino Duemilanove w/ ATMega328' selected from the 'Tools -> Boards' menu.
00441 #endif
00442 
00443 #define X_STEP_PIN         19
00444 #define X_DIR_PIN          18
00445 #define X_ENABLE_PIN       -1
00446 #define X_MIN_PIN          17
00447 #define X_MAX_PIN          -1
00448 
00449 #define Y_STEP_PIN         10
00450 #define Y_DIR_PIN           7
00451 #define Y_ENABLE_PIN       -1
00452 #define Y_MIN_PIN           8
00453 #define Y_MAX_PIN          -1
00454 
00455 #define Z_STEP_PIN         13
00456 #define Z_DIR_PIN           3
00457 #define Z_ENABLE_PIN        2
00458 #define Z_MIN_PIN           4
00459 #define Z_MAX_PIN          -1
00460 
00461 #define E0_STEP_PIN         11
00462 #define E0_DIR_PIN          12
00463 #define E0_ENABLE_PIN       -1
00464 
00465 #define SDPOWER          -1
00466 #define SDSS          -1
00467 #define LED_PIN            -1
00468 #define FAN_PIN             5
00469 #define PS_ON_PIN          -1
00470 #define KILL_PIN           -1
00471 
00472 #define HEATER_0_PIN        6
00473 #define TEMP_0_PIN          0    // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
00474 #define E0_PINS E0_STEP_PIN,E0_DIR_PIN,E0_ENABLE_PIN,
00475 #define E1_PINS
00476 
00477 
00478 #endif
00479 
00480 /****************************************************************************************
00481 * Gen6 pin assignment (5) and Gen6 deluxe assignment (51)
00482 *
00483 ****************************************************************************************/
00484 #if MOTHERBOARD == 5 || MOTHERBOARD == 51
00485     #define KNOWN_BOARD 1
00486 
00487 #if !defined(__AVR_ATmega644P__) && !defined(__AVR_ATmega1284P__)
00488     #error Oops!  Make sure you have 'Sanguino' selected from the 'Tools -> Boards' menu.
00489 #endif
00490 
00491 //x axis pins
00492     #define X_STEP_PIN      15
00493     #define X_DIR_PIN       18
00494     #define X_ENABLE_PIN    19
00495     #define X_MIN_PIN       20
00496     #define X_MAX_PIN       -1
00497     
00498     //y axis pins
00499     #define Y_STEP_PIN      23
00500     #define Y_DIR_PIN       22
00501     #define Y_ENABLE_PIN    24
00502     #define Y_MIN_PIN       25
00503     #define Y_MAX_PIN       -1
00504     
00505     //z axis pins
00506     #define Z_STEP_PIN      27
00507     #define Z_DIR_PIN       28
00508     #define Z_ENABLE_PIN    29
00509     #define Z_MIN_PIN       30
00510     #define Z_MAX_PIN       -1
00511     
00512     //extruder pins
00513     #define E0_STEP_PIN      4     //Edited @ EJE Electronics 20100715
00514     #define E0_DIR_PIN       2     //Edited @ EJE Electronics 20100715
00515     #define E0_ENABLE_PIN    3     //Added @ EJE Electronics 20100715
00516     #define TEMP_0_PIN      5     //changed @ rkoeppl 20110410
00517     #define HEATER_0_PIN    14    //changed @ rkoeppl 20110410
00518 #if MOTHERBOARD == 5
00519     #define HEATER_1_PIN  -1    //changed @ rkoeppl 20110410
00520     #define TEMP_1_PIN    -1    //changed @ rkoeppl 20110410
00521 #else
00522     #define HEATER_1_PIN   1    //changed @ rkoeppl 20110410
00523     #define TEMP_1_PIN     0    //changed @ rkoeppl 20110410
00524 #endif
00525     
00526     
00527     #define SDPOWER          -1
00528     #define SDSS          16 // SCL pin of I2C header
00529     #define LED_PIN         -1    //changed @ rkoeppl 20110410
00530     #define TEMP_1_PIN      -1    //changed @ rkoeppl 20110410
00531     #define FAN_PIN         -1    //changed @ rkoeppl 20110410
00532     #define PS_ON_PIN       -1    //changed @ rkoeppl 20110410
00533     //our pin for debugging.
00534     
00535     #define DEBUG_PIN        0
00536     
00537     //our RS485 pins
00538     #define TX_ENABLE_PIN       12
00539     #define RX_ENABLE_PIN       13
00540     #define E0_PINS E0_STEP_PIN,E0_DIR_PIN,E0_ENABLE_PIN,
00541     #define E1_PINS
00542     
00543     #define SCL 16
00544     #define SDA 17
00545 
00546 #endif
00547 /****************************************************************************************
00548 * Sanguinololu pin assignment
00549 *
00550 ****************************************************************************************/
00551 #if MOTHERBOARD == 62
00552     #define MOTHERBOARD 6
00553     #define SANGUINOLOLU_V_1_2 
00554 #endif
00555 #if MOTHERBOARD == 6
00556     #define KNOWN_BOARD 1
00557     //#ifndef __AVR_ATmega644P__
00558     #if !defined(__AVR_ATmega644P__) && !defined(__AVR_ATmega1284P__)
00559       #error Oops!  Make sure you have 'Sanguino' selected from the 'Tools -> Boards' menu.
00560     #endif
00561 
00562     #define X_STEP_PIN         15
00563     #define X_DIR_PIN          21
00564     #define X_MIN_PIN          18
00565     #define X_MAX_PIN           -2
00566 
00567     #define Y_STEP_PIN         22
00568     #define Y_DIR_PIN          23
00569     #define Y_MIN_PIN          19
00570     #define Y_MAX_PIN          -1
00571 
00572     #define Z_STEP_PIN         3
00573     #define Z_DIR_PIN          2
00574     #define Z_MIN_PIN          20
00575     #define Z_MAX_PIN          -1
00576 
00577     #define E0_STEP_PIN         1
00578     #define E0_DIR_PIN          0
00579 
00580     #define LED_PIN            -1
00581 
00582     #define FAN_PIN            -1 
00583 
00584     #define PS_ON_PIN          -1
00585     #define KILL_PIN           -1
00586 
00587     #define HEATER_0_PIN       13 // (extruder)
00588 
00589     #ifdef SANGUINOLOLU_V_1_2
00590 
00591       #define HEATER_1_PIN       12 // (bed)
00592       #define X_ENABLE_PIN       14
00593       #define Y_ENABLE_PIN       14
00594       #define Z_ENABLE_PIN       26
00595       #define E0_ENABLE_PIN       14
00596 
00597     #else
00598 
00599       #define HEATER_1_PIN       14  // (bed)
00600       #define X_ENABLE_PIN       -1
00601       #define Y_ENABLE_PIN       -1
00602       #define Z_ENABLE_PIN       -1
00603       #define E0_ENABLE_PIN       -1
00604 
00605     #endif
00606 
00607     #define TEMP_0_PIN          7   // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 33 extruder)
00608     #define TEMP_1_PIN          6   // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 34 bed)
00609     #define SDPOWER          -1
00610     #define SDSS          31
00611     #define E0_PINS E0_STEP_PIN,E0_DIR_PIN,E0_ENABLE_PIN,
00612     #define E1_PINS
00613 
00614 #ifndef KNOWN_BOARD
00615 #error Unknown MOTHERBOARD value in configuration.h
00616 #endif
00617 
00618 #endif
00619 
00620 /****************************************************************************************
00621 * Gen7 1.1 and above pin assignment
00622 *
00623 ****************************************************************************************/
00624 #if MOTHERBOARD == 7
00625 #define KNOWN_BOARD 1
00626 
00627 #if !defined(__AVR_ATmega644P__) && !defined(__AVR_ATmega644__) && !defined(__AVR_ATmega1284P__)
00628     #error Oops!  Make sure you have 'Gen7' selected from the 'Tools -> Boards' menu.
00629 #endif
00630 
00631 //x axis pins
00632 #define X_STEP_PIN      19
00633 #define X_DIR_PIN       18
00634 #define X_ENABLE_PIN    24
00635 #define X_MIN_PIN       7
00636 #define X_MAX_PIN       -1
00637     
00638 //y axis pins
00639 #define Y_STEP_PIN      23
00640 #define Y_DIR_PIN       22
00641 #define Y_ENABLE_PIN    24
00642 #define Y_MIN_PIN       5
00643 #define Y_MAX_PIN       -1
00644     
00645 //z axis pins
00646 #define Z_STEP_PIN      26
00647 #define Z_DIR_PIN       25
00648 #define Z_ENABLE_PIN    24
00649 #define Z_MIN_PIN       1
00650 #define Z_MAX_PIN       -1
00651     
00652 //extruder pins
00653 #define E0_STEP_PIN      28     
00654 #define E0_DIR_PIN       27     
00655 #define E0_ENABLE_PIN    24     
00656 #define TEMP_0_PIN      1 
00657 #define TEMP_1_PIN      2    
00658 #define HEATER_0_PIN    4    
00659 #define HEATER_1_PIN    3    
00660     
00661     
00662 #define SDPOWER          -1
00663 #define SDSS          -1 // SCL pin of I2C header
00664 #define LED_PIN         -1    
00665        
00666 #define FAN_PIN         31    
00667 #define PS_ON_PIN       15    
00668 #define E0_PINS E0_STEP_PIN,E0_DIR_PIN,E0_ENABLE_PIN,
00669 #define E1_PINS
00670 
00671     //our pin for debugging.
00672     
00673     #define DEBUG_PIN        0
00674     
00675     //our RS485 pins
00676     #define TX_ENABLE_PIN       12
00677     #define RX_ENABLE_PIN       13
00678 
00679 #endif
00680 /****************************************************************************************
00681 * Gen7 1.4.1 pin assignment
00682 *
00683 ****************************************************************************************/
00684 #if MOTHERBOARD == 71
00685 #define KNOWN_BOARD 1
00686 
00687 #if !defined(__AVR_ATmega644P__) && !defined(__AVR_ATmega644__) && !defined(__AVR_ATmega1284P__)
00688     #error Oops!  Make sure you have 'Gen7' selected from the 'Tools -> Boards' menu.
00689 #endif
00690 
00691 //x axis pins
00692     #define X_STEP_PIN      29
00693     #define X_DIR_PIN       28
00694     #define X_ENABLE_PIN    25
00695     #define X_MIN_PIN       0
00696     #define X_MAX_PIN       -1
00697     
00698     //y axis pins
00699     #define Y_STEP_PIN      27
00700     #define Y_DIR_PIN       26
00701     #define Y_ENABLE_PIN    25
00702     #define Y_MIN_PIN       1
00703     #define Y_MAX_PIN       -1
00704     
00705     //z axis pins
00706     #define Z_STEP_PIN      23
00707     #define Z_DIR_PIN       22
00708     #define Z_ENABLE_PIN    25
00709     #define Z_MIN_PIN       2
00710     #define Z_MAX_PIN       -1
00711     
00712     //extruder pins
00713     #define E0_STEP_PIN      19     
00714     #define E0_DIR_PIN       18     
00715     #define E0_ENABLE_PIN    25     
00716     #define TEMP_0_PIN      0 
00717     #define TEMP_1_PIN      1    
00718     #define HEATER_0_PIN    4    
00719     #define HEATER_1_PIN    3    
00720     
00721     
00722     #define SDPOWER          -1
00723     #define SDSS          -1 // SCL pin of I2C header
00724     #define LED_PIN         -1    
00725        
00726     #define FAN_PIN         -1    
00727     #define PS_ON_PIN       15    
00728     //our pin for debugging.
00729     
00730     #define DEBUG_PIN        0
00731     
00732     //our RS485 pins
00733     #define TX_ENABLE_PIN       12
00734     #define RX_ENABLE_PIN       13
00735 
00736     #define E0_PINS E0_STEP_PIN,E0_DIR_PIN,E0_ENABLE_PIN,
00737     #define E1_PINS
00738 
00739 #endif
00740 
00741 /****************************************************************************************
00742 * Teensylu 0.7 pin assingments (ATMEGA90USB)
00743 * Requires the Teensyduino software with Teensy2.0++ selected in arduino IDE!
00744 ****************************************************************************************/
00745 #if MOTHERBOARD == 8
00746 #define MOTHERBOARD 8
00747 #define KNOWN_BOARD 1
00748 
00749 #define X_STEP_PIN         28
00750 #define X_DIR_PIN          29
00751 #define X_ENABLE_PIN       19
00752 #define X_MIN_PIN          25
00753 #define X_MAX_PIN          -1
00754 
00755 #define Y_STEP_PIN         30
00756 #define Y_DIR_PIN          31
00757 #define Y_ENABLE_PIN       20 //26
00758 #define Y_MIN_PIN          26 // 20
00759 #define Y_MAX_PIN          -1
00760 
00761 #define Z_STEP_PIN         32
00762 #define Z_DIR_PIN          33
00763 #define Z_ENABLE_PIN       17
00764 #define Z_MIN_PIN          27
00765 #define Z_MAX_PIN          -1
00766 
00767 #define E0_STEP_PIN         34
00768 #define E0_DIR_PIN          35
00769 #define E0_ENABLE_PIN       13
00770 
00771 #define TEMP_0_PIN          7 // Extruder - ANALOG PIN NUMBER!
00772 #define TEMP_1_PIN          6 // Bed - ANALOG PIN NUMBER! 
00773 #define HEATER_0_PIN       15 // Extruder
00774 #define HEATER_1_PIN       14 // bed
00775 
00776 #define SDPOWER            -1
00777 #define SDSS                20
00778 #define LED_PIN            -1
00779 
00780 #define FAN_PIN            16 // Fan
00781 #define PS_ON_PIN          -1
00782 
00783 #define KILL_PIN           -1
00784 #define E0_PINS E0_STEP_PIN,E0_DIR_PIN,E0_ENABLE_PIN,
00785 #define E1_PINS
00786 
00787 #ifndef SDSUPPORT
00788 // these pins are defined in the SD library if building with SD support
00789   #define SCK_PIN          21
00790   #define MISO_PIN         22
00791   #define MOSI_PIN         23
00792 #endif
00793 
00794 #endif
00795 
00796 
00797 /****************************************************************************************
00798 * Printrboard Rev. B pin assingments (ATMEGA90USB1286)
00799 * Requires the Teensyduino software with Teensy2.0++ selected in arduino IDE!
00800 * See http://reprap.org/wiki/Printrboard for more info
00801 ****************************************************************************************/
00802 #if MOTHERBOARD == 9
00803 #define MOTHERBOARD 9
00804 #define KNOWN_BOARD 1
00805 
00806 #define X_STEP_PIN         28
00807 #define X_DIR_PIN          29
00808 #define X_ENABLE_PIN       19
00809 #define X_MIN_PIN          47
00810 #define X_MAX_PIN          -1
00811 
00812 #define Y_STEP_PIN         30
00813 #define Y_DIR_PIN          31
00814 #define Y_ENABLE_PIN       18
00815 #define Y_MIN_PIN           20 // Don't use this if you want to use SD card. Use 37 and put the endstop in the e-stop slot!!!
00816 #define Y_MAX_PIN          -1
00817 
00818 #define Z_STEP_PIN         32
00819 #define Z_DIR_PIN          33
00820 #define Z_ENABLE_PIN       17
00821 #define Z_MIN_PIN          36
00822 #define Z_MAX_PIN          -1
00823 
00824 #define E0_STEP_PIN         34
00825 #define E0_DIR_PIN          35
00826 #define E0_ENABLE_PIN       13
00827 #define TEMP_0_PIN          1 // Extruder - ANALOG PIN NUMBER!
00828 #define TEMP_1_PIN          0 // Bed - ANALOG PIN NUMBER! 
00829 #define HEATER_0_PIN       15 // Extruder
00830 #define HEATER_1_PIN       14 // bed
00831 
00832 #define SDPOWER            -1
00833 #define SDSS                26 // old value 2
00834 #define LED_PIN            -1
00835 
00836 #define FAN_PIN            16 // Fan
00837 #define PS_ON_PIN          -1
00838 
00839 #define KILL_PIN           -1
00840 #define E0_PINS E0_STEP_PIN,E0_DIR_PIN,E0_ENABLE_PIN,
00841 #define E1_PINS
00842 #ifndef SDSUPPORT
00843 // these pins are defined in the SD library if building with SD support
00844   #define SCK_PIN          21
00845   #define MISO_PIN         22
00846   #define MOSI_PIN         23
00847 #endif
00848 
00849 #endif
00850 
00851 /****************************************************************************************
00852 * 3D Master pin assignment
00853 *
00854 ****************************************************************************************/
00855 #if MOTHERBOARD == 12
00856   #define KNOWN_BOARD 1
00857 
00858   #if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
00859   #error Oops!  Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
00860   #endif
00861 
00862 // Definition for current control
00863 #define STEPPER_CURRENT_CONTROL  CURRENT_CONTROL_LTC2600
00864 #define LTC2600_CHANNELS {0x30,0x31,0x32,0x33,0x34}
00865 #define LTC2600_NUM_CHANNELS 5
00866 #define LTC2600_CS_PIN             92   // PIND.4, 47, DA_CS
00867 #define LTC2600_SCK_PIN            93   // PIND.5, 48, DA_SCK
00868 #define LTC2600_SDI_PIN            94   // PIND.6, 49, DA_SDI
00869 
00870 // On board beeper, so define values already here
00871 #define BEEPER_PIN 23
00872 #define BEEPER_TYPE 1
00873 #define SDSUPPORT true  // sd card reader on board
00874 #define SDCARDDETECT -1
00875 
00876 // digital pin mappings
00877 #define X_STEP_PIN         54   // PINF.0, 97, STP_DRV1
00878 #define X_DIR_PIN          55   // PINF.1, 96, DIR_DRV1
00879 #define X_ENABLE_PIN       38   // PIND.7, 50, ENA_DRV1
00880 #define X_MIN_PIN           3   // PINE.5,  7, OPTO1
00881 #define X_MAX_PIN          -1   // PINJ.0, 63, OPTO4 (would be "15", -1 = disabled)
00882 
00883 #define Y_STEP_PIN         60   // PINF.6, 91, STP_DRV2
00884 #define Y_DIR_PIN          61   // PINF.7, 90, DIR_DRV2
00885 #define Y_ENABLE_PIN       56   // PINF.2, 95, ENA_DRV2
00886 #define Y_MIN_PIN           2   // PINE.4,  6, OPTO2
00887 #define Y_MAX_PIN          -1   // PIND.3, 46, OPTO5 (would be "18", -1 = disabled
00888 
00889 #define Z_STEP_PIN         46   // PINL.3, 38, STP_DRV3
00890 #define Z_DIR_PIN          48   // PINL.1, 36, DIR_DRV3
00891 #define Z_ENABLE_PIN       62   // PINK.0, 89, ENA_DRV3
00892 #define Z_MIN_PIN          14   // PINJ.1, 64, OPTO3
00893 #define Z_MAX_PIN          -1   // PIND.2, 45, OPTO6 (would be "19", -1 = disabled)
00894 
00895 #define E0_STEP_PIN         26  // PINA.4, 74, STP_DRV4
00896 #define E0_DIR_PIN          28  // PINA.6, 72, DIR_DRV4
00897 #define E0_ENABLE_PIN       24  // PINA.2, 76 ENA_DRV4
00898 
00899 #define E1_STEP_PIN       36    // PINC.1, 54, STP_DRV5
00900 #define E1_DIR_PIN        34    // PINC.3, 56, DIR_DRV5
00901 #define E1_ENABLE_PIN     30    // PINC.7, 60, ENA_DRV5
00902 
00903 #define SDPOWER            -1
00904 #define SDSS               53   // PINB.0, 19, SS
00905 #define LED_PIN            13   // PINB.7, 26, LED13
00906 #define FAN_PIN            25   // OUT1 PINA.3, 75, OUT1
00907 #define FAN_BOARD_PIN      27   // OUT2
00908 #define PS_ON_PIN          -1
00909 #define KILL_PIN           -1
00910 
00911 #define HEATER_0_PIN       10   // PINB.4, 23, HZ1
00912 #define HEATER_1_PIN        9   // PINH.6, 18, HZ2
00913 #define HEATER_2_PIN        8   // PINH.5, 17, HZ3
00914 
00915 // analog pin mappings
00916 #define TEMP_0_PIN         13   // PINK.5, 84, TH1
00917 #define TEMP_1_PIN         14   // PINK.6, 83, TH2
00918 #define TEMP_2_PIN         15   // PINK.7, 82, TH3
00919 
00920 #define E0_PINS E0_STEP_PIN,E0_DIR_PIN,E0_ENABLE_PIN,
00921 #define E1_PINS E1_STEP_PIN,E1_DIR_PIN,E1_ENABLE_PIN,
00922 
00923 // these pins are defined in the SD library if building with SD support  
00924 #define SCK_PIN          52     // PINB.1, 20, SCK
00925 #define MISO_PIN         50     // PINB.3, 22, MISO
00926 #define MOSI_PIN         51     // PINB.2, 21, MOSI
00927 #define MAX6675_SS       53     // PINB.0, 19, SS
00928 
00929 #endif // MOTHERBOARD == 12
00930 
00931 
00932 /****************************************************************************************
00933 * MegaTronics
00934 *
00935 ****************************************************************************************/
00936 #if MOTHERBOARD == 70
00937 #define KNOWN_BOARD 1
00938 
00940 
00941  #ifndef __AVR_ATmega2560__
00942  #error Oops!  Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
00943  #endif
00944 
00945 
00946 
00947 
00948 #define X_STEP_PIN         26
00949 #define X_DIR_PIN          28
00950 #define X_ENABLE_PIN       24
00951 #define X_MIN_PIN          41
00952 #define X_MAX_PIN          37   //2 //Max endstops default to disabled "-1", set to commented value to enable.
00953 
00954 #define Y_STEP_PIN         60 // A6
00955 #define Y_DIR_PIN          61 // A7
00956 #define Y_ENABLE_PIN       22
00957 #define Y_MIN_PIN          14
00958 #define Y_MAX_PIN          15   //15
00959 
00960 #define Z_STEP_PIN         54 // A0
00961 #define Z_DIR_PIN          55 // A1
00962 #define Z_ENABLE_PIN       56 // A2
00963 #define Z_MIN_PIN          18
00964 #define Z_MAX_PIN          19
00965 
00966 #define E0_STEP_PIN         31
00967 #define E0_DIR_PIN          32
00968 #define E0_ENABLE_PIN       38
00969 
00970 #define E1_STEP_PIN        34
00971 #define E1_DIR_PIN         36
00972 #define E1_ENABLE_PIN      30
00973 
00974 #define SDPOWER            -1
00975 #define SDSS               53
00976 #define LED_PIN            13
00977 
00978 
00979 #define FAN_PIN            7 // IO pin. Buffer needed
00980 #define PS_ON_PIN          12
00981 #define KILL_PIN           -1
00982 
00983 #define HEATER_0_PIN       9    // EXTRUDER 1
00984 #define HEATER_1_PIN       8    // EXTRUDER 2 (FAN On Sprinter)
00985 #define HEATER_2_PIN       -1  
00986 
00987 #if TEMP_SENSOR_0 == -1 
00988 #define TEMP_0_PIN         8   // ANALOG NUMBERING
00989 #else
00990 #define TEMP_0_PIN         13   // ANALOG NUMBERING
00991 
00992 #endif
00993 
00994 #define TEMP_1_PIN         15   // ANALOG NUMBERING
00995 #define TEMP_2_PIN         -1   // ANALOG NUMBERING
00996 #define HEATER_BED_PIN     10   // BED
00997 #define TEMP_BED_PIN       14   // ANALOG NUMBERING
00998 
00999 #define BEEPER 33                       // Beeper on AUX-4
01000 
01001 
01002 #ifdef ULTRA_LCD
01003 
01004   #ifdef NEWPANEL
01005   //arduino pin which triggers an piezzo beeper
01006     
01007     #define LCD_PINS_RS 16 
01008     #define LCD_PINS_ENABLE 17
01009     #define LCD_PINS_D4 23
01010     #define LCD_PINS_D5 25 
01011     #define LCD_PINS_D6 27
01012     #define LCD_PINS_D7 29
01013     
01014     //buttons are directly attached using AUX-2
01015     #define BTN_EN1 37
01016     #define BTN_EN2 35
01017     #define BTN_ENC 43  //the click
01018     
01019     #define BLEN_C 2
01020     #define BLEN_B 1
01021     #define BLEN_A 0
01022     
01023     #define SDCARDDETECT -1             // Ramps does not use this port
01024     
01025       //encoder rotation values
01026     #define encrot0 0
01027     #define encrot1 2
01028     #define encrot2 3
01029     #define encrot3 1
01030 #endif
01031 #endif //ULTRA_LCD
01032 
01033 #define E0_PINS E0_STEP_PIN,E0_DIR_PIN,E0_ENABLE_PIN,
01034 #define E1_PINS
01035 
01036 #endif
01037 
01038 
01039 #if MOTHERBOARD == 301
01040 #define KNOWN_BOARD
01041 /*****************************************************************
01042 * Rambo Pin Assignments
01043 ******************************************************************/
01044 
01045 #ifndef __AVR_ATmega2560__
01046 #error Oops!  Make sure you have 'Arduino Mega 2560' selected from the 'Tools -> Boards' menu.
01047 #endif
01048 
01049 #define X_STEP_PIN     37
01050 #define X_DIR_PIN      48
01051 #define X_MIN_PIN      12
01052 #define X_MAX_PIN      19
01053 #define X_ENABLE_PIN   29
01054 #define X_MS1_PIN      40
01055 #define X_MS2_PIN      41
01056 
01057 #define Y_STEP_PIN     36
01058 #define Y_DIR_PIN      49
01059 #define Y_MIN_PIN      11
01060 #define Y_MAX_PIN      18
01061 #define Y_ENABLE_PIN   28
01062 #define Y_MS1_PIN      69
01063 #define Y_MS2_PIN      39
01064 
01065 #define Z_STEP_PIN     35
01066 #define Z_DIR_PIN      47
01067 #define Z_MIN_PIN      10
01068 #define Z_MAX_PIN      15
01069 #define Z_ENABLE_PIN   27
01070 #define Z_MS1_PIN      68
01071 #define Z_MS2_PIN      67
01072 
01073 #define HEATER_BED_PIN 3
01074 #define TEMP_BED_PIN   2 
01075 
01076 #define HEATER_0_PIN   9
01077 #define TEMP_0_PIN     0
01078 
01079 #define HEATER_1_PIN   7
01080 #define TEMP_1_PIN     1
01081 
01082 #define HEATER_2_PIN   -1
01083 #define TEMP_2_PIN     -1
01084 
01085 #define E0_STEP_PIN    34
01086 #define E0_DIR_PIN     43
01087 #define E0_ENABLE_PIN  26
01088 #define E0_MS1_PIN     65
01089 #define E0_MS2_PIN     66
01090 
01091 #define E1_STEP_PIN    33
01092 #define E1_DIR_PIN     42
01093 #define E1_ENABLE_PIN  25
01094 #define E1_MS1_PIN     63
01095 #define E1_MS2_PIN     64
01096 
01097 #define DIGIPOTSS_PIN  38
01098 #define DIGIPOT_CHANNELS {4,5,3,0,1} // X Y Z E0 E1 digipot channels to stepper driver mapping
01099 
01100 #define SDPOWER        -1
01101 #define SDSS           53
01102 #define LED_PIN        13
01103 #define FAN_PIN        8
01104 #define PS_ON_PIN      4
01105 #define KILL_PIN       -1
01106 #define SUICIDE_PIN    -1  //PIN that has to be turned on right after start, to keep power flowing.
01107 
01108 #define E0_PINS E0_STEP_PIN,E0_DIR_PIN,E0_ENABLE_PIN,E0_MS1_PIN,E0_MS2_PIN,
01109 #define E1_PINS
01110 
01111 #define SCK_PIN          52
01112 #define MISO_PIN         50
01113 #define MOSI_PIN         51
01114 #define MAX6675_SS       53
01115 
01116 #endif
01117 
01118 #if MOTHERBOARD == 401
01119 #ifndef __SAM3X8E__
01120 #error Oops!  Make sure you have 'Arduino Due' selected from the 'Tools -> Boards' menu.
01121 #endif
01122 
01123 #define KNOWN_BOARD
01124 #define CPU_ARCH ARCH_ARM
01125 /*****************************************************************
01126 * Arduino Due Pin Assignments
01127 ******************************************************************/
01128 
01129 #define X_STEP_PIN     36
01130 #define X_DIR_PIN      48
01131 #define X_MIN_PIN      12
01132 #define X_MAX_PIN      19
01133 #define X_ENABLE_PIN   29
01134 #define X_MS1_PIN      40
01135 #define X_MS2_PIN      41
01136 
01137 #define Y_STEP_PIN     36
01138 #define Y_DIR_PIN      49
01139 #define Y_MIN_PIN      11
01140 #define Y_MAX_PIN      18
01141 #define Y_ENABLE_PIN   28
01142 #define Y_MS1_PIN      69
01143 #define Y_MS2_PIN      39
01144 
01145 #define Z_STEP_PIN     35
01146 #define Z_DIR_PIN      47
01147 #define Z_MIN_PIN      10
01148 #define Z_MAX_PIN      15
01149 #define Z_ENABLE_PIN   27
01150 #define Z_MS1_PIN      68
01151 #define Z_MS2_PIN      67
01152 
01153 #define HEATER_BED_PIN 3
01154 #define TEMP_BED_PIN   65 
01155 
01156 #define HEATER_0_PIN   9
01157 #define TEMP_0_PIN     63
01158 
01159 #define HEATER_1_PIN   7
01160 #define TEMP_1_PIN     64
01161 
01162 #define HEATER_2_PIN   -1
01163 #define TEMP_2_PIN     -1
01164 
01165 #define E0_STEP_PIN    34
01166 #define E0_DIR_PIN     43
01167 #define E0_ENABLE_PIN  26
01168 #define E0_MS1_PIN     65
01169 #define E0_MS2_PIN     66
01170 
01171 #define E1_STEP_PIN    33
01172 #define E1_DIR_PIN     42
01173 #define E1_ENABLE_PIN  25
01174 #define E1_MS1_PIN     63
01175 #define E1_MS2_PIN     64
01176 
01177 #define SDPOWER        -1
01178 #define SDSS           53
01179 #define LED_PIN        13
01180 #define FAN_PIN        8
01181 #define PS_ON_PIN      4
01182 #define KILL_PIN       -1
01183 #define SUICIDE_PIN    -1  //PIN that has to be turned on right after start, to keep power flowing.
01184 
01185 #define E0_PINS E0_STEP_PIN,E0_DIR_PIN,E0_ENABLE_PIN,E0_MS1_PIN,E0_MS2_PIN,
01186 #define E1_PINS
01187 
01188 #endif
01189 
01190 #ifndef CPU_ARCH  // Set default architecture
01191 #define CPU_ARCH ARCH_AVR
01192 #endif
01193 
01194 #ifndef STEPPER_CURRENT_CONTROL // Set default stepper current control if not set yet.
01195 #define STEPPER_CURRENT_CONTROL  CURRENT_CONTROL_MANUAL
01196 #endif
01197 
01198 #ifndef FAN_BOARD_PIN
01199 #define FAN_BOARD_PIN -1
01200 #endif
01201 
01202 #if NUM_EXTRUDER==1
01203 #define E1_PINS
01204 #endif
01205 
01206 #if NUM_EXTRUDER<3
01207 #define E2_PINS
01208 #endif
01209 
01210 #define SENSITIVE_PINS {0, 1, X_STEP_PIN, X_DIR_PIN, X_ENABLE_PIN, X_MIN_PIN, X_MAX_PIN, Y_STEP_PIN, Y_DIR_PIN, Y_ENABLE_PIN, Y_MIN_PIN, Y_MAX_PIN, Z_STEP_PIN, Z_DIR_PIN, Z_ENABLE_PIN, Z_MIN_PIN, Z_MAX_PIN, LED_PIN, PS_ON_PIN, \
01211                         HEATER_0_PIN, HEATER_1_PIN, FAN_PIN, E0_PINS E1_PINS E2_PINS TEMP_0_PIN, TEMP_1_PIN,SDSS }
01212 #endif
01213 
 All Data Structures Namespaces Files Functions Variables Typedefs Friends Defines