pins_RAMPS_PLUS.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. * Arduino Mega with RAMPS v1.4Plus, also known as 3DYMY version, pin assignments
  24. * The differences to the RAMPS v1.4 are:
  25. * - Swap heater E0 with E1
  26. * - Swap pins 8 and 10. Bed/Fan/Hotend as labeled on the board are on pins 8/9/10.
  27. * - Change pins 16->42, 17->44 and 29->53 used for display.
  28. *
  29. * Applies to the following boards:
  30. *
  31. * RAMPS_PLUS_EFB (Extruder, Fan, Bed)
  32. * RAMPS_PLUS_EEB (Extruder, Extruder, Bed)
  33. * RAMPS_PLUS_EFF (Extruder, Fan, Fan)
  34. * RAMPS_PLUS_EEF (Extruder, Extruder, Fan)
  35. * RAMPS_PLUS_SF (Spindle, Controller Fan)
  36. *
  37. */
  38. #if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
  39. #error "Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu."
  40. #endif
  41. #ifndef BOARD_NAME
  42. #define BOARD_NAME "RAMPS 1.4 Plus"
  43. #endif
  44. #define RAMPS_D8_PIN 10
  45. #define RAMPS_D10_PIN 8
  46. #include "pins_RAMPS.h"
  47. //
  48. // Steppers - Swap E0 / E1 on 3DYMY
  49. //
  50. #undef E0_STEP_PIN
  51. #undef E0_DIR_PIN
  52. #undef E0_ENABLE_PIN
  53. #undef E1_STEP_PIN
  54. #undef E1_DIR_PIN
  55. #undef E1_ENABLE_PIN
  56. #define E0_STEP_PIN 36
  57. #define E0_DIR_PIN 34
  58. #define E0_ENABLE_PIN 30
  59. #define E1_STEP_PIN 26
  60. #define E1_DIR_PIN 28
  61. #define E1_ENABLE_PIN 24
  62. #undef X_CS_PIN
  63. #undef Y_CS_PIN
  64. #undef Z_CS_PIN
  65. #undef E0_CS_PIN
  66. #undef E1_CS_PIN
  67. #if ENABLED(ULTRA_LCD) && DISABLED(REPRAPWORLD_GRAPHICAL_LCD) && (DISABLED(NEWPANEL) || DISABLED(PANEL_ONE)) && DISABLED(CR10_STOCKDISPLAY)
  68. #if DISABLED(MKS_12864OLED) || ENABLED(MKS_12864OLED_SSD1306)
  69. #undef LCD_PINS_RS
  70. #define LCD_PINS_RS 42 // 3DYMY boards pin 16 -> 42
  71. #undef LCD_PINS_ENABLE
  72. #define LCD_PINS_ENABLE 44 // 3DYMY boards pin 17 -> 44
  73. #endif
  74. #undef LCD_PINS_D7
  75. #define LCD_PINS_D7 53 // 3DYMY boards pin 29 -> 53
  76. #endif