My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

pins_FORMBOT_RAPTOR2.h 2.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. * Formbot Raptor 2 pin assignments
  24. */
  25. #define DEFAULT_MACHINE_NAME "Formbot Raptor2"
  26. #define BOARD_NAME "Formbot Raptor2"
  27. #define FAN_PIN 6
  28. #ifndef FIL_RUNOUT_PIN
  29. #define FIL_RUNOUT_PIN 22
  30. #endif
  31. #include "pins_FORMBOT_RAPTOR.h"
  32. #define GREEDY_PANEL ANY(PANEL_ONE, VIKI2, miniVIKI, MINIPANEL, REPRAPWORLD_KEYPAD)
  33. //
  34. // M3/M4/M5 - Spindle/Laser Control
  35. //
  36. #if HAS_CUTTER && !PIN_EXISTS(SPINDLE_LASER_ENA)
  37. #if !NUM_SERVOS // Try to use servo connector first
  38. #define SPINDLE_LASER_ENA_PIN 6 // Pin should have a pullup/pulldown!
  39. #define SPINDLE_LASER_PWM_PIN 4 // MUST BE HARDWARE PWM
  40. #define SPINDLE_DIR_PIN 5
  41. #elif !GREEDY_PANEL // Try to use AUX2
  42. #define SPINDLE_LASER_ENA_PIN 40 // Pin should have a pullup/pulldown!
  43. #define SPINDLE_LASER_PWM_PIN 44 // MUST BE HARDWARE PWM
  44. #define SPINDLE_DIR_PIN 65
  45. #endif
  46. #endif
  47. #if ENABLED(CASE_LIGHT_ENABLE) && !PIN_EXISTS(CASE_LIGHT)
  48. #if NUM_SERVOS <= 1 // Try to use servo connector first
  49. #define CASE_LIGHT_PIN 6 // MUST BE HARDWARE PWM
  50. #elif !GREEDY_PANEL // Try to use AUX2
  51. #define CASE_LIGHT_PIN 44 // MUST BE HARDWARE PWM
  52. #endif
  53. #endif
  54. #undef GREEDY_PANEL
  55. #if ENABLED(CASE_LIGHT_ENABLE) && PIN_EXISTS(CASE_LIGHT) && (CASE_LIGHT_PIN == SPINDLE_LASER_ENA_PIN || CASE_LIGHT_PIN == SPINDLE_LASER_PWM_PIN)
  56. #error "CASE_LIGHT_PIN conflicts with a Spindle / Laser pin."
  57. #endif