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_RAMPS_CREALITY.h 2.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. #if HOTENDS > 2 || E_STEPPERS > 2
  24. #error "Creality RAMPS supports up to 2 hotends / E steppers."
  25. #endif
  26. #define BOARD_INFO_NAME "Creality3D RAMPS"
  27. //
  28. // Heaters / Fans
  29. //
  30. #define MOSFET_B_PIN 7 // For HEATER_1_PIN ("EEF" or "EEB")
  31. #define FAN_PIN 9
  32. #define FIL_RUNOUT_PIN 2
  33. #if NUM_RUNOUT_SENSORS >= 2
  34. #define FIL_RUNOUT2_PIN 15 // Creality CR-X can use dual runout sensors
  35. #endif
  36. #ifndef SD_DETECT_PIN
  37. #if SD_CONNECTION_IS(ONBOARD)
  38. //#define HAS_ONBOARD_SD_DETECT // If the SD_DETECT_PIN is wired up
  39. #endif
  40. #if ENABLED(HAS_ONBOARD_SD_DETECT) || !SD_CONNECTION_IS(ONBOARD)
  41. #define SD_DETECT_PIN 49
  42. #endif
  43. #endif
  44. #ifndef PS_ON_PIN
  45. #define PS_ON_PIN 40 // Used by CR2020 Industrial series
  46. #endif
  47. #if ENABLED(CASE_LIGHT_ENABLE) && !defined(CASE_LIGHT_PIN)
  48. #define CASE_LIGHT_PIN 65
  49. #endif
  50. #include "pins_RAMPS.h"
  51. #ifndef BEEPER_PIN
  52. #define BEEPER_PIN 37 // Always define beeper pin so Play Tone works with ExtUI
  53. #endif
  54. #define EXP1_PIN 65 // A11 - Used by CR2020 Industrial series for case
  55. #define EXP2_PIN 66 // A12
  56. #define EXP3_PIN 11 // SERVO0_PIN
  57. #define EXP4_PIN 12 // PS_ON_PIN
  58. #define SUICIDE_PIN 12 // Used by CR2020 Industrial series
  59. #ifndef SUICIDE_PIN_STATE
  60. #define SUICIDE_PIN_STATE HIGH
  61. #endif