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_TRIGORILLA_14.h 4.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  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. * Arduino Mega with RAMPS v1.4 for Anycubic
  25. */
  26. #define BOARD_INFO_NAME "Anycubic RAMPS 1.4"
  27. //
  28. // Servos
  29. //
  30. #if MB(TRIGORILLA_14_11)
  31. #define SERVO0_PIN 5
  32. #define SERVO1_PIN 4
  33. #define SERVO2_PIN 11
  34. #define SERVO3_PIN 6
  35. #endif
  36. //
  37. // PWM FETS
  38. //
  39. #if EITHER(FET_ORDER_EEF, FET_ORDER_EEB)
  40. #define MOSFET_B_PIN 45 // HEATER1
  41. #elif FET_ORDER_EFB
  42. #define MOSFET_B_PIN 9 // FAN0
  43. #else
  44. #define MOSFET_B_PIN 7 // FAN1
  45. #endif
  46. #if FET_ORDER_EEB
  47. #define MOSFET_C_PIN 8 // BED
  48. #elif FET_ORDER_EFB
  49. #if DISABLED(ANYCUBIC_LCD_CHIRON)
  50. #define MOSFET_C_PIN 8
  51. #else
  52. #define MOSFET_C_PIN 45
  53. #endif
  54. #else // EEF, EFF
  55. #define MOSFET_C_PIN 9
  56. #endif
  57. #if FET_ORDER_EEB
  58. #define FAN_PIN 9 // Override pin 4 in pins_RAMPS.h
  59. #endif
  60. //
  61. // Heaters / Fans
  62. //
  63. #if ANY(FET_ORDER_EEF, FET_ORDER_EEB, FET_ORDER_EFB)
  64. #define FAN1_PIN 7
  65. #endif
  66. #define FAN2_PIN 44
  67. #ifndef E0_AUTO_FAN_PIN
  68. #define E0_AUTO_FAN_PIN 44 // Used in Anycubic Kossel example config
  69. #endif
  70. #if ENABLED(ANYCUBIC_LCD_I3MEGA)
  71. #define CONTROLLER_FAN_PIN 7
  72. #endif
  73. //
  74. // AnyCubic standard pin mappings
  75. //
  76. // On most printers, endstops are NOT all wired to the appropriate pins on the Trigorilla board.
  77. // For instance, on a Chiron, Y axis goes to an aux connector.
  78. // There are also other things that have been wired in creative ways.
  79. // To enable PIN definitions for a specific printer model, #define the appropriate symbol after
  80. // MOTHERBOARD in Configuration.h
  81. //
  82. // Limit Switches
  83. //
  84. //#define ANYCUBIC_4_MAX_PRO_ENDSTOPS
  85. #if ENABLED(ANYCUBIC_4_MAX_PRO_ENDSTOPS)
  86. #define X_MAX_PIN 43
  87. #define Y_STOP_PIN 19
  88. #elif EITHER(ANYCUBIC_LCD_CHIRON, ANYCUBIC_LCD_I3MEGA)
  89. #define Y_STOP_PIN 42
  90. #define Z2_MIN_PIN 43
  91. #ifndef Z_MIN_PROBE_PIN
  92. #define Z_MIN_PROBE_PIN 2
  93. #endif
  94. #ifndef FIL_RUNOUT_PIN
  95. #if ENABLED(ANYCUBIC_LCD_CHIRON)
  96. #define FIL_RUNOUT_PIN 33
  97. #else
  98. #define FIL_RUNOUT_PIN 19
  99. #endif
  100. #endif
  101. #define BEEPER_PIN 31
  102. #define SD_DETECT_PIN 49
  103. #endif
  104. #include "pins_RAMPS.h"
  105. //
  106. // AnyCubic made the following changes to 1.1.0-RC8
  107. // If these are appropriate for your LCD let us know.
  108. //
  109. #if 0 && HAS_WIRED_LCD
  110. // LCD Display output pins
  111. #if BOTH(IS_NEWPANEL, PANEL_ONE)
  112. #undef LCD_PINS_D6
  113. #define LCD_PINS_D6 57
  114. #endif
  115. // LCD Display input pins
  116. #if IS_NEWPANEL
  117. #if EITHER(VIKI2, miniVIKI)
  118. #undef DOGLCD_A0
  119. #define DOGLCD_A0 23
  120. #elif ENABLED(ELB_FULL_GRAPHIC_CONTROLLER)
  121. #undef BEEPER_PIN
  122. #define BEEPER_PIN 33
  123. #undef LCD_BACKLIGHT_PIN
  124. #define LCD_BACKLIGHT_PIN 67
  125. #endif
  126. #elif ENABLED(MINIPANEL)
  127. #undef BEEPER_PIN
  128. #define BEEPER_PIN 33
  129. #undef DOGLCD_A0
  130. #define DOGLCD_A0 42
  131. #endif
  132. #endif // HAS_WIRED_LCD