pins.h 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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 == 100 //100 - orig 301
  22. #include "pins_Rambo.h"
  23. #endif //MOTHERBOARD == 100
  24. #if MOTHERBOARD == 200 //200 - orig 102
  25. #include "pins_Rambo_1_0.h"
  26. #endif //MOTHERBOARD == 200
  27. #if MOTHERBOARD == 203 //203 - orig 302
  28. #include "pins_Rambo_1_3.h"
  29. #endif //MOTHERBOARD == 203
  30. #if MOTHERBOARD == 303 //303 - orig 300
  31. #include "pins_Einy_0_3.h"
  32. #endif //MOTHERBOARD == 303
  33. #if MOTHERBOARD == 304 //304 - orig 299
  34. #include "pins_Einy_0_4.h"
  35. #endif //MOTHERBOARD == 304
  36. #if MOTHERBOARD == 305 //305 - orig 298
  37. #include "pins_Einy_0_4.h"
  38. #endif //MOTHERBOARD == 305
  39. #ifndef KNOWN_BOARD
  40. #error Unknown MOTHERBOARD value in configuration.h
  41. #endif
  42. //List of pins which to ignore when asked to change by gcode, 0 and 1 are RX and TX, do not mess with those!
  43. #define _E0_PINS E0_STEP_PIN, E0_DIR_PIN, E0_ENABLE_PIN, HEATER_0_PIN,
  44. #if EXTRUDERS > 1
  45. #define _E1_PINS E1_STEP_PIN, E1_DIR_PIN, E1_ENABLE_PIN, HEATER_1_PIN,
  46. #else
  47. #define _E1_PINS
  48. #endif
  49. #if EXTRUDERS > 2
  50. #define _E2_PINS E2_STEP_PIN, E2_DIR_PIN, E2_ENABLE_PIN, HEATER_2_PIN,
  51. #else
  52. #define _E2_PINS
  53. #endif
  54. #ifdef X_STOP_PIN
  55. #if X_HOME_DIR < 0
  56. #define X_MIN_PIN X_STOP_PIN
  57. #define X_MAX_PIN -1
  58. #else
  59. #define X_MIN_PIN -1
  60. #define X_MAX_PIN X_STOP_PIN
  61. #endif
  62. #endif
  63. #ifdef Y_STOP_PIN
  64. #if Y_HOME_DIR < 0
  65. #define Y_MIN_PIN Y_STOP_PIN
  66. #define Y_MAX_PIN -1
  67. #else
  68. #define Y_MIN_PIN -1
  69. #define Y_MAX_PIN Y_STOP_PIN
  70. #endif
  71. #endif
  72. #ifdef Z_STOP_PIN
  73. #if Z_HOME_DIR < 0
  74. #define Z_MIN_PIN Z_STOP_PIN
  75. #define Z_MAX_PIN -1
  76. #else
  77. #define Z_MIN_PIN -1
  78. #define Z_MAX_PIN Z_STOP_PIN
  79. #endif
  80. #endif
  81. #ifdef DISABLE_MAX_ENDSTOPS
  82. #define X_MAX_PIN -1
  83. #define Y_MAX_PIN -1
  84. #define Z_MAX_PIN -1
  85. #endif
  86. #ifdef DISABLE_MIN_ENDSTOPS
  87. #define X_MIN_PIN -1
  88. #define Y_MIN_PIN -1
  89. #define Z_MIN_PIN -1
  90. #endif
  91. #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, \
  92. HEATER_BED_PIN, FAN_PIN, \
  93. _E0_PINS _E1_PINS _E2_PINS \
  94. analogInputToDigitalPin(TEMP_0_PIN), analogInputToDigitalPin(TEMP_1_PIN), analogInputToDigitalPin(TEMP_2_PIN), analogInputToDigitalPin(TEMP_BED_PIN) }
  95. #endif //__PINS_H