My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

pins_MEGACONTROLLER.h 4.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  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 <https://www.gnu.org/licenses/>.
  20. *
  21. */
  22. #pragma once
  23. /**
  24. * Mega controller pin assignments
  25. */
  26. #if HOTENDS > 2 || E_STEPPERS > 2
  27. #error "Mega Controller supports up to 2 hotends / E steppers."
  28. #endif
  29. #include "env_validate.h"
  30. #define BOARD_INFO_NAME "Mega Controller"
  31. //
  32. // Servos
  33. //
  34. #define SERVO0_PIN 30
  35. #define SERVO1_PIN 31
  36. #define SERVO2_PIN 32
  37. #define SERVO3_PIN 33
  38. //
  39. // Limit Switches
  40. //
  41. #define X_MIN_PIN 43
  42. #define X_MAX_PIN 42
  43. #define Y_MIN_PIN 38
  44. #define Y_MAX_PIN 41
  45. #define Z_MIN_PIN 40
  46. #define Z_MAX_PIN 37
  47. //
  48. // Z Probe (when not Z_MIN_PIN)
  49. //
  50. #ifndef Z_MIN_PROBE_PIN
  51. #define Z_MIN_PROBE_PIN 37
  52. #endif
  53. //
  54. // Steppers
  55. //
  56. #define X_STEP_PIN 62 // A8
  57. #define X_DIR_PIN 63 // A9
  58. #define X_ENABLE_PIN 61 // A7
  59. #define Y_STEP_PIN 65 // A11
  60. #define Y_DIR_PIN 66 // A12
  61. #define Y_ENABLE_PIN 64 // A10
  62. #define Z_STEP_PIN 68 // A14
  63. #define Z_DIR_PIN 69 // A15
  64. #define Z_ENABLE_PIN 67 // A13
  65. #define E0_STEP_PIN 23
  66. #define E0_DIR_PIN 24
  67. #define E0_ENABLE_PIN 22
  68. #define E1_STEP_PIN 26
  69. #define E1_DIR_PIN 27
  70. #define E1_ENABLE_PIN 25
  71. //
  72. // Temperature Sensors
  73. //
  74. #if TEMP_SENSOR_0 == -1
  75. #define TEMP_0_PIN 4 // Analog Input
  76. #else
  77. #define TEMP_0_PIN 0 // Analog Input
  78. #endif
  79. #if TEMP_SENSOR_1 == -1
  80. #define TEMP_1_PIN 5 // Analog Input
  81. #else
  82. #define TEMP_1_PIN 2 // Analog Input
  83. #endif
  84. #define TEMP_2_PIN 3 // Analog Input
  85. #if TEMP_SENSOR_BED == -1
  86. #define TEMP_BED_PIN 6 // Analog Input
  87. #else
  88. #define TEMP_BED_PIN 1 // Analog Input
  89. #endif
  90. //
  91. // Heaters / Fans
  92. //
  93. #define HEATER_0_PIN 29
  94. #define HEATER_1_PIN 34
  95. #define HEATER_BED_PIN 28
  96. #ifndef FAN_PIN
  97. #define FAN_PIN 39
  98. #endif
  99. #define FAN1_PIN 35
  100. #define FAN2_PIN 36
  101. #ifndef CONTROLLER_FAN_PIN
  102. #define CONTROLLER_FAN_PIN FAN2_PIN
  103. #endif
  104. #define FAN_SOFT_PWM_REQUIRED
  105. //
  106. // Misc. Functions
  107. //
  108. #define SDSS 53
  109. #define LED_PIN 13
  110. #ifndef CASE_LIGHT_PIN
  111. #define CASE_LIGHT_PIN 2
  112. #endif
  113. //
  114. // LCD / Controller
  115. //
  116. #if ENABLED(MINIPANEL)
  117. #define BEEPER_PIN 46
  118. #define DOGLCD_A0 47
  119. #define DOGLCD_CS 45
  120. #define LCD_BACKLIGHT_PIN 44 // backlight LED on PA3
  121. #define KILL_PIN 12
  122. #define BTN_EN1 48
  123. #define BTN_EN2 11
  124. #define BTN_ENC 10
  125. #define SD_DETECT_PIN 49
  126. //#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
  127. #endif // MINIPANEL
  128. //
  129. // M3/M4/M5 - Spindle/Laser Control
  130. //
  131. #define SPINDLE_LASER_PWM_PIN 6 // Hardware PWM
  132. #define SPINDLE_LASER_ENA_PIN 7 // Pullup!
  133. #define SPINDLE_DIR_PIN 8