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_DUO.h 3.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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 or Due with RAMPS Duo pin assignments
  25. *
  26. * Applies to the following boards:
  27. *
  28. * RAMPS_DUO_EFB (Hotend, Fan, Bed)
  29. * RAMPS_DUO_EEB (Hotend0, Hotend1, Bed)
  30. * RAMPS_DUO_EFF (Hotend, Fan0, Fan1)
  31. * RAMPS_DUO_EEF (Hotend0, Hotend1, Fan)
  32. * RAMPS_DUO_SF (Spindle, Controller Fan)
  33. *
  34. * Differences between
  35. * RAMPS_14 | RAMPS_DUO
  36. * A9/D63 | A12/D66
  37. * A10/D64 | A13/D67
  38. * A11/D65 | A14/D68
  39. * A12/D66 | A15/D69
  40. * A13 | A9
  41. * A14 | A10
  42. * A15 | A11
  43. */
  44. #if NOT_TARGET(__SAM3X8E__, __AVR_ATmega2560__)
  45. #error "Oops! Select 'Arduino Due' or 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
  46. #endif
  47. #define BOARD_INFO_NAME "RAMPS Duo"
  48. #define IS_RAMPS_DUO
  49. #include "../ramps/pins_RAMPS.h"
  50. //
  51. // Temperature Sensors
  52. //
  53. #undef TEMP_0_PIN
  54. #define TEMP_0_PIN 9 // Analog Input
  55. #undef TEMP_1_PIN
  56. #define TEMP_1_PIN 11 // Analog Input
  57. #undef TEMP_BED_PIN
  58. #define TEMP_BED_PIN 10 // Analog Input
  59. // SPI for Max6675 or Max31855 Thermocouple
  60. #undef MAX6675_SS_PIN
  61. #if DISABLED(SDSUPPORT)
  62. #define MAX6675_SS_PIN 69 // Don't use 53 if using Display/SD card
  63. #else
  64. #define MAX6675_SS_PIN 69 // Don't use 49 (SD_DETECT_PIN)
  65. #endif
  66. //
  67. // LCD / Controller
  68. //
  69. #if HAS_WIRED_LCD
  70. #if BOTH(IS_NEWPANEL, PANEL_ONE)
  71. #undef LCD_PINS_D4
  72. #define LCD_PINS_D4 68
  73. #undef LCD_PINS_D5
  74. #define LCD_PINS_D5 69
  75. #undef LCD_PINS_D7
  76. #define LCD_PINS_D7 67
  77. #endif
  78. #if IS_NEWPANEL
  79. #if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
  80. #undef BTN_EN1
  81. #define BTN_EN1 67
  82. #undef BTN_ENC
  83. #define BTN_ENC 66
  84. #elif ENABLED(MINIPANEL)
  85. #undef DOGLCD_CS
  86. #define DOGLCD_CS 69
  87. #undef LCD_BACKLIGHT_PIN
  88. #define LCD_BACKLIGHT_PIN 68 // backlight LED on A14/D68
  89. #undef KILL_PIN
  90. #define KILL_PIN 67
  91. #undef BTN_EN2
  92. #define BTN_EN2 66
  93. #else
  94. #if IS_RRW_KEYPAD
  95. #undef BTN_EN1
  96. #define BTN_EN1 67 // encoder
  97. #undef BTN_ENC
  98. #define BTN_ENC 66 // enter button
  99. #elif ENABLED(PANEL_ONE)
  100. #undef BTN_EN2
  101. #define BTN_EN2 66 // AUX2 PIN 4
  102. #endif
  103. #endif
  104. #endif // IS_NEWPANEL
  105. #endif // HAS_WIRED_LCD