My Marlin configs for Fabrikator Mini and CTC i3 Pro B
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

pins_RAMBO.h 3.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. /**
  2. * Rambo pin assignments
  3. */
  4. #ifndef __AVR_ATmega2560__
  5. #error Oops! Make sure you have 'Arduino Mega 2560' selected from the 'Tools -> Boards' menu.
  6. #endif
  7. #define LARGE_FLASH true
  8. // Servo support
  9. #ifdef NUM_SERVOS
  10. #define SERVO0_PIN 22 //motor header MX1
  11. #if NUM_SERVOS > 1
  12. #define SERVO1_PIN 23 //Motor header MX2
  13. #if NUM_SERVOS > 2
  14. #define SERVO2_PIN 24 //Motor header MX3
  15. #if NUM_SERVOS > 3
  16. #define SERVO2_PIN 5 //pwm header pin 5
  17. #endif
  18. #endif
  19. #endif
  20. #endif
  21. #define X_STEP_PIN 37
  22. #define X_DIR_PIN 48
  23. #define X_MIN_PIN 12
  24. #define X_MAX_PIN 24
  25. #define X_ENABLE_PIN 29
  26. #define X_MS1_PIN 40
  27. #define X_MS2_PIN 41
  28. #define Y_STEP_PIN 36
  29. #define Y_DIR_PIN 49
  30. #define Y_MIN_PIN 11
  31. #define Y_MAX_PIN 23
  32. #define Y_ENABLE_PIN 28
  33. #define Y_MS1_PIN 69
  34. #define Y_MS2_PIN 39
  35. #define Z_STEP_PIN 35
  36. #define Z_DIR_PIN 47
  37. #define Z_MIN_PIN 10
  38. #define Z_MAX_PIN 30
  39. #define Z_ENABLE_PIN 27
  40. #define Z_MS1_PIN 68
  41. #define Z_MS2_PIN 67
  42. #define HEATER_BED_PIN 3
  43. #define TEMP_BED_PIN 2
  44. #define HEATER_0_PIN 9
  45. #define TEMP_0_PIN 0
  46. #define HEATER_1_PIN 7
  47. #define TEMP_1_PIN 1
  48. #ifdef BARICUDA
  49. #define HEATER_2_PIN 6
  50. #else
  51. #define HEATER_2_PIN -1
  52. #endif
  53. #define TEMP_2_PIN -1
  54. #define E0_STEP_PIN 34
  55. #define E0_DIR_PIN 43
  56. #define E0_ENABLE_PIN 26
  57. #define E0_MS1_PIN 65
  58. #define E0_MS2_PIN 66
  59. #define E1_STEP_PIN 33
  60. #define E1_DIR_PIN 42
  61. #define E1_ENABLE_PIN 25
  62. #define E1_MS1_PIN 63
  63. #define E1_MS2_PIN 64
  64. #define DIGIPOTSS_PIN 38
  65. #define DIGIPOT_CHANNELS {4,5,3,0,1} // X Y Z E0 E1 digipot channels to stepper driver mapping
  66. #define SDPOWER -1
  67. #define SDSS 53
  68. #define LED_PIN 13
  69. #define FAN_PIN 8
  70. /**********************************************************
  71. Fan Pins
  72. Fan_0 8
  73. Fan_1 6
  74. Fan_2 2
  75. ***********************************************************/
  76. #define PS_ON_PIN 4
  77. #define KILL_PIN -1 //80 with Smart Controller LCD
  78. #define SUICIDE_PIN -1 //PIN that has to be turned on right after start, to keep power flowing.
  79. #ifdef ULTRA_LCD
  80. #define KILL_PIN 80
  81. #ifdef NEWPANEL
  82. //arduino pin which triggers an piezzo beeper
  83. #define BEEPER 79 // Beeper on AUX-4
  84. #define LCD_PINS_RS 70
  85. #define LCD_PINS_ENABLE 71
  86. #define LCD_PINS_D4 72
  87. #define LCD_PINS_D5 73
  88. #define LCD_PINS_D6 74
  89. #define LCD_PINS_D7 75
  90. //buttons are directly attached using AUX-2
  91. #define BTN_EN1 76
  92. #define BTN_EN2 77
  93. #define BTN_ENC 78 //the click
  94. #define BLEN_C 2
  95. #define BLEN_B 1
  96. #define BLEN_A 0
  97. #define SDCARDDETECT 81 // Ramps does not use this port
  98. #else //!NEWPANEL - old style panel with shift register
  99. //arduino pin witch triggers an piezzo beeper
  100. #define BEEPER 33 No Beeper added
  101. //buttons are attached to a shift register
  102. // Not wired this yet
  103. // #define SHIFT_CLK 38
  104. // #define SHIFT_LD 42
  105. // #define SHIFT_OUT 40
  106. // #define SHIFT_EN 17
  107. #define LCD_PINS_RS 75
  108. #define LCD_PINS_ENABLE 17
  109. #define LCD_PINS_D4 23
  110. #define LCD_PINS_D5 25
  111. #define LCD_PINS_D6 27
  112. #define LCD_PINS_D7 29
  113. //bits in the shift register that carry the buttons for:
  114. // left up center down right red
  115. #define BL_LE 7
  116. #define BL_UP 6
  117. #define BL_MI 5
  118. #define BL_DW 4
  119. #define BL_RI 3
  120. #define BL_ST 2
  121. #define BLEN_B 1
  122. #define BLEN_A 0
  123. #endif // !NEWPANEL
  124. #endif // ULTRA_LCD
  125. #ifdef FILAMENT_SENSOR
  126. //Filip added pin for Filament sensor analog input
  127. #define FILWIDTH_PIN 3
  128. #endif