diff options
Diffstat (limited to 'Sprinter/pins.h')
-rw-r--r-- | Sprinter/pins.h | 60 |
1 files changed, 59 insertions, 1 deletions
diff --git a/Sprinter/pins.h b/Sprinter/pins.h index d036610..63ea464 100644 --- a/Sprinter/pins.h +++ b/Sprinter/pins.h @@ -669,7 +669,6 @@ #define Y_ENABLE_PIN 14 #define Z_ENABLE_PIN 26 #define E_ENABLE_PIN 14 - #else #define HEATER_1_PIN 14 // (bed) @@ -688,6 +687,65 @@ #endif /**************************************************************************************** +* Gen7 pin assignment +* +**************************************************************************************** +* for Gen7 to work properly, you should reset your fuses to lfuse= 0xF7 ; hfuse = 0xD4 ; efuse = FD; +* else you will always get a "brown out reset" loop resetting the firmware +* you need a programmer to set the fuses +**/ +#if MOTHERBOARD == 71 //GEN7 with 20 Mhz +#define MOTHERBOARD 7 +#define QUARZ_20MHZ +#endif + +#if MOTHERBOARD == 7 +#define KNOWN_BOARD 1 + +#if !defined(__AVR_ATmega644P__) && !defined(__AVR_ATmega1284P__) && !defined(__AVR_ATmega644__) + #error Oops! Make sure you have 'Sanguino' selected from the 'Tools -> Boards' menu. +#endif + +//x axis pins + #define X_STEP_PIN 19 + #define X_DIR_PIN 18 + #define X_ENABLE_PIN 24 + #define X_MIN_PIN 7 + #define X_MAX_PIN -1 //X - Maxpin is 6 + + //y axis pins + #define Y_STEP_PIN 23 + #define Y_DIR_PIN 22 + #define Y_ENABLE_PIN 24 + #define Y_MIN_PIN 5 + #define Y_MAX_PIN -1 //Y - Maxpin is 2 + + //z axis pins + #define Z_STEP_PIN 26 + #define Z_DIR_PIN 25 + #define Z_ENABLE_PIN 24 + #define Z_MIN_PIN 1 + #define Z_MAX_PIN -1 //Z - Maxpin is 0 + + //extruder pins + #define E_STEP_PIN 28 + #define E_DIR_PIN 27 + #define E_ENABLE_PIN 24 + #define TEMP_0_PIN 1 // Extruder + #define HEATER_0_PIN 4 // Extruder + #define HEATER_1_PIN 3 // Bed + + + #define SDPOWER -1 + #define SDSS -1 + #define LED_PIN -1 + #define TEMP_1_PIN 2 //Bed + #define FAN_PIN -1 + #define PS_ON_PIN 15 + +#endif + +/**************************************************************************************** * Teensylu 0.7 pin assingments (ATMEGA90USB) * Requires the Teensyduino software with Teensy2.0++ selected in arduino IDE! ****************************************************************************************/ |