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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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. #define BOARD_INFO_NAME "RAMPS Duo"
  45. #define ALLOW_SAM3X8E
  46. #include "../ramps/pins_RAMPS.h"
  47. //
  48. // Temperature Sensors
  49. //
  50. #undef TEMP_0_PIN
  51. #define TEMP_0_PIN 9 // Analog Input
  52. #undef TEMP_1_PIN
  53. #define TEMP_1_PIN 11 // Analog Input
  54. #undef TEMP_BED_PIN
  55. #define TEMP_BED_PIN 10 // Analog Input
  56. // SPI for Max6675 or Max31855 Thermocouple
  57. #undef MAX6675_SS_PIN
  58. #if DISABLED(SDSUPPORT)
  59. #define MAX6675_SS_PIN 69 // Don't use 53 if using Display/SD card
  60. #else
  61. #define MAX6675_SS_PIN 69 // Don't use 49 (SD_DETECT_PIN)
  62. #endif
  63. //
  64. // LCD / Controller
  65. //
  66. #if HAS_WIRED_LCD
  67. #if BOTH(IS_NEWPANEL, PANEL_ONE)
  68. #undef LCD_PINS_D4
  69. #define LCD_PINS_D4 68
  70. #undef LCD_PINS_D5
  71. #define LCD_PINS_D5 69
  72. #undef LCD_PINS_D7
  73. #define LCD_PINS_D7 67
  74. #endif
  75. #if IS_NEWPANEL
  76. #if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
  77. #undef BTN_EN1
  78. #define BTN_EN1 67
  79. #undef BTN_ENC
  80. #define BTN_ENC 66
  81. #elif ENABLED(MINIPANEL)
  82. #undef DOGLCD_CS
  83. #define DOGLCD_CS 69
  84. #undef LCD_BACKLIGHT_PIN
  85. #define LCD_BACKLIGHT_PIN 68 // backlight LED on A14/D68
  86. #undef KILL_PIN
  87. #define KILL_PIN 67
  88. #undef BTN_EN2
  89. #define BTN_EN2 66
  90. #else
  91. #if IS_RRW_KEYPAD
  92. #undef BTN_EN1
  93. #define BTN_EN1 67 // encoder
  94. #undef BTN_ENC
  95. #define BTN_ENC 66 // enter button
  96. #elif ENABLED(PANEL_ONE)
  97. #undef BTN_EN2
  98. #define BTN_EN2 66 // AUX2 PIN 4
  99. #endif
  100. #endif
  101. #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
  102. #define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
  103. #endif
  104. #endif // IS_NEWPANEL
  105. #endif // HAS_WIRED_LCD