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_PLUS.h 2.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. * Arduino Mega with RAMPS v1.4Plus, also known as 3DYMY version, pin assignments
  25. * The differences to the RAMPS v1.4 are:
  26. * - Swap heater E0 with E1
  27. * - Swap pins 8 and 10. Bed/Fan/Hotend as labeled on the board are on pins 8/9/10.
  28. * - Change pins 16->42, 17->44 and 29->53 used for display.
  29. *
  30. * Applies to the following boards:
  31. *
  32. * RAMPS_PLUS_EFB (Extruder, Fan, Bed)
  33. * RAMPS_PLUS_EEB (Extruder, Extruder, Bed)
  34. * RAMPS_PLUS_EFF (Extruder, Fan, Fan)
  35. * RAMPS_PLUS_EEF (Extruder, Extruder, Fan)
  36. * RAMPS_PLUS_SF (Spindle, Controller Fan)
  37. */
  38. #include "env_validate.h"
  39. #define BOARD_INFO_NAME "RAMPS 1.4 Plus"
  40. #define RAMPS_D8_PIN 10
  41. #define RAMPS_D10_PIN 8
  42. //
  43. // Steppers
  44. //
  45. #define X_CS_PIN -1
  46. #define Y_CS_PIN -1
  47. #define Z_CS_PIN -1
  48. // Swap E0 / E1 on 3DYMY
  49. #define E0_STEP_PIN 36
  50. #define E0_DIR_PIN 34
  51. #define E0_ENABLE_PIN 30
  52. #define E0_CS_PIN -1
  53. #define E1_STEP_PIN 26
  54. #define E1_DIR_PIN 28
  55. #define E1_ENABLE_PIN 24
  56. #define E1_CS_PIN -1
  57. #include "pins_RAMPS.h"
  58. #if IS_ULTRA_LCD && NONE(REPRAPWORLD_GRAPHICAL_LCD, CR10_STOCKDISPLAY) && !BOTH(IS_NEWPANEL, PANEL_ONE)
  59. #if DISABLED(MKS_12864OLED) || ENABLED(MKS_12864OLED_SSD1306)
  60. #undef LCD_PINS_RS
  61. #define LCD_PINS_RS 42 // 3DYMY boards pin 16 -> 42
  62. #undef LCD_PINS_ENABLE
  63. #define LCD_PINS_ENABLE 44 // 3DYMY boards pin 17 -> 44
  64. #endif
  65. #undef LCD_PINS_D7
  66. #define LCD_PINS_D7 53 // 3DYMY boards pin 29 -> 53
  67. #endif