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.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (c) 2020 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 <https://www.gnu.org/licenses/>.
  20. *
  21. */
  22. #pragma once
  23. /**
  24. * Formbot Raptor 2 pin assignments
  25. */
  26. #define BOARD_INFO_NAME "Formbot Raptor2"
  27. #define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
  28. #define FAN_PIN 6
  29. #ifndef FIL_RUNOUT_PIN
  30. #define FIL_RUNOUT_PIN 22
  31. #endif
  32. #include "pins_FORMBOT_RAPTOR.h"
  33. #define GREEDY_PANEL ANY(PANEL_ONE, VIKI2, miniVIKI, MINIPANEL, REPRAPWORLD_KEYPAD)
  34. //
  35. // M3/M4/M5 - Spindle/Laser Control
  36. //
  37. #if HAS_CUTTER && !PIN_EXISTS(SPINDLE_LASER_ENA)
  38. #if !NUM_SERVOS // Try to use servo connector first
  39. #define SPINDLE_LASER_ENA_PIN 6 // Pullup or pulldown!
  40. #define SPINDLE_LASER_PWM_PIN 4 // Hardware PWM
  41. #define SPINDLE_DIR_PIN 5
  42. #elif !GREEDY_PANEL // Try to use AUX2
  43. #define SPINDLE_LASER_ENA_PIN 4 // Pullup or pulldown!
  44. #define SPINDLE_LASER_PWM_PIN 44 // Hardware PWM
  45. #define SPINDLE_DIR_PIN 65
  46. #endif
  47. #endif
  48. #if ENABLED(CASE_LIGHT_ENABLE) && !PIN_EXISTS(CASE_LIGHT)
  49. #if NUM_SERVOS <= 1 // Try to use servo connector first
  50. #define CASE_LIGHT_PIN 6 // Hardware PWM
  51. #elif !GREEDY_PANEL // Try to use AUX2
  52. #define CASE_LIGHT_PIN 44 // Hardware PWM
  53. #endif
  54. #endif
  55. #undef GREEDY_PANEL
  56. #if ENABLED(CASE_LIGHT_ENABLE) && PIN_EXISTS(CASE_LIGHT) && (CASE_LIGHT_PIN == SPINDLE_LASER_ENA_PIN || CASE_LIGHT_PIN == SPINDLE_LASER_PWM_PIN)
  57. #error "CASE_LIGHT_PIN conflicts with a Spindle / Laser pin."
  58. #endif
  59. #if HAS_MARLINUI_U8GLIB
  60. #define BOARD_ST7920_DELAY_1 125
  61. #define BOARD_ST7920_DELAY_2 125
  62. #define BOARD_ST7920_DELAY_3 125
  63. #endif