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 3.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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. * 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. // Custom Limit Switches
  38. //
  39. //#define ANYCUBIC_4_MAX_PRO_ENDSTOPS
  40. #if ENABLED(ANYCUBIC_4_MAX_PRO_ENDSTOPS)
  41. #define X_MAX_PIN 43
  42. #define Y_MIN_PIN 19
  43. #endif
  44. // Labeled pins
  45. #define TRIGORILLA_HEATER_BED_PIN 8
  46. #define TRIGORILLA_HEATER_0_PIN 10
  47. #define TRIGORILLA_HEATER_1_PIN 45 // Anycubic Kossel: Unused
  48. #define TRIGORILLA_FAN0_PIN 9 // Anycubic Kossel: Usually the part cooling fan
  49. #define TRIGORILLA_FAN1_PIN 7 // Anycubic Kossel: Unused
  50. #define TRIGORILLA_FAN2_PIN 44 // Anycubic Kossel: Hotend fan
  51. // Remap MOSFET pins to common usages:
  52. #define RAMPS_D10_PIN TRIGORILLA_HEATER_0_PIN // HEATER_0_PIN is always RAMPS_D10_PIN in pins_RAMPS.h
  53. #if HOTENDS > 1 // EEF and EEB
  54. #define RAMPS_D9_PIN TRIGORILLA_HEATER_1_PIN
  55. #if !TEMP_SENSOR_BED
  56. // EEF
  57. #define RAMPS_D8_PIN TRIGORILLA_FAN0_PIN
  58. #else
  59. // EEB
  60. #define RAMPS_D8_PINTRIGORILLA_HEATER_BED_PIN
  61. #define FAN_PIN TRIGORILLA_FAN0_PIN // Override pin 4 in pins_RAMPS.h
  62. #endif
  63. #elif TEMP_SENSOR_BED
  64. // EFB (Anycubic Kossel default)
  65. #define RAMPS_D9_PIN TRIGORILLA_FAN0_PIN
  66. #define RAMPS_D8_PINTRIGORILLA_HEATER_BED_PIN
  67. #else
  68. // EFF
  69. #define RAMPS_D9_PIN TRIGORILLA_FAN1_PIN
  70. #define RAMPS_D8_PIN TRIGORILLA_FAN0_PIN
  71. #endif
  72. #if HOTENDS > 1 || TEMP_SENSOR_BED // EEF, EEB, EFB
  73. #define FAN1_PIN TRIGORILLA_FAN1_PIN
  74. #endif
  75. #define FAN2_PIN TRIGORILLA_FAN2_PIN
  76. #define ORIG_E0_AUTO_FAN_PINTRIGORILLA_FAN2_PIN // Used in Anycubic Kossel example config
  77. #include "pins_RAMPS.h"
  78. //
  79. // AnyCubic made the following changes to 1.1.0-RC8
  80. // If these are appropriate for your LCD let us know.
  81. //
  82. #if 0 && HAS_SPI_LCD
  83. // LCD Display output pins
  84. #if BOTH(NEWPANEL, PANEL_ONE)
  85. #undef LCD_PINS_D6
  86. #define LCD_PINS_D6 57
  87. #endif
  88. // LCD Display input pins
  89. #if ENABLED(NEWPANEL)
  90. #if ANY(VIKI2, miniVIKI)
  91. #undef DOGLCD_A0
  92. #define DOGLCD_A0 23
  93. #elif ENABLED(ELB_FULL_GRAPHIC_CONTROLLER)
  94. #undef BEEPER_PIN
  95. #define BEEPER_PIN 33
  96. #undef LCD_BACKLIGHT_PIN
  97. #define LCD_BACKLIGHT_PIN 67
  98. #endif
  99. #elif ENABLED(MINIPANEL)
  100. #undef BEEPER_PIN
  101. #define BEEPER_PIN 33
  102. #undef DOGLCD_A0
  103. #define DOGLCD_A0 42
  104. #endif
  105. #endif // HAS_SPI_LCD