My Marlin configs for Fabrikator Mini and CTC i3 Pro B
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pins_DUE3DOM.h 4.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (c) 2019 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. #pragma once
  23. /**
  24. * DUE3DOM pin assignments
  25. */
  26. #ifndef __SAM3X8E__
  27. #error "Oops! Select 'Arduino Due' in 'Tools > Board.'"
  28. #endif
  29. #define BOARD_INFO_NAME "DUE3DOM"
  30. //
  31. // Servos
  32. //
  33. #define SERVO0_PIN 5
  34. #define SERVO1_PIN 6
  35. #define SERVO2_PIN 13
  36. #define SERVO3_PIN -1
  37. //
  38. // Limit Switches
  39. //
  40. #define X_MIN_PIN 38
  41. #define X_MAX_PIN 36
  42. #define Y_MIN_PIN 34
  43. #define Y_MAX_PIN 32
  44. #define Z_MIN_PIN 30
  45. #define Z_MAX_PIN 28
  46. //
  47. // Steppers
  48. //
  49. #define X_STEP_PIN 2
  50. #define X_DIR_PIN 3
  51. #define X_ENABLE_PIN 22
  52. #define Y_STEP_PIN 17
  53. #define Y_DIR_PIN 16
  54. #define Y_ENABLE_PIN 26
  55. #define Z_STEP_PIN 61 // Z1 STP
  56. #define Z_DIR_PIN 60 // Z1 DIR
  57. #define Z_ENABLE_PIN 15 // Z1 ENA
  58. #define E0_STEP_PIN 64 // Z2 STP
  59. #define E0_DIR_PIN 63 // Z2 DIR
  60. #define E0_ENABLE_PIN 62 // Z2 ENA
  61. #define E1_STEP_PIN 51 // E1 STP
  62. #define E1_DIR_PIN 53 // E1 DIR
  63. #define E1_ENABLE_PIN 65 // E1 ENA
  64. #define E2_STEP_PIN 24 // E2 STP
  65. #define E2_DIR_PIN 23 // E2 DIR
  66. #define E2_ENABLE_PIN 49 // E2 ENA
  67. //
  68. // Temperature Sensors
  69. //
  70. #define TEMP_0_PIN 0 // Analog Input (HOTEND0 thermistor)
  71. #define TEMP_1_PIN 2 // Analog Input (HOTEND1 thermistor)
  72. #define TEMP_2_PIN 5 // Analog Input (unused)
  73. #define TEMP_BED_PIN 1 // Analog Input (BED thermistor)
  74. // SPI for Max6675 or Max31855 Thermocouple
  75. #if DISABLED(SDSUPPORT)
  76. #define MAX6675_SS_PIN -1
  77. #else
  78. #define MAX6675_SS_PIN -1
  79. #endif
  80. //
  81. // Heaters / Fans
  82. //
  83. #define HEATER_0_PIN 7 // HOTEND0 MOSFET
  84. #define HEATER_1_PIN 8 // HOTEND1 MOSFET
  85. #define HEATER_BED_PIN 39 // BED MOSFET
  86. #ifndef FAN_PIN
  87. #define FAN_PIN 11 // FAN1 header on board - PRINT FAN
  88. #endif
  89. #define FAN1_PIN 9 // FAN2 header on board - CONTROLLER FAN
  90. #define FAN2_PIN 12 // FAN3 header on board - EXTRUDER0 FAN
  91. //
  92. // Misc. Functions
  93. //
  94. #define SDSS 4
  95. #define PS_ON_PIN 40
  96. //
  97. // LCD / Controller
  98. //
  99. #if HAS_SPI_LCD
  100. #define LCD_PINS_RS 42
  101. #define LCD_PINS_ENABLE 43
  102. #define LCD_PINS_D4 44
  103. #define LCD_PINS_D5 45
  104. #define LCD_PINS_D6 46
  105. #define LCD_PINS_D7 47
  106. #if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
  107. #define BEEPER_PIN 41
  108. #define BTN_EN1 50
  109. #define BTN_EN2 52
  110. #define BTN_ENC 48
  111. #define SDSS 4
  112. #define SD_DETECT_PIN 14
  113. #elif ENABLED(RADDS_DISPLAY)
  114. #define BEEPER_PIN 41
  115. #define BTN_EN1 50
  116. #define BTN_EN2 52
  117. #define BTN_ENC 48
  118. #define BTN_BACK 71
  119. #undef SDSS
  120. #define SDSS 4
  121. #define SD_DETECT_PIN 14
  122. #elif HAS_SSD1306_OLED_I2C
  123. #define BTN_EN1 50
  124. #define BTN_EN2 52
  125. #define BTN_ENC 48
  126. #define BEEPER_PIN 41
  127. #define LCD_SDSS 4
  128. #define SD_DETECT_PIN 14
  129. #elif ENABLED(SPARK_FULL_GRAPHICS)
  130. #define LCD_PINS_D4 29
  131. #define LCD_PINS_ENABLE 27
  132. #define LCD_PINS_RS 25
  133. #define BTN_EN1 35
  134. #define BTN_EN2 33
  135. #define BTN_ENC 37
  136. #define BEEPER_PIN -1
  137. #endif // SPARK_FULL_GRAPHICS
  138. #endif // HAS_SPI_LCD