My Marlin configs for Fabrikator Mini and CTC i3 Pro B
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

pins_MEGACONTROLLER.h 3.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  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. * Mega controller pin assignments
  24. */
  25. #ifndef __AVR_ATmega2560__
  26. #error "Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu."
  27. #endif
  28. #if HOTENDS > 2 || E_STEPPERS > 2
  29. #error "Mega Controller supports up to 2 hotends / E-steppers. Comment out this line to continue."
  30. #endif
  31. #define BOARD_NAME "Mega Controller"
  32. //
  33. // Servos
  34. //
  35. #define SERVO0_PIN 30
  36. #define SERVO1_PIN 31
  37. #define SERVO2_PIN 32
  38. #define SERVO3_PIN 33
  39. //
  40. // Limit Switches
  41. //
  42. #define X_MIN_PIN 43
  43. #define X_MAX_PIN 42
  44. #define Y_MIN_PIN 38
  45. #define Y_MAX_PIN 41
  46. #define Z_MIN_PIN 40
  47. #define Z_MAX_PIN 37
  48. //
  49. // Z Probe (when not Z_MIN_PIN)
  50. //
  51. #ifndef Z_MIN_PROBE_PIN
  52. #define Z_MIN_PROBE_PIN 37
  53. #endif
  54. //
  55. // Steppers
  56. //
  57. #define X_STEP_PIN 62 // A8
  58. #define X_DIR_PIN 63 // A9
  59. #define X_ENABLE_PIN 61 // A7
  60. #define Y_STEP_PIN 65 // A11
  61. #define Y_DIR_PIN 66 // A12
  62. #define Y_ENABLE_PIN 64 // A10
  63. #define Z_STEP_PIN 68 // A14
  64. #define Z_DIR_PIN 69 // A15
  65. #define Z_ENABLE_PIN 67 // A13
  66. #define E0_STEP_PIN 23
  67. #define E0_DIR_PIN 24
  68. #define E0_ENABLE_PIN 22
  69. #define E1_STEP_PIN 26
  70. #define E1_DIR_PIN 27
  71. #define E1_ENABLE_PIN 25
  72. //
  73. // Temperature Sensors
  74. //
  75. #if TEMP_SENSOR_0 == -1
  76. #define TEMP_0_PIN 4 // Analog Input
  77. #else
  78. #define TEMP_0_PIN 0 // Analog Input
  79. #endif
  80. #if TEMP_SENSOR_1 == -1
  81. #define TEMP_1_PIN 5 // Analog Input
  82. #else
  83. #define TEMP_1_PIN 2 // Analog Input
  84. #endif
  85. #define TEMP_2_PIN 3 // Analog Input
  86. #if TEMP_SENSOR_BED == -1
  87. #define TEMP_BED_PIN 6 // Analog Input
  88. #else
  89. #define TEMP_BED_PIN 1 // Analog Input
  90. #endif
  91. //
  92. // Heaters / Fans
  93. //
  94. #define HEATER_0_PIN 29
  95. #define HEATER_1_PIN 34
  96. #define HEATER_BED_PIN 28
  97. #define FAN_PIN 39
  98. #define FAN1_PIN 35
  99. #define FAN2_PIN 36
  100. #ifndef CONTROLLER_FAN_PIN
  101. #define CONTROLLER_FAN_PIN FAN2_PIN
  102. #endif
  103. #define FAN_SOFT_PWM
  104. //
  105. // Misc. Functions
  106. //
  107. #define SDSS 53
  108. #define LED_PIN 13
  109. #define CASE_LIGHT_PIN 2
  110. //
  111. // LCD / Controller
  112. //
  113. #if ENABLED(MINIPANEL)
  114. #define BEEPER_PIN 46
  115. // Pins for DOGM SPI LCD Support
  116. #define DOGLCD_A0 47
  117. #define DOGLCD_CS 45
  118. #define LCD_BACKLIGHT_PIN 44 // backlight LED on PA3
  119. #define KILL_PIN 12
  120. // GLCD features
  121. //#define LCD_CONTRAST 190
  122. // Uncomment screen orientation
  123. //#define LCD_SCREEN_ROT_90
  124. //#define LCD_SCREEN_ROT_180
  125. //#define LCD_SCREEN_ROT_270
  126. #define BTN_EN1 48
  127. #define BTN_EN2 11
  128. #define BTN_ENC 10
  129. #define SD_DETECT_PIN 49
  130. #endif // MINIPANEL
  131. //
  132. // M3/M4/M5 - Spindle/Laser Control
  133. //
  134. #define SPINDLE_LASER_PWM_PIN 6 // MUST BE HARDWARE PWM
  135. #define SPINDLE_LASER_ENABLE_PIN 7 // Pin should have a pullup!
  136. #define SPINDLE_DIR_PIN 8