|
|
@ -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,14 +308,55 @@
|
|
|
|
#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
|
|
|
|
|
|
|
|
|
|
|
|
#if MOTHERBOARD == 33 || MOTHERBOARD == 34 || MOTHERBOARD == 77
|
|
|
|
|
|
|
|
|
|
|
|
#define LARGE_FLASH true
|
|
|
|
#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 Y_STEP_PIN 60
|
|
|
|
|
|
|
|
#define Y_DIR_PIN 61
|
|
|
|
|
|
|
|
#define Y_ENABLE_PIN 56
|
|
|
|
|
|
|
|
#define Y_MIN_PIN 14
|
|
|
|
|
|
|
|
#define Y_MAX_PIN -1 //15
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define Z_STEP_PIN 46
|
|
|
|
|
|
|
|
#define Z_DIR_PIN 48
|
|
|
|
|
|
|
|
#define Z_ENABLE_PIN 63
|
|
|
|
|
|
|
|
#define Z_MIN_PIN 18
|
|
|
|
|
|
|
|
#define Z_MAX_PIN -1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#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 25//53
|
|
|
|
|
|
|
|
#define LED_PIN 13
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define BEEPER 33
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
|
|
|
|
#define X_STEP_PIN 54
|
|
|
|
#define X_STEP_PIN 54
|
|
|
|
#define X_DIR_PIN 55
|
|
|
|
#define X_DIR_PIN 55
|
|
|
|
#define X_ENABLE_PIN 38
|
|
|
|
#define X_ENABLE_PIN 38
|
|
|
@ -349,6 +390,7 @@
|
|
|
|
#define SDPOWER -1
|
|
|
|
#define SDPOWER -1
|
|
|
|
#define SDSS 53
|
|
|
|
#define SDSS 53
|
|
|
|
#define LED_PIN 13
|
|
|
|
#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
|
|
|
|
|
|
|
|
#if MOTHERBOARD == 77
|
|
|
|
|
|
|
|
#define HEATER_BED_PIN 9 // BED
|
|
|
|
|
|
|
|
#else
|
|
|
|
#define HEATER_BED_PIN 8 // BED
|
|
|
|
#define HEATER_BED_PIN 8 // BED
|
|
|
|
|
|
|
|
#endif
|
|
|
|
#define TEMP_BED_PIN 14 // ANALOG NUMBERING
|
|
|
|
#define TEMP_BED_PIN 14 // ANALOG NUMBERING
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -441,6 +496,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
#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
|
|
|
@ -500,7 +556,6 @@
|
|
|
|
#define HEATER_BED_PIN 8 // RAMPS 1.1
|
|
|
|
#define HEATER_BED_PIN 8 // RAMPS 1.1
|
|
|
|
#define FAN_PIN 9 // RAMPS 1.1
|
|
|
|
#define FAN_PIN 9 // RAMPS 1.1
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#define HEATER_1_PIN -1
|
|
|
|
#define HEATER_1_PIN -1
|
|
|
|
#define HEATER_2_PIN -1
|
|
|
|
#define HEATER_2_PIN -1
|
|
|
|
#define TEMP_0_PIN 2 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
|
|
|
|
#define TEMP_0_PIN 2 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
|
|
|
@ -508,7 +563,7 @@
|
|
|
|
#define TEMP_2_PIN -1
|
|
|
|
#define TEMP_2_PIN -1
|
|
|
|
#define TEMP_BED_PIN 1 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
|
|
|
|
#define TEMP_BED_PIN 1 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
|
|
|
|
|
|
|
|
|
|
|
|
#endif// MOTHERBOARD == 33 || MOTHERBOARD == 34
|
|
|
|
#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
|
|
|
|