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

pins_AZTEEG_X3.h 2.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (C) 2019 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. * AZTEEG_X3 Arduino Mega with RAMPS v1.4 pin assignments
  24. */
  25. #ifndef __AVR_ATmega2560__
  26. #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
  27. #endif
  28. #if HOTENDS > 2 || E_STEPPERS > 2
  29. #error "Azteeg X3 supports up to 2 hotends / E-steppers. Comment out this line to continue."
  30. #endif
  31. #if ENABLED(CASE_LIGHT_ENABLE) && !PIN_EXISTS(CASE_LIGHT)
  32. #define CASE_LIGHT_PIN 6 // Define before RAMPS pins include
  33. #endif
  34. #define BOARD_NAME "Azteeg X3"
  35. //
  36. // Servos
  37. //
  38. #define SERVO0_PIN 44 // SERVO1 port
  39. #define SERVO1_PIN 55 // SERVO2 port
  40. #include "pins_RAMPS_13.h"
  41. //
  42. // LCD / Controller
  43. //
  44. #undef STAT_LED_RED_PIN
  45. #undef STAT_LED_BLUE_PIN
  46. #if ANY(VIKI2, miniVIKI)
  47. #undef DOGLCD_A0
  48. #undef DOGLCD_CS
  49. #undef BTN_ENC
  50. #define DOGLCD_A0 31
  51. #define DOGLCD_CS 32
  52. #define BTN_ENC 12
  53. #define STAT_LED_RED_PIN 64
  54. #define STAT_LED_BLUE_PIN 63
  55. #else
  56. #define STAT_LED_RED_PIN 6
  57. #define STAT_LED_BLUE_PIN 11
  58. #endif
  59. //
  60. // Misc
  61. //
  62. #if ENABLED(CASE_LIGHT_ENABLE) && PIN_EXISTS(CASE_LIGHT, STAT_LED_RED) && STAT_LED_RED_PIN == CASE_LIGHT_PIN
  63. #undef STAT_LED_RED_PIN
  64. #endif
  65. //
  66. // M3/M4/M5 - Spindle/Laser Control
  67. //
  68. #undef SPINDLE_LASER_PWM_PIN // Definitions in pins_RAMPS.h are no good with the AzteegX3 board
  69. #undef SPINDLE_LASER_ENA_PIN
  70. #undef SPINDLE_DIR_PIN
  71. #if HAS_CUTTER
  72. #undef SDA // use EXP3 header
  73. #undef SCL
  74. #if SERVO0_PIN == 7
  75. #undef SERVO0_PIN
  76. #define SERVO0_PIN 11
  77. #endif
  78. #define SPINDLE_LASER_PWM_PIN 7 // MUST BE HARDWARE PWM
  79. #define SPINDLE_LASER_ENA_PIN 20 // Pin should have a pullup!
  80. #define SPINDLE_DIR_PIN 21
  81. #endif