My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

pins_RAMBO.h 4.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
  4. *
  5. * Based on Sprinter and grbl.
  6. * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
  7. *
  8. * This program is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation, either version 3 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  20. *
  21. */
  22. /**
  23. * Rambo pin assignments
  24. */
  25. #ifndef __AVR_ATmega2560__
  26. #error Oops! Make sure you have 'Arduino Mega 2560' selected from the 'Tools -> Boards' menu.
  27. #endif
  28. #define LARGE_FLASH true
  29. // Servo support
  30. #define SERVO0_PIN 22 // Motor header MX1
  31. #define SERVO1_PIN 23 // Motor header MX2
  32. #define SERVO2_PIN 24 // Motor header MX3
  33. #define SERVO3_PIN 5 // PWM header pin 5
  34. #if ENABLED(Z_PROBE_SLED)
  35. #define SLED_PIN -1
  36. #endif
  37. #undef X_MS1_PIN
  38. #undef X_MS2_PIN
  39. #undef Y_MS1_PIN
  40. #undef Y_MS2_PIN
  41. #undef Z_MS1_PIN
  42. #undef Z_MS2_PIN
  43. #undef E0_MS1_PIN
  44. #undef E0_MS2_PIN
  45. #undef E1_MS1_PIN
  46. #undef E1_MS2_PIN
  47. #define X_STEP_PIN 37
  48. #define X_DIR_PIN 48
  49. #define X_MIN_PIN 12
  50. #define X_MAX_PIN 24
  51. #define X_ENABLE_PIN 29
  52. #define X_MS1_PIN 40
  53. #define X_MS2_PIN 41
  54. #define Y_STEP_PIN 36
  55. #define Y_DIR_PIN 49
  56. #define Y_MIN_PIN 11
  57. #define Y_MAX_PIN 23
  58. #define Y_ENABLE_PIN 28
  59. #define Y_MS1_PIN 69
  60. #define Y_MS2_PIN 39
  61. #define Z_STEP_PIN 35
  62. #define Z_DIR_PIN 47
  63. #define Z_MIN_PIN 10
  64. #define Z_MAX_PIN 30
  65. #define Z_ENABLE_PIN 27
  66. #define Z_MS1_PIN 68
  67. #define Z_MS2_PIN 67
  68. #define HEATER_BED_PIN 3
  69. #define TEMP_BED_PIN 2
  70. #define HEATER_0_PIN 9
  71. #define TEMP_0_PIN 0
  72. #define HEATER_1_PIN 7
  73. #define TEMP_1_PIN 1
  74. #if ENABLED(BARICUDA)
  75. #define HEATER_2_PIN 6
  76. #else
  77. #define HEATER_2_PIN -1
  78. #endif
  79. #define TEMP_2_PIN -1
  80. #define E0_STEP_PIN 34
  81. #define E0_DIR_PIN 43
  82. #define E0_ENABLE_PIN 26
  83. #define E0_MS1_PIN 65
  84. #define E0_MS2_PIN 66
  85. #define E1_STEP_PIN 33
  86. #define E1_DIR_PIN 42
  87. #define E1_ENABLE_PIN 25
  88. #define E1_MS1_PIN 63
  89. #define E1_MS2_PIN 64
  90. #define DIGIPOTSS_PIN 38
  91. #define DIGIPOT_CHANNELS {4,5,3,0,1} // X Y Z E0 E1 digipot channels to stepper driver mapping
  92. #define SDPOWER -1
  93. #define SDSS 53
  94. #define LED_PIN 13
  95. #define FAN_PIN 8
  96. #define FILWIDTH_PIN 3 // ANALOG NUMBERING
  97. /**********************************************************
  98. Fan Pins
  99. Fan_0 8
  100. Fan_1 6
  101. Fan_2 2
  102. ***********************************************************/
  103. #define PS_ON_PIN 4
  104. #define KILL_PIN -1 //80 with Smart Controller LCD
  105. #define SUICIDE_PIN -1 //PIN that has to be turned on right after start, to keep power flowing.
  106. #if ENABLED(ULTRA_LCD)
  107. #define KILL_PIN 80
  108. #if ENABLED(NEWPANEL)
  109. #define BEEPER_PIN 79 // Beeper on AUX-4
  110. #define LCD_PINS_RS 70
  111. #define LCD_PINS_ENABLE 71
  112. #define LCD_PINS_D4 72
  113. #define LCD_PINS_D5 73
  114. #define LCD_PINS_D6 74
  115. #define LCD_PINS_D7 75
  116. //buttons are directly attached using AUX-2
  117. #define BTN_EN1 76
  118. #define BTN_EN2 77
  119. #define BTN_ENC 78 //the click
  120. #define BLEN_C 2
  121. #define BLEN_B 1
  122. #define BLEN_A 0
  123. #define SD_DETECT_PIN 81 // Ramps doesn't use this
  124. #else //!NEWPANEL - old style panel with shift register
  125. #define BEEPER_PIN 33 // No Beeper added
  126. //buttons are attached to a shift register
  127. // Not wired yet
  128. //#define SHIFT_CLK 38
  129. //#define SHIFT_LD 42
  130. //#define SHIFT_OUT 40
  131. //#define SHIFT_EN 17
  132. #define LCD_PINS_RS 75
  133. #define LCD_PINS_ENABLE 17
  134. #define LCD_PINS_D4 23
  135. #define LCD_PINS_D5 25
  136. #define LCD_PINS_D6 27
  137. #define LCD_PINS_D7 29
  138. //bits in the shift register that carry the buttons for:
  139. // left up center down right red
  140. #define BL_LE 7
  141. #define BL_UP 6
  142. #define BL_MI 5
  143. #define BL_DW 4
  144. #define BL_RI 3
  145. #define BL_ST 2
  146. #define BLEN_B 1
  147. #define BLEN_A 0
  148. #endif // !NEWPANEL
  149. #endif // ULTRA_LCD
  150. #if ENABLED(VIKI2) || ENABLED(miniVIKI)
  151. #define BEEPER_PIN 44
  152. // Pins for DOGM SPI LCD Support
  153. #define DOGLCD_A0 70
  154. #define DOGLCD_CS 71
  155. #define LCD_SCREEN_ROT_180
  156. //The encoder and click button
  157. #define BTN_EN1 85
  158. #define BTN_EN2 84
  159. #define BTN_ENC 83 //the click switch
  160. #define SD_DETECT_PIN -1 // Pin 72 if using easy adapter board
  161. #if ENABLED(TEMP_STAT_LEDS)
  162. #define STAT_LED_RED 22
  163. #define STAT_LED_BLUE 32
  164. #endif
  165. #endif // VIKI2/miniVIKI