pins.h 2.4 KB

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