pins.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. #ifndef PINS_H
  2. #define PINS_H
  3. #include "boards.h"
  4. #if !MB(5DPRINT)
  5. #define X_MS1_PIN -1
  6. #define X_MS2_PIN -1
  7. #define Y_MS1_PIN -1
  8. #define Y_MS2_PIN -1
  9. #define Z_MS1_PIN -1
  10. #define Z_MS2_PIN -1
  11. #define E0_MS1_PIN -1
  12. #define E0_MS2_PIN -1
  13. #define E1_MS1_PIN -1
  14. #define E1_MS2_PIN -1
  15. #define DIGIPOTSS_PIN -1
  16. #endif
  17. #define LARGE_FLASH true
  18. /*****************************************************************
  19. * Rambo Pin Assignments 1.3
  20. ******************************************************************/
  21. #if MOTHERBOARD == BOARD_RAMBO_MINI_1_0 //200 - orig 102
  22. #include "pins_Rambo_1_0.h"
  23. #endif //MOTHERBOARD == BOARD_RAMBO_MINI_1_0
  24. #if MOTHERBOARD == BOARD_RAMBO_MINI_1_3 //203 - orig 302
  25. #include "pins_Rambo_1_3.h"
  26. #endif //MOTHERBOARD == BOARD_RAMBO_MINI_1_3
  27. #if MOTHERBOARD == BOARD_EINSY_1_0a //310 - new
  28. #include "pins_Einsy_1_0.h"
  29. #endif //MOTHERBOARD == BOARD_EINSY_1_0a
  30. #ifndef KNOWN_BOARD
  31. #error Unknown MOTHERBOARD value in configuration.h
  32. #endif
  33. //List of pins which to ignore when asked to change by gcode, 0 and 1 are RX and TX, do not mess with those!
  34. #define _E0_PINS E0_STEP_PIN, E0_DIR_PIN, E0_ENABLE_PIN, HEATER_0_PIN,
  35. #if EXTRUDERS > 1
  36. #define _E1_PINS E1_STEP_PIN, E1_DIR_PIN, E1_ENABLE_PIN, HEATER_1_PIN,
  37. #else
  38. #define _E1_PINS
  39. #endif
  40. #if EXTRUDERS > 2
  41. #define _E2_PINS E2_STEP_PIN, E2_DIR_PIN, E2_ENABLE_PIN, HEATER_2_PIN,
  42. #else
  43. #define _E2_PINS
  44. #endif
  45. #ifdef X_STOP_PIN
  46. #if X_HOME_DIR < 0
  47. #define X_MIN_PIN X_STOP_PIN
  48. #define X_MAX_PIN -1
  49. #else
  50. #define X_MIN_PIN -1
  51. #define X_MAX_PIN X_STOP_PIN
  52. #endif
  53. #endif
  54. #ifdef Y_STOP_PIN
  55. #if Y_HOME_DIR < 0
  56. #define Y_MIN_PIN Y_STOP_PIN
  57. #define Y_MAX_PIN -1
  58. #else
  59. #define Y_MIN_PIN -1
  60. #define Y_MAX_PIN Y_STOP_PIN
  61. #endif
  62. #endif
  63. #ifdef Z_STOP_PIN
  64. #if Z_HOME_DIR < 0
  65. #define Z_MIN_PIN Z_STOP_PIN
  66. #define Z_MAX_PIN -1
  67. #else
  68. #define Z_MIN_PIN -1
  69. #define Z_MAX_PIN Z_STOP_PIN
  70. #endif
  71. #endif
  72. #ifdef DISABLE_MAX_ENDSTOPS
  73. #define X_MAX_PIN -1
  74. #define Y_MAX_PIN -1
  75. #define Z_MAX_PIN -1
  76. #endif
  77. #ifdef DISABLE_MIN_ENDSTOPS
  78. #define X_MIN_PIN -1
  79. #define Y_MIN_PIN -1
  80. #define Z_MIN_PIN -1
  81. #endif
  82. #define SENSITIVE_PINS {0, 1, X_STEP_PIN, X_DIR_PIN, X_ENABLE_PIN, X_MIN_PIN, X_MAX_PIN, Y_STEP_PIN, Y_DIR_PIN, Y_ENABLE_PIN, Y_MIN_PIN, Y_MAX_PIN, Z_STEP_PIN, Z_DIR_PIN, Z_ENABLE_PIN, Z_MIN_PIN, Z_MAX_PIN, PS_ON_PIN, \
  83. HEATER_BED_PIN, FAN_PIN, \
  84. _E0_PINS _E1_PINS _E2_PINS \
  85. analogInputToDigitalPin(TEMP_0_PIN), analogInputToDigitalPin(TEMP_1_PIN), analogInputToDigitalPin(TEMP_2_PIN), analogInputToDigitalPin(TEMP_BED_PIN) }
  86. #endif //__PINS_H