My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

pins_DUE3DOM_MINI.h 5.5KB

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