|
@ -298,7 +298,7 @@ |
|
|
* Arduino Mega pin assignment |
|
|
* Arduino Mega pin assignment |
|
|
* |
|
|
* |
|
|
****************************************************************************************/ |
|
|
****************************************************************************************/ |
|
|
#if MOTHERBOARD == 3 || MOTHERBOARD == 33 || MOTHERBOARD == 34 |
|
|
#if MOTHERBOARD == 3 || MOTHERBOARD == 33 || MOTHERBOARD == 34 || MOTHERBOARD == 77 |
|
|
#define KNOWN_BOARD 1 |
|
|
#define KNOWN_BOARD 1 |
|
|
|
|
|
|
|
|
//////////////////FIX THIS//////////////
|
|
|
//////////////////FIX THIS//////////////
|
|
@ -308,47 +308,89 @@ |
|
|
#endif |
|
|
#endif |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// uncomment one of the following lines for RAMPS v1.3 or v1.0, comment both for v1.2 or 1.1
|
|
|
// uncomment one of the following lines for RAMPS v1.3 or v1.0, comment both for v1.2 or 1.1
|
|
|
// #define RAMPS_V_1_3
|
|
|
// #define RAMPS_V_1_3
|
|
|
// #define RAMPS_V_1_0
|
|
|
// #define RAMPS_V_1_0
|
|
|
|
|
|
|
|
|
#if MOTHERBOARD == 33 || MOTHERBOARD == 34 |
|
|
|
|
|
|
|
|
|
|
|
#define LARGE_FLASH true |
|
|
#if MOTHERBOARD == 33 || MOTHERBOARD == 34 || MOTHERBOARD == 77 |
|
|
|
|
|
|
|
|
|
|
|
#define LARGE_FLASH true |
|
|
|
|
|
|
|
|
|
|
|
#if MOTHERBOARD == 77 |
|
|
|
|
|
#define X_STEP_PIN 54 |
|
|
|
|
|
#define X_DIR_PIN 55 |
|
|
|
|
|
#define X_ENABLE_PIN 38 |
|
|
|
|
|
#define X_MIN_PIN 3 |
|
|
|
|
|
#define X_MAX_PIN -1 //2 //Max endstops default to disabled "-1", set to commented value to enable.
|
|
|
|
|
|
|
|
|
#define X_STEP_PIN 54 |
|
|
#define Y_STEP_PIN 60 |
|
|
#define X_DIR_PIN 55 |
|
|
#define Y_DIR_PIN 61 |
|
|
#define X_ENABLE_PIN 38 |
|
|
#define Y_ENABLE_PIN 56 |
|
|
#define X_MIN_PIN 3 |
|
|
#define Y_MIN_PIN 14 |
|
|
#define X_MAX_PIN 2 |
|
|
#define Y_MAX_PIN -1 //15
|
|
|
|
|
|
|
|
|
#define Y_STEP_PIN 60 |
|
|
#define Z_STEP_PIN 46 |
|
|
#define Y_DIR_PIN 61 |
|
|
#define Z_DIR_PIN 48 |
|
|
#define Y_ENABLE_PIN 56 |
|
|
#define Z_ENABLE_PIN 63 |
|
|
#define Y_MIN_PIN 14 |
|
|
#define Z_MIN_PIN 18 |
|
|
#define Y_MAX_PIN 15 |
|
|
#define Z_MAX_PIN -1 |
|
|
|
|
|
|
|
|
#define Z_STEP_PIN 46 |
|
|
#define Z2_STEP_PIN 36 |
|
|
#define Z_DIR_PIN 48 |
|
|
#define Z2_DIR_PIN 34 |
|
|
#define Z_ENABLE_PIN 62 |
|
|
#define Z2_ENABLE_PIN 30 |
|
|
#define Z_MIN_PIN 18 |
|
|
|
|
|
#define Z_MAX_PIN 19 |
|
|
|
|
|
|
|
|
|
|
|
#define Z2_STEP_PIN 36 |
|
|
#define E0_STEP_PIN 26 |
|
|
#define Z2_DIR_PIN 34 |
|
|
#define E0_DIR_PIN 28 |
|
|
#define Z2_ENABLE_PIN 30 |
|
|
#define E0_ENABLE_PIN 24 |
|
|
|
|
|
|
|
|
#define E0_STEP_PIN 26 |
|
|
#define E1_STEP_PIN 36 |
|
|
#define E0_DIR_PIN 28 |
|
|
#define E1_DIR_PIN 34 |
|
|
#define E0_ENABLE_PIN 24 |
|
|
#define E1_ENABLE_PIN 30 |
|
|
|
|
|
|
|
|
#define E1_STEP_PIN 36 |
|
|
#define SDPOWER -1 |
|
|
#define E1_DIR_PIN 34 |
|
|
#define SDSS 25//53
|
|
|
#define E1_ENABLE_PIN 30 |
|
|
#define LED_PIN 13 |
|
|
|
|
|
|
|
|
#define SDPOWER -1 |
|
|
#define BEEPER 33 |
|
|
#define SDSS 53 |
|
|
|
|
|
#define LED_PIN 13 |
|
|
#else |
|
|
|
|
|
|
|
|
|
|
|
#define X_STEP_PIN 54 |
|
|
|
|
|
#define X_DIR_PIN 55 |
|
|
|
|
|
#define X_ENABLE_PIN 38 |
|
|
|
|
|
#define X_MIN_PIN 3 |
|
|
|
|
|
#define X_MAX_PIN 2 |
|
|
|
|
|
|
|
|
|
|
|
#define Y_STEP_PIN 60 |
|
|
|
|
|
#define Y_DIR_PIN 61 |
|
|
|
|
|
#define Y_ENABLE_PIN 56 |
|
|
|
|
|
#define Y_MIN_PIN 14 |
|
|
|
|
|
#define Y_MAX_PIN 15 |
|
|
|
|
|
|
|
|
|
|
|
#define Z_STEP_PIN 46 |
|
|
|
|
|
#define Z_DIR_PIN 48 |
|
|
|
|
|
#define Z_ENABLE_PIN 62 |
|
|
|
|
|
#define Z_MIN_PIN 18 |
|
|
|
|
|
#define Z_MAX_PIN 19 |
|
|
|
|
|
|
|
|
|
|
|
#define Z2_STEP_PIN 36 |
|
|
|
|
|
#define Z2_DIR_PIN 34 |
|
|
|
|
|
#define Z2_ENABLE_PIN 30 |
|
|
|
|
|
|
|
|
|
|
|
#define E0_STEP_PIN 26 |
|
|
|
|
|
#define E0_DIR_PIN 28 |
|
|
|
|
|
#define E0_ENABLE_PIN 24 |
|
|
|
|
|
|
|
|
|
|
|
#define E1_STEP_PIN 36 |
|
|
|
|
|
#define E1_DIR_PIN 34 |
|
|
|
|
|
#define E1_ENABLE_PIN 30 |
|
|
|
|
|
|
|
|
|
|
|
#define SDPOWER -1 |
|
|
|
|
|
#define SDSS 53 |
|
|
|
|
|
#define LED_PIN 13 |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
#if MOTHERBOARD == 33 |
|
|
#if MOTHERBOARD == 33 |
|
|
#define FAN_PIN 9 // (Sprinter config)
|
|
|
#define FAN_PIN 9 // (Sprinter config)
|
|
@ -356,6 +398,10 @@ |
|
|
#define FAN_PIN 4 // IO pin. Buffer needed
|
|
|
#define FAN_PIN 4 // IO pin. Buffer needed
|
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#if MOTHERBOARD == 77 |
|
|
|
|
|
#define FAN_PIN 8 |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
#define PS_ON_PIN 12 |
|
|
#define PS_ON_PIN 12 |
|
|
|
|
|
|
|
|
#if defined(REPRAP_DISCOUNT_SMART_CONTROLLER) || defined(G3D_PANEL) |
|
|
#if defined(REPRAP_DISCOUNT_SMART_CONTROLLER) || defined(G3D_PANEL) |
|
@ -365,18 +411,27 @@ |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
#define HEATER_0_PIN 10 // EXTRUDER 1
|
|
|
#define HEATER_0_PIN 10 // EXTRUDER 1
|
|
|
|
|
|
|
|
|
#if MOTHERBOARD == 33 |
|
|
#if MOTHERBOARD == 33 |
|
|
#define HEATER_1_PIN -1 |
|
|
#define HEATER_1_PIN -1 |
|
|
#else |
|
|
#else |
|
|
#define HEATER_1_PIN 9 // EXTRUDER 2 (FAN On Sprinter)
|
|
|
#define HEATER_1_PIN 9 // EXTRUDER 2 (FAN On Sprinter)
|
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
#define HEATER_2_PIN -1 |
|
|
#define HEATER_2_PIN -1 |
|
|
|
|
|
|
|
|
|
|
|
#if MOTHERBOARD == 77 |
|
|
|
|
|
#define HEATER_0_PIN 10 |
|
|
|
|
|
#define HEATER_1_PIN 12 |
|
|
|
|
|
#define HEATER_2_PIN 6 |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
#define TEMP_0_PIN 13 // ANALOG NUMBERING
|
|
|
#define TEMP_0_PIN 13 // ANALOG NUMBERING
|
|
|
#define TEMP_1_PIN 15 // ANALOG NUMBERING
|
|
|
#define TEMP_1_PIN 15 // ANALOG NUMBERING
|
|
|
#define TEMP_2_PIN -1 // ANALOG NUMBERING
|
|
|
#define TEMP_2_PIN -1 // ANALOG NUMBERING
|
|
|
#define HEATER_BED_PIN 8 // BED
|
|
|
#if MOTHERBOARD == 77 |
|
|
|
|
|
#define HEATER_BED_PIN 9 // BED
|
|
|
|
|
|
#else |
|
|
|
|
|
#define HEATER_BED_PIN 8 // BED
|
|
|
|
|
|
#endif |
|
|
#define TEMP_BED_PIN 14 // ANALOG NUMBERING
|
|
|
#define TEMP_BED_PIN 14 // ANALOG NUMBERING
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -441,12 +496,13 @@ |
|
|
|
|
|
|
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#else //old style panel with shift register
|
|
|
#else //old style panel with shift register
|
|
|
//arduino pin witch triggers an piezzo beeper
|
|
|
//arduino pin witch triggers an piezzo beeper
|
|
|
#define BEEPER 33 // No Beeper added
|
|
|
#define BEEPER 33 //No Beeper added
|
|
|
|
|
|
|
|
|
//buttons are attached to a shift register
|
|
|
//buttons are attached to a shift register
|
|
|
// Not wired this yet
|
|
|
// Not wired this yet
|
|
|
//#define SHIFT_CLK 38
|
|
|
//#define SHIFT_CLK 38
|
|
|
//#define SHIFT_LD 42
|
|
|
//#define SHIFT_LD 42
|
|
|
//#define SHIFT_OUT 40
|
|
|
//#define SHIFT_OUT 40
|
|
@ -463,52 +519,51 @@ |
|
|
|
|
|
|
|
|
#else // RAMPS_V_1_1 or RAMPS_V_1_2 as default (MOTHERBOARD == 3)
|
|
|
#else // RAMPS_V_1_1 or RAMPS_V_1_2 as default (MOTHERBOARD == 3)
|
|
|
|
|
|
|
|
|
#define X_STEP_PIN 26 |
|
|
#define X_STEP_PIN 26 |
|
|
#define X_DIR_PIN 28 |
|
|
#define X_DIR_PIN 28 |
|
|
#define X_ENABLE_PIN 24 |
|
|
#define X_ENABLE_PIN 24 |
|
|
#define X_MIN_PIN 3 |
|
|
#define X_MIN_PIN 3 |
|
|
#define X_MAX_PIN -1 //2
|
|
|
#define X_MAX_PIN -1 //2
|
|
|
|
|
|
|
|
|
#define Y_STEP_PIN 38 |
|
|
#define Y_STEP_PIN 38 |
|
|
#define Y_DIR_PIN 40 |
|
|
#define Y_DIR_PIN 40 |
|
|
#define Y_ENABLE_PIN 36 |
|
|
#define Y_ENABLE_PIN 36 |
|
|
#define Y_MIN_PIN 16 |
|
|
#define Y_MIN_PIN 16 |
|
|
#define Y_MAX_PIN -1 //17
|
|
|
#define Y_MAX_PIN -1 //17
|
|
|
|
|
|
|
|
|
#define Z_STEP_PIN 44 |
|
|
#define Z_STEP_PIN 44 |
|
|
#define Z_DIR_PIN 46 |
|
|
#define Z_DIR_PIN 46 |
|
|
#define Z_ENABLE_PIN 42 |
|
|
#define Z_ENABLE_PIN 42 |
|
|
#define Z_MIN_PIN 18 |
|
|
#define Z_MIN_PIN 18 |
|
|
#define Z_MAX_PIN -1 //19
|
|
|
#define Z_MAX_PIN -1 //19
|
|
|
|
|
|
|
|
|
#define E0_STEP_PIN 32 |
|
|
|
|
|
#define E0_DIR_PIN 34 |
|
|
|
|
|
#define E0_ENABLE_PIN 30 |
|
|
|
|
|
|
|
|
|
|
|
#define SDPOWER 48 |
|
|
|
|
|
#define SDSS 53 |
|
|
|
|
|
#define LED_PIN 13 |
|
|
|
|
|
#define PS_ON_PIN -1 |
|
|
|
|
|
#define KILL_PIN -1 |
|
|
|
|
|
|
|
|
|
|
|
#ifdef RAMPS_V_1_0 // RAMPS_V_1_0
|
|
|
|
|
|
#define HEATER_0_PIN 12 // RAMPS 1.0
|
|
|
|
|
|
#define HEATER_BED_PIN -1 // RAMPS 1.0
|
|
|
|
|
|
#define FAN_PIN 11 // RAMPS 1.0
|
|
|
|
|
|
#else // RAMPS_V_1_1 or RAMPS_V_1_2
|
|
|
|
|
|
#define HEATER_0_PIN 10 // RAMPS 1.1
|
|
|
|
|
|
#define HEATER_BED_PIN 8 // RAMPS 1.1
|
|
|
|
|
|
#define FAN_PIN 9 // RAMPS 1.1
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#define HEATER_1_PIN -1 |
|
|
#define E0_STEP_PIN 32 |
|
|
#define HEATER_2_PIN -1 |
|
|
#define E0_DIR_PIN 34 |
|
|
#define TEMP_0_PIN 2 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
|
|
|
#define E0_ENABLE_PIN 30 |
|
|
#define TEMP_1_PIN -1 |
|
|
|
|
|
#define TEMP_2_PIN -1 |
|
|
|
|
|
#define TEMP_BED_PIN 1 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
|
|
|
|
|
|
|
|
|
|
|
|
#endif// MOTHERBOARD == 33 || MOTHERBOARD == 34
|
|
|
#define SDPOWER 48 |
|
|
|
|
|
#define SDSS 53 |
|
|
|
|
|
#define LED_PIN 13 |
|
|
|
|
|
#define PS_ON_PIN -1 |
|
|
|
|
|
#define KILL_PIN -1 |
|
|
|
|
|
|
|
|
|
|
|
#ifdef RAMPS_V_1_0 // RAMPS_V_1_0
|
|
|
|
|
|
#define HEATER_0_PIN 12 // RAMPS 1.0
|
|
|
|
|
|
#define HEATER_BED_PIN -1 // RAMPS 1.0
|
|
|
|
|
|
#define FAN_PIN 11 // RAMPS 1.0
|
|
|
|
|
|
#else // RAMPS_V_1_1 or RAMPS_V_1_2
|
|
|
|
|
|
#define HEATER_0_PIN 10 // RAMPS 1.1
|
|
|
|
|
|
#define HEATER_BED_PIN 8 // RAMPS 1.1
|
|
|
|
|
|
#define FAN_PIN 9 // RAMPS 1.1
|
|
|
|
|
|
#endif |
|
|
|
|
|
#define HEATER_1_PIN -1 |
|
|
|
|
|
#define HEATER_2_PIN -1 |
|
|
|
|
|
#define TEMP_0_PIN 2 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
|
|
|
|
|
|
#define TEMP_1_PIN -1 |
|
|
|
|
|
#define TEMP_2_PIN -1 |
|
|
|
|
|
#define TEMP_BED_PIN 1 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
|
|
|
|
|
|
|
|
|
|
|
|
#endif // MOTHERBOARD == 33 || MOTHERBOARD == 34 || MOTHERBOARD == 77
|
|
|
|
|
|
|
|
|
// SPI for Max6675 Thermocouple
|
|
|
// SPI for Max6675 Thermocouple
|
|
|
|
|
|
|
|
@ -522,7 +577,9 @@ |
|
|
#define MAX6675_SS 49 |
|
|
#define MAX6675_SS 49 |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
#endif//MOTHERBOARD == 3 || MOTHERBOARD == 33 || MOTHERBOARD == 34
|
|
|
#endif //MOTHERBOARD == 3 || MOTHERBOARD == 33 || MOTHERBOARD == 34 || MOTHERBOARD == 77
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/****************************************************************************************
|
|
|
/****************************************************************************************
|
|
|
* Duemilanove w/ ATMega328P pin assignment |
|
|
* Duemilanove w/ ATMega328P pin assignment |
|
|