123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158 |
- #ifndef _CONFIG_PINS_H_
- #define _CONFIG_PINS_H_
-
- // from https://reprap.org/wiki/RAMPS_1.4
-
- // For RAMPS 1.4
- #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
-
- #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 62
- #define Z_MIN_PIN -1 // 18
- #define Z_MAX_PIN 19
-
- //extruder 1
- #define E0_STEP_PIN 26
- #define E0_DIR_PIN 28
- #define E0_ENABLE_PIN 24
-
- // use the remaining z endstop pin for e axis
- #define E_MIN_PIN 18
- #define E_MAX_PIN -1
-
- //extruder 2
- #define E1_STEP_PIN 36
- #define E1_DIR_PIN 34
- #define E1_ENABLE_PIN 30
-
- //ChipSelect, Hardware SS Pin on Mega, 10 for Arduino Boards, always kept as output
- #define SDCS_PIN 53
-
- #define LED_PIN 13
-
- #define FAN_PIN 8
-
- #define PS_ON_PIN 12 //ATX , awake=LOW, SLEEP=High
-
- #define HEATER_0_PIN 10 // Extruder Heater
- #define HEATER_1_PIN 9
-
- #define TEMP_0_PIN 13 // ANALOG NUMBERING
- #define TEMP_1_PIN 14 // ANALOG NUMBERING
-
- #ifdef USE_20X4_TEXT_LCD
-
- // from https://reprap.org/wiki/RepRapDiscount_Smart_Controller
-
- //STOP / KILL button
- #define KILL_PIN 41 //[RAMPS14-SMART-ADAPTER]
-
- //lcd pins
- #define LCD_PINS_RS 16 //[RAMPS14-SMART-ADAPTER]
- #define LCD_PINS_ENABLE 17 //[RAMPS14-SMART-ADAPTER]
- #define LCD_PINS_D4 23 //[RAMPS14-SMART-ADAPTER]
- #define LCD_PINS_D5 25 //[RAMPS14-SMART-ADAPTER]
- #define LCD_PINS_D6 27 //[RAMPS14-SMART-ADAPTER]
- #define LCD_PINS_D7 29 //[RAMPS14-SMART-ADAPTER]
-
- //encoder pins
- #define BTN_EN1 31 //[RAMPS14-SMART-ADAPTER]
- #define BTN_EN2 33 //[RAMPS14-SMART-ADAPTER]
- #define BTN_ENC 35 //[RAMPS14-SMART-ADAPTER]
-
- //beeper
- #define BEEPER 37 //[RAMPS14-SMART-ADAPTER] / 37 = enabled; -1 = dissabled / (if you don't like the beep sound ;-)
-
- //SD card detect pin
- #define SDCARDDETECT 49 //[RAMPS14-SMART-ADAPTER]
-
- #endif // USE_20X4_TEXT_LCD
-
- #ifdef USE_FULL_GRAPHIC_LCD
-
- // based on https://reprap.org/wiki/RepRapDiscount_Full_Graphic_Smart_Controller
-
- // STOP / KILL button
- #define KILL_PIN 41
-
- // lcd pins
- #define LCD_PINS_CS 16
- #define LCD_PINS_MOSI 17
- #define LCD_PINS_SCK 23
-
- // encoder pins
- #define BTN_EN1 31
- #define BTN_EN2 33
- #define BTN_ENC 35
-
- // beeper
- #define BEEPER 37
-
- #endif // USE_FULL_GRAPHIC_LCD
-
- #endif // _CONFIG_PINS_H_
-
- #if ((X_MIN_PIN != -1) && (X_MAX_PIN != -1)) || ((X_MIN_PIN == -1) && (X_MAX_PIN == -1))
- #error define one of X_MIN_PIN or X_MAX_PIN
- #endif
-
- #if ((Y_MIN_PIN != -1) && (Y_MAX_PIN != -1)) || ((Y_MIN_PIN == -1) && (Y_MAX_PIN == -1))
- #error define one of Y_MIN_PIN or Y_MAX_PIN
- #endif
-
- #if ((Z_MIN_PIN != -1) && (Z_MAX_PIN != -1)) || ((Z_MIN_PIN == -1) && (Z_MAX_PIN == -1))
- #error define one of Z_MIN_PIN or Z_MAX_PIN
- #endif
-
- #if ((E_MIN_PIN != -1) && (E_MAX_PIN != -1)) || ((E_MIN_PIN == -1) && (E_MAX_PIN == -1))
- #error define one of E_MIN_PIN or E_MAX_PIN
- #endif
-
- #if (X_MIN_PIN == -1)
- #define X_HOMING_DIR 1.0
- #define X_ENDSTOP_PIN X_MAX_PIN
- #else
- #define X_HOMING_DIR -1.0
- #define X_ENDSTOP_PIN X_MIN_PIN
- #endif
-
- #if (Y_MIN_PIN == -1)
- #define Y_HOMING_DIR 1.0
- #define Y_ENDSTOP_PIN Y_MAX_PIN
- #else
- #define Y_HOMING_DIR -1.0
- #define Y_ENDSTOP_PIN Y_MIN_PIN
- #endif
-
- #if (Z_MIN_PIN == -1)
- #define Z_HOMING_DIR 1.0
- #define Z_ENDSTOP_PIN Z_MAX_PIN
- #else
- #define Z_HOMING_DIR -1.0
- #define Z_ENDSTOP_PIN Z_MIN_PIN
- #endif
-
- #if (E_MIN_PIN == -1)
- #define E_HOMING_DIR 1.0
- #define E_ENDSTOP_PIN E_MAX_PIN
- #else
- #define E_HOMING_DIR -1.0
- #define E_ENDSTOP_PIN E_MIN_PIN
- #endif
-
- #ifdef KILL_PIN
- #if (KILL_PIN == -1)
- #undef KILL_PIN
- #endif
- #endif // KILL_PIN
|