Advertisement
Guest User

Untitled

a guest
Mar 18th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.19 KB | None | 0 0
  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. /**
  24. * Einsy-Rambo pin assignments
  25. */
  26.  
  27. #ifndef __AVR_ATmega2560__
  28. #error "Oops! Make sure you have 'Arduino Mega 2560 or Rambo' selected from the 'Tools -> Boards' menu."
  29. #endif
  30.  
  31. #define BOARD_NAME "Einsy Rambo"
  32. #define LARGE_FLASH true
  33.  
  34. //
  35. // TMC2130 Configuration_adv defaults for EinsyRambo
  36. //
  37. #ifndef HAVE_TMC2130
  38. #error Must enable TMC2130 support in Configuration_adv.h for EinsyRambo
  39. #endif
  40.  
  41. // TMC2130 Diag Pins (currently just for reference)
  42. #define X_DIAG_PIN 64
  43. #define Y_DIAG_PIN 69
  44. #define Z_DIAG_PIN 68
  45. #define E0_DIAG_PIN 65
  46.  
  47. //
  48. // Limit Switches
  49. //
  50. #define X_MIN_PIN 64 //12
  51. #define X_MAX_PIN -1
  52. #define Y_MIN_PIN 69 //11
  53. #define Y_MAX_PIN -1
  54. #define Z_MIN_PIN 68 //10
  55. #define Z_MAX_PIN -1
  56.  
  57. //
  58. // Z Probe (when not Z_MIN_PIN)
  59. //
  60. #ifndef Z_MIN_PROBE_PIN
  61. #define Z_MIN_PROBE_PIN 10
  62. #endif
  63.  
  64. //
  65. // Steppers
  66. //
  67. #define X_STEP_PIN 37
  68. #define X_DIR_PIN 49
  69. #define X_ENABLE_PIN 29
  70. #define X_CS_PIN 41
  71.  
  72. #define Y_STEP_PIN 36
  73. #define Y_DIR_PIN 48
  74. #define Y_ENABLE_PIN 28
  75. #define Y_CS_PIN 39
  76.  
  77. #define Z_STEP_PIN 35
  78. #define Z_DIR_PIN 47
  79. #define Z_ENABLE_PIN 27
  80. #define Z_CS_PIN 67
  81.  
  82. #define E0_STEP_PIN 34
  83. #define E0_DIR_PIN 43
  84. #define E0_ENABLE_PIN 26
  85. #define E0_CS_PIN 66
  86.  
  87. #define E1_STEP_PIN -1
  88. #define E1_DIR_PIN -1
  89. #define E1_ENABLE_PIN -1
  90.  
  91. // Microstepping pins - uses SPI instead
  92. #define X_MS1_PIN -1
  93. #define X_MS2_PIN -1
  94. #define Y_MS1_PIN -1
  95. #define Y_MS2_PIN -1
  96. #define Z_MS1_PIN -1
  97. #define Z_MS2_PIN -1
  98. #define E0_MS1_PIN -1
  99. #define E0_MS2_PIN -1
  100.  
  101. //
  102. // Temperature Sensors
  103. //
  104. #define TEMP_0_PIN 0 // Analog Input
  105. #define TEMP_1_PIN 1 // Analog Input
  106. #define TEMP_BED_PIN 2 // Analog Input
  107.  
  108. //
  109. // Heaters / Fans
  110. //
  111. #define HEATER_0_PIN 3
  112. #define HEATER_1_PIN -1
  113. #define HEATER_2_PIN -1
  114. #define HEATER_BED_PIN 4
  115.  
  116. #define FAN_PIN 8
  117. #define FAN1_PIN 6
  118.  
  119. //
  120. // Misc. Functions
  121. //
  122. #define SDSS 77
  123. #define LED_PIN 13
  124. #define CASE_LIGHT_PIN 9
  125.  
  126. //
  127. // M3/M4/M5 - Spindle/Laser Control
  128. //
  129. // use P1 connector for spindle pins
  130. #define SPINDLE_LASER_PWM_PIN 9 // MUST BE HARDWARE PWM
  131. #define SPINDLE_LASER_ENABLE_PIN 18 // Pin should have a pullup!
  132. #define SPINDLE_DIR_PIN 19
  133.  
  134. //
  135. // Průša i3 MK2 Multiplexer Support
  136. //
  137. #define E_MUX0_PIN 17
  138. #define E_MUX1_PIN 16
  139. #define E_MUX2_PIN 78 // 84 in MK2 Firmware, with BEEPER as 78
  140.  
  141. //
  142. // LCD / Controller
  143. //
  144. #if ENABLED(ULTRA_LCD)
  145.  
  146. #define KILL_PIN 32
  147.  
  148. #if ENABLED(NEWPANEL)
  149.  
  150. // Beeper on AUX-4
  151. #define BEEPER_PIN 84
  152.  
  153. #define LCD_PINS_RS 82
  154. #define LCD_PINS_ENABLE 61
  155. #define LCD_PINS_D4 59
  156. #define LCD_PINS_D5 70
  157. #define LCD_PINS_D6 85
  158. #define LCD_PINS_D7 71
  159.  
  160. // buttons are directly attached using AUX-2
  161. #define BTN_EN1 14
  162. #define BTN_EN2 72
  163. #define BTN_ENC 9 // the click
  164.  
  165. #define SD_DETECT_PIN 15
  166.  
  167. #endif // NEWPANEL
  168. #endif // ULTRA_LCD
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement