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

pins_AZTEEG_X3.h 2.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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. * AZTEEG_X3 Arduino Mega with RAMPS v1.4 pin assignments
  24. */
  25. #ifndef __AVR_ATmega2560__
  26. #error "Oops! Make sure you have 'Arduino Mega 2560' selected from the 'Tools -> Boards' menu."
  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 // must define it here or else RAMPS will define it
  33. #endif
  34. #define BOARD_NAME "Azteeg X3"
  35. #include "pins_RAMPS_13.h"
  36. //
  37. // Servos
  38. //
  39. #undef SERVO0_PIN
  40. #undef SERVO1_PIN
  41. #define SERVO0_PIN 44 // SERVO1 port
  42. #define SERVO1_PIN 55 // SERVO2 port
  43. //
  44. // LCD / Controller
  45. //
  46. #undef STAT_LED_RED_PIN
  47. #undef STAT_LED_BLUE_PIN
  48. #if ENABLED(VIKI2) || ENABLED(miniVIKI)
  49. #undef DOGLCD_A0
  50. #undef DOGLCD_CS
  51. #undef BTN_ENC
  52. #define DOGLCD_A0 31
  53. #define DOGLCD_CS 32
  54. #define BTN_ENC 12
  55. #define STAT_LED_RED_PIN 64
  56. #define STAT_LED_BLUE_PIN 63
  57. #else
  58. #define STAT_LED_RED_PIN 6
  59. #define STAT_LED_BLUE_PIN 11
  60. #endif
  61. //
  62. // Misc
  63. //
  64. #if ENABLED(CASE_LIGHT_ENABLE) && PIN_EXISTS(CASE_LIGHT) && PIN_EXISTS(STAT_LED_RED) && STAT_LED_RED_PIN == CASE_LIGHT_PIN
  65. #undef STAT_LED_RED_PIN
  66. #endif
  67. //
  68. // M3/M4/M5 - Spindle/Laser Control
  69. //
  70. #undef SPINDLE_LASER_PWM_PIN // Definitions in pins_RAMPS.h are no good with the AzteegX3 board
  71. #undef SPINDLE_LASER_ENABLE_PIN
  72. #undef SPINDLE_DIR_PIN
  73. #if ENABLED(SPINDLE_LASER_ENABLE)
  74. #undef SDA // use EXP3 header
  75. #undef SCL
  76. #if SERVO0_PIN == 7
  77. #undef SERVO0_PIN
  78. #def SERVO0_PIN 11
  79. #endif
  80. #define SPINDLE_LASER_PWM_PIN 7 // MUST BE HARDWARE PWM
  81. #define SPINDLE_LASER_ENABLE_PIN 20 // Pin should have a pullup!
  82. #define SPINDLE_DIR_PIN 21
  83. #endif