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_FORMBOT_RAPTOR2.h 2.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. * 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. #define SDSS 5
  29. #include "pins_FORMBOT_RAPTOR.h"
  30. #ifndef FIL_RUNOUT_PIN
  31. #define FIL_RUNOUT_PIN 22
  32. #endif
  33. #define GREEDY_PANEL ( ENABLED(PANEL_ONE) || ENABLED(VIKI2) \
  34. || ENABLED(miniVIKI) || ENABLED(MINIPANEL) \
  35. || ENABLED(REPRAPWORLD_KEYPAD) )
  36. //
  37. // M3/M4/M5 - Spindle/Laser Control
  38. //
  39. #if ENABLED(SPINDLE_LASER_ENABLE) && !PIN_EXISTS(SPINDLE_LASER_ENABLE)
  40. #if !NUM_SERVOS // Try to use servo connector first
  41. #define SPINDLE_LASER_ENABLE_PIN 6 // Pin should have a pullup/pulldown!
  42. #define SPINDLE_LASER_PWM_PIN 4 // MUST BE HARDWARE PWM
  43. #define SPINDLE_DIR_PIN 5
  44. #elif !GREEDY_PANEL // Try to use AUX2
  45. #define SPINDLE_LASER_ENABLE_PIN 40 // Pin should have a pullup/pulldown!
  46. #define SPINDLE_LASER_PWM_PIN 44 // MUST BE HARDWARE PWM
  47. #define SPINDLE_DIR_PIN 65
  48. #endif
  49. #endif
  50. #if ENABLED(CASE_LIGHT_ENABLE) && !PIN_EXISTS(CASE_LIGHT)
  51. #if NUM_SERVOS <= 1 // Try to use servo connector first
  52. #define CASE_LIGHT_PIN 6 // MUST BE HARDWARE PWM
  53. #elif !GREEDY_PANEL // Try to use AUX2
  54. #define CASE_LIGHT_PIN 44 // MUST BE HARDWARE PWM
  55. #endif
  56. #endif
  57. #undef GREEDY_PANEL
  58. #if ENABLED(CASE_LIGHT_ENABLE) && PIN_EXISTS(CASE_LIGHT) && (CASE_LIGHT_PIN == SPINDLE_LASER_ENABLE_PIN || CASE_LIGHT_PIN == SPINDLE_LASER_PWM_PIN)
  59. #error "CASE_LIGHT_PIN conflicts with a Spindle / Laser pin."
  60. #endif