pins.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. #if !defined(SDA_PIN) && (defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__))
  21. #define SDA_PIN 20
  22. #define SCL_PIN 21
  23. #endif
  24. //List of pins which to ignore when asked to change by gcode, 0 and 1 are RX and TX, do not mess with those!
  25. #define _E0_PINS E0_STEP_PIN, E0_DIR_PIN, E0_ENABLE_PIN, HEATER_0_PIN,
  26. #if EXTRUDERS > 1
  27. #define _E1_PINS E1_STEP_PIN, E1_DIR_PIN, E1_ENABLE_PIN, HEATER_1_PIN,
  28. #else
  29. #define _E1_PINS
  30. #endif
  31. #if EXTRUDERS > 2
  32. #define _E2_PINS E2_STEP_PIN, E2_DIR_PIN, E2_ENABLE_PIN, HEATER_2_PIN,
  33. #else
  34. #define _E2_PINS
  35. #endif
  36. #ifdef X_STOP_PIN
  37. #if X_HOME_DIR < 0
  38. #define X_MIN_PIN X_STOP_PIN
  39. #define X_MAX_PIN -1
  40. #else
  41. #define X_MIN_PIN -1
  42. #define X_MAX_PIN X_STOP_PIN
  43. #endif
  44. #endif
  45. #ifdef Y_STOP_PIN
  46. #if Y_HOME_DIR < 0
  47. #define Y_MIN_PIN Y_STOP_PIN
  48. #define Y_MAX_PIN -1
  49. #else
  50. #define Y_MIN_PIN -1
  51. #define Y_MAX_PIN Y_STOP_PIN
  52. #endif
  53. #endif
  54. #ifdef Z_STOP_PIN
  55. #if Z_HOME_DIR < 0
  56. #define Z_MIN_PIN Z_STOP_PIN
  57. #define Z_MAX_PIN -1
  58. #else
  59. #define Z_MIN_PIN -1
  60. #define Z_MAX_PIN Z_STOP_PIN
  61. #endif
  62. #endif
  63. #ifdef DISABLE_MAX_ENDSTOPS
  64. #define X_MAX_PIN -1
  65. #define Y_MAX_PIN -1
  66. #define Z_MAX_PIN -1
  67. #endif
  68. #ifdef DISABLE_MIN_ENDSTOPS
  69. #define X_MIN_PIN -1
  70. #define Y_MIN_PIN -1
  71. #define Z_MIN_PIN -1
  72. #endif
  73. #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, \
  74. HEATER_BED_PIN, FAN_PIN, \
  75. _E0_PINS _E1_PINS _E2_PINS \
  76. analogInputToDigitalPin(TEMP_0_PIN), analogInputToDigitalPin(TEMP_1_PIN), analogInputToDigitalPin(TEMP_2_PIN), analogInputToDigitalPin(TEMP_BED_PIN) }
  77. #endif //__PINS_H