No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

config_pins.h 2.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. #ifndef _CONFIG_PINS_H_
  2. #define _CONFIG_PINS_H_
  3. // from https://reprap.org/wiki/RAMPS_1.4
  4. // For RAMPS 1.4
  5. #define X_STEP_PIN 54
  6. #define X_DIR_PIN 55
  7. #define X_ENABLE_PIN 38
  8. #define X_MIN_PIN 3
  9. #define X_MAX_PIN -1 // 2
  10. #define Y_STEP_PIN 60
  11. #define Y_DIR_PIN 61
  12. #define Y_ENABLE_PIN 56
  13. #define Y_MIN_PIN 14
  14. #define Y_MAX_PIN -1 // 15
  15. #define Z_STEP_PIN 46
  16. #define Z_DIR_PIN 48
  17. #define Z_ENABLE_PIN 62
  18. #define Z_MIN_PIN -1 // 18
  19. #define Z_MAX_PIN 19
  20. //extruder 1
  21. #define E0_STEP_PIN 26
  22. #define E0_DIR_PIN 28
  23. #define E0_ENABLE_PIN 24
  24. //extruder 2
  25. #define E1_STEP_PIN 36
  26. #define E1_DIR_PIN 34
  27. #define E1_ENABLE_PIN 30
  28. //ChipSelect, Hardware SS Pin on Mega, 10 for Arduino Boards, always kept as output
  29. #define SDCS_PIN 53
  30. #define LED_PIN 13
  31. #define FAN_PIN 9
  32. #define PS_ON_PIN 12 //ATX , awake=LOW, SLEEP=High
  33. #define HEATER_0_PIN 10 // Extruder Heater
  34. #define HEATER_1_PIN 8
  35. #define TEMP_0_PIN 13 // ANALOG NUMBERING
  36. #define TEMP_1_PIN 14 // ANALOG NUMBERING
  37. // from https://reprap.org/wiki/RepRapDiscount_Smart_Controller
  38. //STOP / KILL button
  39. #define KILL_PIN 41 //[RAMPS14-SMART-ADAPTER]
  40. //lcd pins
  41. #define LCD_PINS_RS 16 //[RAMPS14-SMART-ADAPTER]
  42. #define LCD_PINS_ENABLE 17 //[RAMPS14-SMART-ADAPTER]
  43. #define LCD_PINS_D4 23 //[RAMPS14-SMART-ADAPTER]
  44. #define LCD_PINS_D5 25 //[RAMPS14-SMART-ADAPTER]
  45. #define LCD_PINS_D6 27 //[RAMPS14-SMART-ADAPTER]
  46. #define LCD_PINS_D7 29 //[RAMPS14-SMART-ADAPTER]
  47. //encoder pins
  48. #define BTN_EN1 31 //[RAMPS14-SMART-ADAPTER]
  49. #define BTN_EN2 33 //[RAMPS14-SMART-ADAPTER]
  50. #define BTN_ENC 35 //[RAMPS14-SMART-ADAPTER]
  51. //beeper
  52. #define BEEPER 37 //[RAMPS14-SMART-ADAPTER] / 37 = enabled; -1 = dissabled / (if you don't like the beep sound ;-)
  53. //SD card detect pin
  54. #define SDCARDDETECT 49 //[RAMPS14-SMART-ADAPTER]
  55. #endif // _CONFIG_PINS_H_
  56. #if ((X_MIN_PIN != -1) && (X_MAX_PIN != -1)) || ((X_MIN_PIN == -1) && (X_MAX_PIN == -1))
  57. #error define one of X_MIN_PIN and X_MAX_PIN
  58. #endif
  59. #if ((Y_MIN_PIN != -1) && (Y_MAX_PIN != -1)) || ((Y_MIN_PIN == -1) && (Y_MAX_PIN == -1))
  60. #error define one of Y_MIN_PIN and Y_MAX_PIN
  61. #endif