My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

pins_AZTEEG_X3.h 2.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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. #if ENABLED(VIKI2) || ENABLED(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. #undef STAT_LED_RED_PIN
  54. #undef STAT_LED_BLUE_PIN
  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