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.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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. #ifdef USE_20X4_TEXT_LCD
  38. // from https://reprap.org/wiki/RepRapDiscount_Smart_Controller
  39. //STOP / KILL button
  40. #define KILL_PIN 41 //[RAMPS14-SMART-ADAPTER]
  41. //lcd pins
  42. #define LCD_PINS_RS 16 //[RAMPS14-SMART-ADAPTER]
  43. #define LCD_PINS_ENABLE 17 //[RAMPS14-SMART-ADAPTER]
  44. #define LCD_PINS_D4 23 //[RAMPS14-SMART-ADAPTER]
  45. #define LCD_PINS_D5 25 //[RAMPS14-SMART-ADAPTER]
  46. #define LCD_PINS_D6 27 //[RAMPS14-SMART-ADAPTER]
  47. #define LCD_PINS_D7 29 //[RAMPS14-SMART-ADAPTER]
  48. //encoder pins
  49. #define BTN_EN1 31 //[RAMPS14-SMART-ADAPTER]
  50. #define BTN_EN2 33 //[RAMPS14-SMART-ADAPTER]
  51. #define BTN_ENC 35 //[RAMPS14-SMART-ADAPTER]
  52. //beeper
  53. #define BEEPER 37 //[RAMPS14-SMART-ADAPTER] / 37 = enabled; -1 = dissabled / (if you don't like the beep sound ;-)
  54. //SD card detect pin
  55. #define SDCARDDETECT 49 //[RAMPS14-SMART-ADAPTER]
  56. #endif // USE_20X4_TEXT_LCD
  57. #ifdef USE_FULL_GRAPHIC_LCD
  58. // TODO
  59. #endif // USE_FULL_GRAPHIC_LCD
  60. #endif // _CONFIG_PINS_H_
  61. #if ((X_MIN_PIN != -1) && (X_MAX_PIN != -1)) || ((X_MIN_PIN == -1) && (X_MAX_PIN == -1))
  62. #error define one of X_MIN_PIN or X_MAX_PIN
  63. #endif
  64. #if ((Y_MIN_PIN != -1) && (Y_MAX_PIN != -1)) || ((Y_MIN_PIN == -1) && (Y_MAX_PIN == -1))
  65. #error define one of Y_MIN_PIN or Y_MAX_PIN
  66. #endif