My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

pins_RAMBO.h 4.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  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 BOARD_NAME "Rambo"
  29. #define LARGE_FLASH true
  30. // Servo support
  31. #define SERVO0_PIN 22 // Motor header MX1
  32. #define SERVO1_PIN 23 // Motor header MX2
  33. #define SERVO2_PIN 24 // Motor header MX3
  34. #define SERVO3_PIN 5 // PWM header pin 5
  35. #if ENABLED(Z_PROBE_SLED)
  36. #define SLED_PIN -1
  37. #endif
  38. #define X_STEP_PIN 37
  39. #define X_DIR_PIN 48
  40. #define X_MIN_PIN 12
  41. #define X_MAX_PIN 24
  42. #define X_ENABLE_PIN 29
  43. #define X_MS1_PIN 40
  44. #define X_MS2_PIN 41
  45. #define Y_STEP_PIN 36
  46. #define Y_DIR_PIN 49
  47. #define Y_MIN_PIN 11
  48. #define Y_MAX_PIN 23
  49. #define Y_ENABLE_PIN 28
  50. #define Y_MS1_PIN 69
  51. #define Y_MS2_PIN 39
  52. #define Z_STEP_PIN 35
  53. #define Z_DIR_PIN 47
  54. #define Z_MIN_PIN 10
  55. #define Z_MAX_PIN 30
  56. #define Z_ENABLE_PIN 27
  57. #define Z_MS1_PIN 68
  58. #define Z_MS2_PIN 67
  59. #define HEATER_BED_PIN 3
  60. #define TEMP_BED_PIN 2
  61. #define HEATER_0_PIN 9
  62. #define TEMP_0_PIN 0
  63. #define HEATER_1_PIN 7
  64. #define TEMP_1_PIN 1
  65. #if ENABLED(BARICUDA)
  66. #define HEATER_2_PIN 6
  67. #endif
  68. #define E0_STEP_PIN 34
  69. #define E0_DIR_PIN 43
  70. #define E0_ENABLE_PIN 26
  71. #define E0_MS1_PIN 65
  72. #define E0_MS2_PIN 66
  73. #define E1_STEP_PIN 33
  74. #define E1_DIR_PIN 42
  75. #define E1_ENABLE_PIN 25
  76. #define E1_MS1_PIN 63
  77. #define E1_MS2_PIN 64
  78. #define DIGIPOTSS_PIN 38
  79. #define DIGIPOT_CHANNELS {4,5,3,0,1} // X Y Z E0 E1 digipot channels to stepper driver mapping
  80. #define SDSS 53
  81. #define LED_PIN 13
  82. #define FAN_PIN 8
  83. #define FILWIDTH_PIN 3 // ANALOG NUMBERING
  84. /**********************************************************
  85. Fan Pins
  86. Fan_0 8
  87. Fan_1 6
  88. Fan_2 2
  89. ***********************************************************/
  90. #define PS_ON_PIN 4
  91. #if ENABLED(ULTRA_LCD)
  92. #define KILL_PIN 80
  93. #if ENABLED(NEWPANEL)
  94. // Beeper on AUX-4
  95. #define BEEPER_PIN 79
  96. #define LCD_PINS_RS 70
  97. #define LCD_PINS_ENABLE 71
  98. #define LCD_PINS_D4 72
  99. #define LCD_PINS_D5 73
  100. #define LCD_PINS_D6 74
  101. #define LCD_PINS_D7 75
  102. //buttons are directly attached using AUX-2
  103. #define BTN_EN1 76
  104. #define BTN_EN2 77
  105. #define BTN_ENC 78 //the click
  106. #define BLEN_C 2
  107. #define BLEN_B 1
  108. #define BLEN_A 0
  109. #define SD_DETECT_PIN 81 // Ramps doesn't use this
  110. #else //!NEWPANEL - old style panel with shift register
  111. // No Beeper added
  112. #define BEEPER_PIN 33
  113. //buttons are attached to a shift register
  114. // Not wired yet
  115. //#define SHIFT_CLK 38
  116. //#define SHIFT_LD 42
  117. //#define SHIFT_OUT 40
  118. //#define SHIFT_EN 17
  119. #define LCD_PINS_RS 75
  120. #define LCD_PINS_ENABLE 17
  121. #define LCD_PINS_D4 23
  122. #define LCD_PINS_D5 25
  123. #define LCD_PINS_D6 27
  124. #define LCD_PINS_D7 29
  125. //bits in the shift register that carry the buttons for:
  126. // left up center down right red
  127. #define BL_LE 7
  128. #define BL_UP 6
  129. #define BL_MI 5
  130. #define BL_DW 4
  131. #define BL_RI 3
  132. #define BL_ST 2
  133. #define BLEN_B 1
  134. #define BLEN_A 0
  135. #endif // !NEWPANEL
  136. #endif // ULTRA_LCD
  137. #if ENABLED(VIKI2) || ENABLED(miniVIKI)
  138. #define BEEPER_PIN 44
  139. // Pins for DOGM SPI LCD Support
  140. #define DOGLCD_A0 70
  141. #define DOGLCD_CS 71
  142. #define LCD_SCREEN_ROT_180
  143. //The encoder and click button
  144. #define BTN_EN1 85
  145. #define BTN_EN2 84
  146. #define BTN_ENC 83 //the click switch
  147. #define SD_DETECT_PIN -1 // Pin 72 if using easy adapter board
  148. #if ENABLED(TEMP_STAT_LEDS)
  149. #define STAT_LED_RED 22
  150. #define STAT_LED_BLUE 32
  151. #endif
  152. #endif // VIKI2/miniVIKI